Commit aabafe86104252de6b3caa3fdbc71ee1f478b76c
Committed by
GitHub
1 parent
09862189
fix(components): [Table,EditableCell] rename Function (#2466)
Showing
1 changed file
with
4 additions
and
4 deletions
src/components/Table/src/components/editable/EditableCell.vue
@@ -195,10 +195,10 @@ | @@ -195,10 +195,10 @@ | ||
195 | value: unref(currentValueRef), | 195 | value: unref(currentValueRef), |
196 | record: toRaw(props.record), | 196 | record: toRaw(props.record), |
197 | }); | 197 | }); |
198 | - handleSubmiRule(); | 198 | + handleSubmitRule(); |
199 | } | 199 | } |
200 | 200 | ||
201 | - async function handleSubmiRule() { | 201 | + async function handleSubmitRule() { |
202 | const { column, record } = props; | 202 | const { column, record } = props; |
203 | const { editRule } = column; | 203 | const { editRule } = column; |
204 | const currentValue = unref(currentValueRef); | 204 | const currentValue = unref(currentValueRef); |
@@ -228,7 +228,7 @@ | @@ -228,7 +228,7 @@ | ||
228 | 228 | ||
229 | async function handleSubmit(needEmit = true, valid = true) { | 229 | async function handleSubmit(needEmit = true, valid = true) { |
230 | if (valid) { | 230 | if (valid) { |
231 | - const isPass = await handleSubmiRule(); | 231 | + const isPass = await handleSubmitRule(); |
232 | if (!isPass) return false; | 232 | if (!isPass) return false; |
233 | } | 233 | } |
234 | 234 | ||
@@ -340,7 +340,7 @@ | @@ -340,7 +340,7 @@ | ||
340 | 340 | ||
341 | if (props.record) { | 341 | if (props.record) { |
342 | initCbs('submitCbs', handleSubmit); | 342 | initCbs('submitCbs', handleSubmit); |
343 | - initCbs('validCbs', handleSubmiRule); | 343 | + initCbs('validCbs', handleSubmitRule); |
344 | initCbs('cancelCbs', handleCancel); | 344 | initCbs('cancelCbs', handleCancel); |
345 | 345 | ||
346 | if (props.column.dataIndex) { | 346 | if (props.column.dataIndex) { |