This commit is contained in:
2025-06-10 20:43:07 +08:00
parent 443b164348
commit f16fd016d0
18 changed files with 178 additions and 87 deletions

View File

@@ -7,6 +7,10 @@ const input = ref('');
const changeInput = (e) => {
if (e.match(/#(\S+?)(?=\s)/g)) {
if (modelValue.value === void 0) {
console.log('进来了')
}
console.log(modelValue.value)
modelValue.value.push(...e.match(/#(\S+?)(?=\s)/g).map(tag => tag.slice(1)));
input.value = null;
nextTick(() => {

View File

@@ -1,6 +1,7 @@
<script setup>
import {onMounted, reactive} from "vue";
const emits = defineEmits(['change']);
const {api, fieldName, apiPo, init, defaultValue} = defineProps({
api: {
type: Function,
@@ -50,6 +51,7 @@ onMounted(() => {
:options="list"
:field-names="fieldName"
:default-value="defaultValue"
@change="emits('change')"
@popup-visible-change="popupChange"
placeholder="请选择">
</a-select>

View File

@@ -2,7 +2,7 @@
import XImage from "../XImage/Index.vue";
import Api from "../../api/index.js";
const {size, api, multiple} = defineProps({
const {size, api, multiple, placeholder} = defineProps({
size: {
type: String,
default: '60px'
@@ -14,6 +14,10 @@ const {size, api, multiple} = defineProps({
multiple: {
type: Boolean,
default: true,
},
placeholder: {
type: String,
default: '上传'
}
});
const files = defineModel('files');
@@ -40,7 +44,7 @@ const beforeUpload = (file) => {
<template #upload-button>
<div class="upload-button test">
<IconPlus/>
上传
{{ placeholder }}
</div>
</template>
</a-upload>