Browse Source

禁用el-tag组件的渐变动画

RuoYi 3 years ago
parent
commit
524982c7bd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ruoyi-ui/src/components/DictTag/index.vue

+ 2 - 1
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"
@@ -48,4 +49,4 @@ export default {
 .el-tag + .el-tag {
   margin-left: 10px;
 }
-</style>
+</style>