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