fix(components): [Table,EditableCell] rename Function (#2466)

This commit is contained in:
ruxue777 2022-12-27 12:11:59 +08:00 committed by GitHub
parent 098621892d
commit aabafe8610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -195,10 +195,10 @@
value: unref(currentValueRef), value: unref(currentValueRef),
record: toRaw(props.record), record: toRaw(props.record),
}); });
handleSubmiRule(); handleSubmitRule();
} }
async function handleSubmiRule() { async function handleSubmitRule() {
const { column, record } = props; const { column, record } = props;
const { editRule } = column; const { editRule } = column;
const currentValue = unref(currentValueRef); const currentValue = unref(currentValueRef);
@ -228,7 +228,7 @@
async function handleSubmit(needEmit = true, valid = true) { async function handleSubmit(needEmit = true, valid = true) {
if (valid) { if (valid) {
const isPass = await handleSubmiRule(); const isPass = await handleSubmitRule();
if (!isPass) return false; if (!isPass) return false;
} }
@ -340,7 +340,7 @@
if (props.record) { if (props.record) {
initCbs('submitCbs', handleSubmit); initCbs('submitCbs', handleSubmit);
initCbs('validCbs', handleSubmiRule); initCbs('validCbs', handleSubmitRule);
initCbs('cancelCbs', handleCancel); initCbs('cancelCbs', handleCancel);
if (props.column.dataIndex) { if (props.column.dataIndex) {