From 5c7d14bd0d312df6fe2185e8d4e5da907c203a8d Mon Sep 17 00:00:00 2001 From: zimo493 <2081182432@qq.com> Date: Wed, 21 May 2025 13:45:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20(system/dict)=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=AD=97=E5=85=B8=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 改进字典标签类型选择功能,支持清空选项 BREAKING CHANGE: - 优化字典项页面布局和样式,使其统一 --- src/api/system/dict.api.ts | 2 +- src/views/system/dict/dict-item.vue | 145 ++++++++++++++++------------ src/views/system/dict/index.vue | 34 +++---- 3 files changed, 102 insertions(+), 79 deletions(-) diff --git a/src/api/system/dict.api.ts b/src/api/system/dict.api.ts index 2c2d9f86..b148e0a4 100644 --- a/src/api/system/dict.api.ts +++ b/src/api/system/dict.api.ts @@ -296,7 +296,7 @@ export interface DictItemForm { /** * 标签类型 */ - tagType?: "success" | "warning" | "info" | "primary" | "danger" | undefined; + tagType?: "success" | "warning" | "info" | "primary" | "danger" | ""; } /** diff --git a/src/views/system/dict/dict-item.vue b/src/views/system/dict/dict-item.vue index dea401e0..43f2eced 100644 --- a/src/views/system/dict/dict-item.vue +++ b/src/views/system/dict/dict-item.vue @@ -1,38 +1,37 @@