update: 还原loading逻辑

This commit is contained in:
dap
2025-04-05 13:07:57 +08:00
parent 63630b17c1
commit b4d038e22f
2 changed files with 8 additions and 4 deletions

View File

@@ -124,11 +124,13 @@ export class ModalApi {
}
/**
* 为了兼容之前的代码 >=1.3.0调整为调用内部的lock/unlock方法
* loading和lock的区别
* loading允许关闭窗口
* lock不允许关闭窗口
* @param loading 是否loading
*/
modalLoading(loading: boolean) {
this.setState({ submitting: loading });
this.setState({ confirmLoading: loading, loading });
}
/**