feat:添加字典项时下拉Tag功能,对接参数配置功能

This commit is contained in:
AN
2025-04-03 15:32:37 +08:00
parent 7f781112a9
commit ce4c086473
12 changed files with 117 additions and 45 deletions

View File

@ -8,6 +8,7 @@ defineOptions({
interface Props {
itemAlign?: NaiveUI.Align;
disabledDelete?: boolean;
disableAdd?: boolean;
loading?: boolean;
showAdd?: boolean;
showDelete?: boolean;
@ -55,7 +56,7 @@ function handleExport() {
<NSpace :align="itemAlign" wrap justify="end" class="lt-sm:w-200px">
<slot name="prefix"></slot>
<slot name="default">
<NButton v-if="showAdd" size="small" ghost type="primary" @click="add">
<NButton v-if="showAdd" :disabled="disableAdd" size="small" ghost type="primary" @click="add">
<template #icon>
<icon-ic-round-plus class="text-icon" />
</template>