Commit 0e02fa9
committed
refactor(modal): 优化 Modal 组件的关闭逻辑
- 在 Modal 组件中添加 onCancel 属性,用于在用户点击关闭按钮时触发
- 修改 onClose 属性为 onCancel,统一关闭事件处理
- 此修改提高了代码的可读性和一致性,简化了 Modal 组件的使用1 parent 3547d14 commit 0e02fa9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments