<a-modal
@before-ok="handleOk"></a-modal>
const handleOk = async (done: (closed?: boolean) => void) => {
done(false);
}
@before-ok的done函数是 Arco 提供的控制句柄。- 这样能保证 校验失败时弹窗稳稳地保持打开状态,
<a-modal
@before-ok="handleOk"></a-modal>
const handleOk = async (done: (closed?: boolean) => void) => {
done(false);
}
@before-ok 的 done 函数是 Arco 提供的控制句柄。