MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / confirmModal

Function confirmModal

src/pages/Workspace/index.jsx:57–81  ·  view source on GitHub ↗
(title, onOk)

Source from the content-addressed store, hash-verified

55 });
56 }
57 function confirmModal(title, onOk) {
58 // 确定框
59 confirm({
60 title,
61 getContainer: document.getElementById("workspace"),
62 icon: <ExclamationCircleOutlined />,
63 okText: '确定',
64 okType: 'danger',
65 okButtonProps: {
66 ghost: true
67 },
68 maskClosable: true,
69 mask: true,
70 cancelText: '取消',
71 cancelButtonProps: {
72 ghost: true
73 },
74 onOk() {
75 setTimeout(async () => {
76 onOk()
77 }, 100);
78 },
79 onCancel() { },
80 });
81 }
82
83 function share() {
84 setShareModal(true)

Callers 2

delWindowFunction · 0.85
WorkspaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected