diff --git a/src/components/File/index.vue b/src/components/File/index.vue index d55946b5..80c74662 100644 --- a/src/components/File/index.vue +++ b/src/components/File/index.vue @@ -4,9 +4,9 @@ * @Description: 附近上传组件 --> - + diff --git a/src/components/Table/src/components/editable/EditableCell.vue b/src/components/Table/src/components/editable/EditableCell.vue index 64345247..9bb96314 100644 --- a/src/components/Table/src/components/editable/EditableCell.vue +++ b/src/components/Table/src/components/editable/EditableCell.vue @@ -339,33 +339,33 @@ /* eslint-disable */ isArray(props.record[cbs]) ? props.record[cbs]?.push(handle) - : (props.record[cbs] = [handle]); + : (props.record[cbs] = [handle]) } } if (props.record) { - initCbs('submitCbs', handleSubmit); - initCbs('validCbs', handleSubmitRule); - initCbs('cancelCbs', handleCancel); + initCbs('submitCbs', handleSubmit) + initCbs('validCbs', handleSubmitRule) + initCbs('cancelCbs', handleCancel) if (props.column.dataIndex) { - if (!props.record.editValueRefs) props.record.editValueRefs = {}; - props.record.editValueRefs[props.column.dataIndex as any] = currentValueRef; + if (!props.record.editValueRefs) props.record.editValueRefs = {} + props.record.editValueRefs[props.column.dataIndex as any] = currentValueRef } /* eslint-disable */ props.record.onCancelEdit = () => { - isArray(props.record?.cancelCbs) && props.record?.cancelCbs.forEach((fn) => fn()); - }; + isArray(props.record?.cancelCbs) && props.record?.cancelCbs.forEach((fn) => fn()) + } /* eslint-disable */ props.record.onSubmitEdit = async () => { if (isArray(props.record?.submitCbs)) { - if (!props.record?.onValid?.()) return; - const submitFns = props.record?.submitCbs || []; - submitFns.forEach((fn) => fn(false, false)); - table.emit?.('edit-row-end'); - return true; + if (!props.record?.onValid?.()) return + const submitFns = props.record?.submitCbs || [] + submitFns.forEach((fn) => fn(false, false)) + table.emit?.('edit-row-end') + return true } - }; + } } return { @@ -391,7 +391,7 @@ handleEnter, handleSubmitClick, spinning, - }; + } }, render() { return ( @@ -442,9 +442,9 @@ )} - ); + ) }, - }); + }) \ No newline at end of file +