Commit aabafe86104252de6b3caa3fdbc71ee1f478b76c

Authored by ruxue777
Committed by GitHub
1 parent 09862189

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

src/components/Table/src/components/editable/EditableCell.vue
... ... @@ -195,10 +195,10 @@
195 195 value: unref(currentValueRef),
196 196 record: toRaw(props.record),
197 197 });
198   - handleSubmiRule();
  198 + handleSubmitRule();
199 199 }
200 200  
201   - async function handleSubmiRule() {
  201 + async function handleSubmitRule() {
202 202 const { column, record } = props;
203 203 const { editRule } = column;
204 204 const currentValue = unref(currentValueRef);
... ... @@ -228,7 +228,7 @@
228 228  
229 229 async function handleSubmit(needEmit = true, valid = true) {
230 230 if (valid) {
231   - const isPass = await handleSubmiRule();
  231 + const isPass = await handleSubmitRule();
232 232 if (!isPass) return false;
233 233 }
234 234  
... ... @@ -340,7 +340,7 @@
340 340  
341 341 if (props.record) {
342 342 initCbs('submitCbs', handleSubmit);
343   - initCbs('validCbs', handleSubmiRule);
  343 + initCbs('validCbs', handleSubmitRule);
344 344 initCbs('cancelCbs', handleCancel);
345 345  
346 346 if (props.column.dataIndex) {
... ...