Ver Fonte

update 优化 字典组件值宽松匹配values的问题

Signed-off-by: 加多宝 <945324621@qq.com>
加多宝 há 3 meses atrás
pai
commit
3008a8d7b0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/components/DictTag/index.vue

+ 1 - 1
src/components/DictTag/index.vue

@@ -88,7 +88,7 @@ const handleArray = (array: Array<string | number>) => {
 };
 
 const isValueMatch = (itemValue: any) => {
-  return this.values.some(val => val == itemValue)
+  return values.value.some(val => val == itemValue)
 }
 </script>