From 524982c7bd5a8e28b00ada44619190b3c10b12c0 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Thu, 16 Sep 2021 16:19:11 +0800
Subject: [PATCH] 禁用el-tag组件的渐变动画
---
ruoyi-ui/src/components/DictTag/index.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ruoyi-ui/src/components/DictTag/index.vue b/ruoyi-ui/src/components/DictTag/index.vue
index 4779415..1ff2c19 100644
--- a/ruoyi-ui/src/components/DictTag/index.vue
+++ b/ruoyi-ui/src/components/DictTag/index.vue
@@ -11,6 +11,7 @@
>
<el-tag
v-else
+ :disable-transitions="true"
:key="item.dictValue"
:index="index"
:type="item.listClass == 'primary' ? '' : item.listClass"
@@ -31,12 +32,12 @@
type: Array,
default: null,
},
- value: [String, Array],
+ value: [Number, String, Array],
},
computed: {
values() {
- if (this.value) {
- return Array.isArray(this.value) ? this.value : [this.value];
+ if (this.value !== null && typeof this.value !== 'undefined') {
+ return Array.isArray(this.value) ? this.value : [String(this.value)];
} else {
return [];
}
@@ -48,4 +49,4 @@
.el-tag + .el-tag {
margin-left: 10px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3