Commit ddb678ddfaf1d9d924b12c3df11cb5312d76e2d9

Authored by wjc112233
Committed by GitHub
1 parent 91e13c42

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

Co-authored-by: wjc <7098544231@qq.com>
src/components/Table/src/components/editable/EditableCell.vue
... ... @@ -184,7 +184,7 @@
184 184 currentValueRef.value = e;
185 185 } else if (e?.target && Reflect.has(e.target, 'value')) {
186 186 currentValueRef.value = (e as ChangeEvent).target.value;
187   - } else if (isString(e) || isBoolean(e) || isNumber(e)) {
  187 + } else if (isString(e) || isBoolean(e) || isNumber(e) || isArray(e)) {
188 188 currentValueRef.value = e;
189 189 }
190 190 const onChange = unref(getComponentProps)?.onChange;
... ...