From 8c5ea2ae72efb42008ade159f9ffbb084efa600c Mon Sep 17 00:00:00 2001 From: AN <1983933789@qq.com> Date: Sat, 19 Apr 2025 08:18:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E5=AD=97=E5=85=B8=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E6=94=AF=E6=8C=81=E6=95=B0=E7=BB=84?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=EF=BC=8C=E5=85=B6=E4=BB=96=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/components/custom/dict-select.vue | 7 +- src/components/custom/dict-tag.vue | 27 ++++-- src/components/custom/json-preview.vue | 27 +++--- src/hooks/business/dict.ts | 11 ++- src/typings/api/system.api.d.ts | 83 +++++++++++++++++++ src/utils/common.ts | 5 ++ .../modules/login-infor-view-drawer.vue | 10 +-- src/views/system/post/index.vue | 6 +- .../tenant/modules/tenant-operate-drawer.vue | 4 +- 10 files changed, 138 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index 7f486d9d..190551a7 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "@sa/hooks": "workspace:*", "@sa/materials": "workspace:*", "@sa/utils": "workspace:*", + "@tinymce/tinymce-vue": "^6.1.0", "@vueuse/core": "12.5.0", "clipboard": "2.0.11", "dayjs": "1.11.13", diff --git a/src/components/custom/dict-select.vue b/src/components/custom/dict-select.vue index fc76755e..6956dfe1 100644 --- a/src/components/custom/dict-select.vue +++ b/src/components/custom/dict-select.vue @@ -8,14 +8,16 @@ defineOptions({ name: 'DictSelect' }); interface Props { dictCode: string; immediate?: boolean; + multiple?: boolean; [key: string]: any; } const props = withDefaults(defineProps(), { - immediate: false + immediate: false, + multiple: false }); -const value = defineModel('value', { required: false }); +const value = defineModel('value', { required: false }); const attrs: SelectProps = useAttrs(); const { options } = useDict(props.dictCode, props.immediate); @@ -24,6 +26,7 @@ const { options } = useDict(props.dictCode, props.immediate);