Browse Source

fix: fix#2031 修复表格可编辑行在编辑模式下,无法处理数组类型的值的问题 (#2035)

Co-authored-by: wjc <7098544231@qq.com>
wjc112233 2 years ago
parent
commit
ddb678ddfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Table/src/components/editable/EditableCell.vue

+ 1 - 1
src/components/Table/src/components/editable/EditableCell.vue

@@ -184,7 +184,7 @@
           currentValueRef.value = e;
         } else if (e?.target && Reflect.has(e.target, 'value')) {
           currentValueRef.value = (e as ChangeEvent).target.value;
-        } else if (isString(e) || isBoolean(e) || isNumber(e)) {
+        } else if (isString(e) || isBoolean(e) || isNumber(e) || isArray(e)) {
           currentValueRef.value = e;
         }
         const onChange = unref(getComponentProps)?.onChange;