兰宝车间质量管理系统-前端
LiuHao
2024-04-16 30f271359a041455e1e5c3bf743a71f9b8440977
fix 修复字典el-tag警告
已修改2个文件
12 ■■■■ 文件已修改
src/components/DictTag/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/dict/data.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/DictTag/index.vue
@@ -15,7 +15,15 @@
          :key="item.value + ''"
          :disable-transitions="true"
          :index="index"
          :type="item.elTagType === 'primary' || item.elTagType === 'default' ? 'primary' : item.elTagType"
          :type="
            item.elTagType === 'primary' ||
            item.elTagType === 'success' ||
            item.elTagType === 'info' ||
            item.elTagType === 'warning' ||
            item.elTagType === 'danger'
              ? item.elTagType
              : 'primary'
          "
          :class="item.elTagClass"
        >
          {{ item.label + ' ' }}
src/views/system/dict/data.vue
@@ -55,7 +55,7 @@
            >
            <el-tag
              v-else
              :type="scope.row.listClass === 'primary' || scope.row.listClass === 'default' ? '' : scope.row.listClass"
              :type="scope.row.listClass === 'primary' || scope.row.listClass === 'default' ? 'primary' : scope.row.listClass"
              :class="scope.row.cssClass"
              >{{ scope.row.dictLabel }}</el-tag
            >