Browse Source

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

Co-authored-by: wjc <7098544231@qq.com>
pull/2041/head
wjc112233 4 years ago
committed by GitHub
parent
commit
ddb678ddfa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/Table/src/components/editable/EditableCell.vue

2
src/components/Table/src/components/editable/EditableCell.vue

@ -184,7 +184,7 @@
currentValueRef.value = e; currentValueRef.value = e;
} else if (e?.target && Reflect.has(e.target, 'value')) { } else if (e?.target && Reflect.has(e.target, 'value')) {
currentValueRef.value = (e as ChangeEvent).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; currentValueRef.value = e;
} }
const onChange = unref(getComponentProps)?.onChange; const onChange = unref(getComponentProps)?.onChange;

Loading…
Cancel
Save