@gct-paas/core 0.1.4-dev.11 → 0.1.4-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/index.esm.min.js +21679 -0
  2. package/es/constants/core.mjs +5 -4
  3. package/es/constants/default-date-type/default-date-type.mjs +73 -21
  4. package/es/constants/editor-register/editor-register.mjs +17 -5
  5. package/es/constants/expression-type/BuiltOperators.mjs +152 -147
  6. package/es/constants/expression-type/FunctionKeys.mjs +75 -79
  7. package/es/constants/expression-type/editor.mjs +10 -3
  8. package/es/constants/expression-type/function.mjs +602 -613
  9. package/es/constants/expression-type/index.mjs +111 -113
  10. package/es/constants/expression-type/modeCfg.mjs +256 -263
  11. package/es/constants/expression-type/variable.mjs +43 -39
  12. package/es/constants/form-container-type/form-container-type.mjs +17 -5
  13. package/es/constants/index.mjs +30 -10
  14. package/es/constants/page-designer/model.mjs +15 -5
  15. package/es/create-app-vue.mjs +15 -9
  16. package/es/enums/app-designer/index.d.ts +19 -0
  17. package/es/enums/app-designer/index.mjs +131 -63
  18. package/es/enums/appEnum.mjs +681 -360
  19. package/es/enums/appStateEnum.mjs +17 -10
  20. package/es/enums/authActionEnum.mjs +63 -51
  21. package/es/enums/breakpointEnum.mjs +27 -26
  22. package/es/enums/cacheEnum.mjs +22 -21
  23. package/es/enums/designEnum.mjs +110 -71
  24. package/es/enums/developer-center/integration.mjs +7 -6
  25. package/es/enums/exceptionEnum.mjs +21 -17
  26. package/es/enums/expressionEnum.d.ts +1 -1
  27. package/es/enums/expressionEnum.mjs +81 -74
  28. package/es/enums/globalEnum.mjs +59 -36
  29. package/es/enums/httpEnum.mjs +71 -61
  30. package/es/enums/index.mjs +43 -14
  31. package/es/enums/menuEnum.mjs +42 -38
  32. package/es/enums/page-designer/designer.mjs +403 -407
  33. package/es/enums/page-designer/index.mjs +4 -0
  34. package/es/enums/page-designer/panel.mjs +341 -213
  35. package/es/enums/page-designer/toolkit.mjs +13 -12
  36. package/es/enums/page-designer/widget.mjs +425 -338
  37. package/es/enums/pageEnum.mjs +14 -13
  38. package/es/enums/plugin-enum.mjs +23 -7
  39. package/es/enums/processEnum.mjs +95 -60
  40. package/es/enums/roleEnum.mjs +7 -6
  41. package/es/enums/sizeEnum.d.ts +18 -0
  42. package/es/enums/sizeEnum.mjs +28 -8
  43. package/es/global/gct/gct.mjs +84 -96
  44. package/es/global/index.mjs +1 -0
  45. package/es/hooks/index.mjs +4 -0
  46. package/es/hooks/use-app-inst/use-app-inst.mjs +11 -5
  47. package/es/hooks/use-modal/use-modal.mjs +16 -10
  48. package/es/hooks/use-sub-app-utils/use-sub-app-utils.mjs +43 -23
  49. package/es/hooks/useCopyToClipboard.mjs +50 -50
  50. package/es/index.mjs +122 -114
  51. package/es/locale/index.mjs +43 -57
  52. package/es/modules/env-manager/env-manager.const.mjs +16 -8
  53. package/es/modules/env-manager/env-manager.interface.mjs +14 -7
  54. package/es/modules/env-manager/env-manager.mjs +104 -107
  55. package/es/modules/error-handler/error-handler.const.mjs +11 -16
  56. package/es/modules/error-handler/error-strategy.mjs +199 -175
  57. package/es/modules/error-handler/index.mjs +120 -106
  58. package/es/modules/mqtt/constants/mqtt.const.mjs +21 -24
  59. package/es/modules/mqtt/enums/mqtt-status.enum.mjs +23 -9
  60. package/es/modules/mqtt/index.mjs +4 -0
  61. package/es/modules/mqtt/mqtt-client.mjs +228 -261
  62. package/es/modules/mqtt/mqtt-manager.mjs +117 -77
  63. package/es/modules/platform-config/constants/index.mjs +4 -0
  64. package/es/modules/platform-config/constants/login.const.mjs +48 -45
  65. package/es/modules/platform-config/constants/org.const.mjs +57 -52
  66. package/es/modules/platform-config/constants/theme.const.mjs +11 -4
  67. package/es/modules/platform-config/constants/watermark.const.mjs +17 -12
  68. package/es/modules/platform-config/enums/deploy.enum.mjs +13 -6
  69. package/es/modules/platform-config/enums/login.enum.mjs +29 -15
  70. package/es/modules/platform-config/enums/platform.enum.mjs +16 -13
  71. package/es/modules/platform-config/index.mjs +9 -0
  72. package/es/modules/platform-config/store.mjs +68 -79
  73. package/es/modules/platform-config/useBasicSetting.mjs +47 -35
  74. package/es/modules/platform-config/useDeploySetting.mjs +29 -21
  75. package/es/modules/platform-config/useLoginSetting.mjs +151 -173
  76. package/es/modules/platform-config/useOrgSetting.mjs +63 -62
  77. package/es/modules/platform-config/useProjectSetting.mjs +14 -6
  78. package/es/modules/platform-config/useSecuritySetting.mjs +68 -56
  79. package/es/modules/platform-config/useThemeSetting.mjs +78 -59
  80. package/es/modules/platform-config/useWatermarkSetting.mjs +37 -23
  81. package/es/modules/user-stores/index.mjs +3 -0
  82. package/es/modules/user-stores/store/permission.store.mjs +27 -36
  83. package/es/modules/user-stores/store/tenant.store.mjs +20 -22
  84. package/es/modules/user-stores/store/user.store.mjs +94 -117
  85. package/es/router/index.mjs +25 -28
  86. package/es/setup-app.mjs +23 -39
  87. package/es/state/global-pinia-state/global-pinia-state.mjs +49 -71
  88. package/es/state/index.mjs +1 -0
  89. package/es/store/global-store.mjs +50 -72
  90. package/es/store/index.mjs +25 -19
  91. package/es/types/index.d.ts +7 -0
  92. package/es/utils/axios/interceptors.mjs +21 -17
  93. package/es/utils/cache-adapter/cache-adapter.mjs +61 -56
  94. package/es/utils/design/design.mjs +18 -12
  95. package/es/utils/deviceFingerprint.mjs +74 -63
  96. package/es/utils/dictionary/dictionary.mjs +142 -145
  97. package/es/utils/file/base64Conver.mjs +35 -30
  98. package/es/utils/file/download.mjs +94 -98
  99. package/es/utils/file/parser.d.ts +3 -0
  100. package/es/utils/file/parser.mjs +29 -0
  101. package/es/utils/i18n/index.mjs +14 -3
  102. package/es/utils/index.d.ts +1 -0
  103. package/es/utils/index.mjs +31 -0
  104. package/es/utils/is-sort-filed/is-sort-filed.mjs +42 -37
  105. package/es/utils/linked-list/linked-list.mjs +115 -118
  106. package/es/utils/linked-node/linked-node.mjs +41 -31
  107. package/es/utils/lowcode/utils.mjs +13 -18
  108. package/es/utils/lowcode/validate.mjs +20 -26
  109. package/es/utils/mitt/mitt.mjs +4 -4
  110. package/es/utils/model-loader/model-loader.mjs +280 -325
  111. package/es/utils/namespace/namespace.mjs +178 -164
  112. package/es/utils/openUtil/index.mjs +2 -0
  113. package/es/utils/openUtil/modal/modal.mjs +72 -79
  114. package/es/utils/openUtil/overlay-container/overlay-container.mjs +144 -138
  115. package/es/utils/permission.mjs +33 -37
  116. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +46 -42
  117. package/es/utils/style/index.mjs +94 -138
  118. package/es/utils/tools/tools.mjs +86 -54
  119. package/es/utils/treeHelper/treeHelper.mjs +205 -233
  120. package/es/utils/uploader/uploader.mjs +81 -115
  121. package/es/utils/useUUid.mjs +79 -87
  122. package/es/utils/util.mjs +55 -35
  123. package/es/utils/uuid/uuid.d.ts +1 -0
  124. package/es/utils/uuid/uuid.mjs +36 -43
  125. package/es/utils/validate.mjs +15 -19
  126. package/es/utils/value-helper/value-helper.mjs +113 -98
  127. package/package.json +12 -13
  128. package/dist/index.esm.min.mjs +0 -18322
  129. package/dist/index.min.cjs +0 -393
  130. package/dist/index.system.min.js +0 -393
@@ -1,169 +1,183 @@
1
- import { STYLE_NAMESPACE_TAG } from '../../constants/index.mjs';
2
-
3
- const statePrefix = "is-";
1
+ import "../../constants/index.mjs";
2
+ //#region src/utils/namespace/namespace.ts
3
+ var statePrefix = "is-";
4
+ /**
5
+ * css bem 命名规则拼接
6
+ * _bem('gct', 'layout') => gct-layout
7
+ * _bem('gct', 'layout', '', 'title') => gct-layout__title
8
+ * _bem('gct', 'layout', '', '', 'right') => gct-layout--right
9
+ * _bem('gct', 'layout', '', 'title', 'right') => gct-layout__title--right
10
+ * _bem('gct', 'layout', 'header', 'title', 'right') => gct-layout-header__title--right
11
+ *
12
+ * @param {string} namespace 命名空间
13
+ * @param {string} block 块
14
+ * @param {string} blockSuffix 块后缀
15
+ * @param {string} element 元素
16
+ * @param {string} modifier 修饰符
17
+ * @return {*} {string}
18
+ */
4
19
  function _bem(namespace, block, blockSuffix, element, modifier) {
5
- let cls = `${namespace}-${block}`;
6
- if (blockSuffix) {
7
- cls += `-${blockSuffix}`;
8
- }
9
- if (element) {
10
- cls += `__${element}`;
11
- }
12
- if (modifier) {
13
- cls += `--${modifier}`;
14
- }
15
- return cls;
16
- }
17
- class Namespace {
18
- /**
19
- * Creates an instance of Namespace.
20
- *
21
- * @param {string} block 当前命名空间的根模块,例如组件的名称
22
- * @param {string} [namespace] 指定命名空间,未指定使用默认值 gct
23
- */
24
- constructor(block, namespace) {
25
- this.block = block;
26
- this.namespace = namespace || STYLE_NAMESPACE_TAG;
27
- }
28
- /**
29
- * 命名空间
30
- *
31
- * @type {string}
32
- */
33
- namespace;
34
- /**
35
- * namespace-block
36
- * namespace-block-blockSuffix
37
- *
38
- * @param {string} [blockSuffix='']
39
- * @return {*} {string}
40
- */
41
- b(blockSuffix = "") {
42
- return _bem(this.namespace, this.block, blockSuffix, "", "");
43
- }
44
- /**
45
- * namespace-block__element
46
- *
47
- * @param {string} [element]
48
- * @return {*} {string}
49
- */
50
- e(element) {
51
- return element ? _bem(this.namespace, this.block, "", element, "") : "";
52
- }
53
- /**
54
- * namespace-block--modifier
55
- *
56
- * @param {string} [modifier]
57
- * @return {*} {string}
58
- */
59
- m(modifier) {
60
- return modifier ? _bem(this.namespace, this.block, "", "", modifier) : "";
61
- }
62
- /**
63
- * namespace-block-blockSuffix__element
64
- *
65
- * @param {string} [blockSuffix]
66
- * @param {string} [element]
67
- * @return {*} {string}
68
- */
69
- be(blockSuffix, element) {
70
- return blockSuffix && element ? _bem(this.namespace, this.block, blockSuffix, element, "") : "";
71
- }
72
- /**
73
- * namespace-block__element--modifier
74
- *
75
- * @param {string} [element]
76
- * @param {string} [modifier]
77
- * @return {*} {string}
78
- */
79
- em(element, modifier) {
80
- return element && modifier ? _bem(this.namespace, this.block, "", element, modifier) : "";
81
- }
82
- /**
83
- * namespace-block-blockSuffix--modifier
84
- *
85
- * @param {string} [blockSuffix]
86
- * @param {string} [modifier]
87
- * @return {*} {string}
88
- */
89
- bm(blockSuffix, modifier) {
90
- return blockSuffix && modifier ? _bem(this.namespace, this.block, blockSuffix, "", modifier) : "";
91
- }
92
- /**
93
- * namespace-block-blockSuffix__element--modifier
94
- *
95
- * @param {string} [blockSuffix]
96
- * @param {string} [element]
97
- * @param {string} [modifier]
98
- * @return {*} {string}
99
- */
100
- bem(blockSuffix, element, modifier) {
101
- return blockSuffix && element && modifier ? _bem(this.namespace, this.block, blockSuffix, element, modifier) : "";
102
- }
103
- /**
104
- * 返回状态 class
105
- *
106
- * is('loading', false) => '';
107
- * is('loading', true) => 'is-loading';
108
- *
109
- * @param {string} name
110
- * @param {boolean} [state]
111
- * @return {*} {string}
112
- */
113
- is(name, state) {
114
- return name && state ? `${statePrefix}${name}` : "";
115
- }
116
- /**
117
- * 生成使用到的 css 变量 style 对象
118
- *
119
- * @param {Record<string, string>} object
120
- * @return {*} {Record<string, string>}
121
- */
122
- cssVar(object) {
123
- const styles = {};
124
- for (const key in object) {
125
- if (object[key]) {
126
- styles[this.cssVarName(key)] = object[key];
127
- }
128
- }
129
- return styles;
130
- }
131
- /**
132
- * 生成使用到的 css block 变量 style 对象
133
- *
134
- * @param {Record<string, string>} object
135
- * @return {*} {Record<string, string>}
136
- */
137
- cssVarBlock(object) {
138
- const styles = {};
139
- for (const key in object) {
140
- if (object[key]) {
141
- styles[this.cssVarBlockName(key)] = object[key];
142
- }
143
- }
144
- return styles;
145
- }
146
- /**
147
- * 生成 css var 变量名称
148
- *
149
- * @param {string} name
150
- * @return {*} {string}
151
- */
152
- cssVarName(name) {
153
- return `--${this.namespace}-${name}`;
154
- }
155
- /**
156
- * 生成块 css var 变量名称
157
- *
158
- * @param {string} name
159
- * @return {*} {string}
160
- */
161
- cssVarBlockName(name) {
162
- return `--${this.namespace}-${this.block}-${name}`;
163
- }
20
+ let cls = `${namespace}-${block}`;
21
+ if (blockSuffix) cls += `-${blockSuffix}`;
22
+ if (element) cls += `__${element}`;
23
+ if (modifier) cls += `--${modifier}`;
24
+ return cls;
164
25
  }
26
+ /**
27
+ * 全局样式处理命名空间
28
+ *
29
+ * @export
30
+ * @class Namespace
31
+ */
32
+ var Namespace = class {
33
+ /**
34
+ * 命名空间
35
+ *
36
+ * @type {string}
37
+ */
38
+ namespace;
39
+ /**
40
+ * Creates an instance of Namespace.
41
+ *
42
+ * @param {string} block 当前命名空间的根模块,例如组件的名称
43
+ * @param {string} [namespace] 指定命名空间,未指定使用默认值 gct
44
+ */
45
+ constructor(block, namespace) {
46
+ this.block = block;
47
+ this.namespace = namespace || "gct";
48
+ }
49
+ /**
50
+ * namespace-block
51
+ * namespace-block-blockSuffix
52
+ *
53
+ * @param {string} [blockSuffix='']
54
+ * @return {*} {string}
55
+ */
56
+ b(blockSuffix = "") {
57
+ return _bem(this.namespace, this.block, blockSuffix, "", "");
58
+ }
59
+ /**
60
+ * namespace-block__element
61
+ *
62
+ * @param {string} [element]
63
+ * @return {*} {string}
64
+ */
65
+ e(element) {
66
+ return element ? _bem(this.namespace, this.block, "", element, "") : "";
67
+ }
68
+ /**
69
+ * namespace-block--modifier
70
+ *
71
+ * @param {string} [modifier]
72
+ * @return {*} {string}
73
+ */
74
+ m(modifier) {
75
+ return modifier ? _bem(this.namespace, this.block, "", "", modifier) : "";
76
+ }
77
+ /**
78
+ * namespace-block-blockSuffix__element
79
+ *
80
+ * @param {string} [blockSuffix]
81
+ * @param {string} [element]
82
+ * @return {*} {string}
83
+ */
84
+ be(blockSuffix, element) {
85
+ return blockSuffix && element ? _bem(this.namespace, this.block, blockSuffix, element, "") : "";
86
+ }
87
+ /**
88
+ * namespace-block__element--modifier
89
+ *
90
+ * @param {string} [element]
91
+ * @param {string} [modifier]
92
+ * @return {*} {string}
93
+ */
94
+ em(element, modifier) {
95
+ return element && modifier ? _bem(this.namespace, this.block, "", element, modifier) : "";
96
+ }
97
+ /**
98
+ * namespace-block-blockSuffix--modifier
99
+ *
100
+ * @param {string} [blockSuffix]
101
+ * @param {string} [modifier]
102
+ * @return {*} {string}
103
+ */
104
+ bm(blockSuffix, modifier) {
105
+ return blockSuffix && modifier ? _bem(this.namespace, this.block, blockSuffix, "", modifier) : "";
106
+ }
107
+ /**
108
+ * namespace-block-blockSuffix__element--modifier
109
+ *
110
+ * @param {string} [blockSuffix]
111
+ * @param {string} [element]
112
+ * @param {string} [modifier]
113
+ * @return {*} {string}
114
+ */
115
+ bem(blockSuffix, element, modifier) {
116
+ return blockSuffix && element && modifier ? _bem(this.namespace, this.block, blockSuffix, element, modifier) : "";
117
+ }
118
+ /**
119
+ * 返回状态 class
120
+ *
121
+ * is('loading', false) => '';
122
+ * is('loading', true) => 'is-loading';
123
+ *
124
+ * @param {string} name
125
+ * @param {boolean} [state]
126
+ * @return {*} {string}
127
+ */
128
+ is(name, state) {
129
+ return name && state ? `${statePrefix}${name}` : "";
130
+ }
131
+ /**
132
+ * 生成使用到的 css 变量 style 对象
133
+ *
134
+ * @param {Record<string, string>} object
135
+ * @return {*} {Record<string, string>}
136
+ */
137
+ cssVar(object) {
138
+ const styles = {};
139
+ for (const key in object) if (object[key]) styles[this.cssVarName(key)] = object[key];
140
+ return styles;
141
+ }
142
+ /**
143
+ * 生成使用到的 css block 变量 style 对象
144
+ *
145
+ * @param {Record<string, string>} object
146
+ * @return {*} {Record<string, string>}
147
+ */
148
+ cssVarBlock(object) {
149
+ const styles = {};
150
+ for (const key in object) if (object[key]) styles[this.cssVarBlockName(key)] = object[key];
151
+ return styles;
152
+ }
153
+ /**
154
+ * 生成 css var 变量名称
155
+ *
156
+ * @param {string} name
157
+ * @return {*} {string}
158
+ */
159
+ cssVarName(name) {
160
+ return `--${this.namespace}-${name}`;
161
+ }
162
+ /**
163
+ * 生成块 css var 变量名称
164
+ *
165
+ * @param {string} name
166
+ * @return {*} {string}
167
+ */
168
+ cssVarBlockName(name) {
169
+ return `--${this.namespace}-${this.block}-${name}`;
170
+ }
171
+ };
172
+ /**
173
+ * 获取 bem 操作类
174
+ *
175
+ * @export
176
+ * @param {string} block
177
+ * @return {*} {Namespace}
178
+ */
165
179
  function useNamespace(block) {
166
- return new Namespace(block);
180
+ return new Namespace(block);
167
181
  }
168
-
182
+ //#endregion
169
183
  export { Namespace, useNamespace };
@@ -0,0 +1,2 @@
1
+ import "./modal/modal.mjs";
2
+ import "./overlay-container/overlay-container.mjs";
@@ -1,80 +1,73 @@
1
- import { reactive } from 'vue';
2
- import { AsyncSeriesHook } from 'qx-util';
3
-
4
- class Modal {
5
- ignoreDismissCheck = false;
6
- state = reactive({
7
- okDisabled: false,
8
- cancelDisabled: false
9
- });
10
- hooks = {
11
- shouldDismiss: new AsyncSeriesHook(),
12
- beforeDismiss: new AsyncSeriesHook()
13
- };
14
- ok;
15
- setOptions;
16
- constructor(opts) {
17
- if (opts.dismiss) {
18
- this._dismiss = opts.dismiss;
19
- }
20
- if (opts.setOptions) {
21
- this.setOptions = opts.setOptions;
22
- }
23
- }
24
- cancel;
25
- callback(ok, cancel) {
26
- if (ok) {
27
- this.ok = ok;
28
- }
29
- if (cancel) {
30
- this.cancel = cancel;
31
- }
32
- }
33
- /**
34
- * 外部注入的模态等组件实际的关闭操作
35
- *
36
- * @author zhanghanrui
37
- * @date 2024-03-19 21:03:08
38
- * @param {IModalData} data
39
- */
40
- _dismiss = (data) => {
41
- console.warn("外部关闭能力未注册", data);
42
- };
43
- /**
44
- * 注入模态等组件实际的关闭操作
45
- *
46
- * @author zhanghanrui
47
- * @date 2024-03-19 21:03:13
48
- * @param {(data: IModalData) => void} dismiss
49
- */
50
- injectDismiss(dismiss) {
51
- this._dismiss = dismiss;
52
- }
53
- async dismiss(data = { ok: false, data: [] }) {
54
- const context = {};
55
- if (this.ignoreDismissCheck !== true) {
56
- await this.hooks.shouldDismiss.call(context);
57
- }
58
- if (context.allowClose === false) {
59
- console.warn("shouldDismiss结果为false,关闭中断。");
60
- return false;
61
- }
62
- await this.hooks.beforeDismiss.call(data);
63
- this._dismiss(data);
64
- this.destroy();
65
- return true;
66
- }
67
- /**
68
- * 执行完一次关闭后就会调销毁
69
- *
70
- * @author zhanghanrui
71
- * @date 2024-03-19 21:03:22
72
- * @protected
73
- */
74
- destroy() {
75
- this.hooks.shouldDismiss.clear();
76
- this.hooks.beforeDismiss.clear();
77
- }
78
- }
79
-
1
+ import { reactive } from "vue";
2
+ import { AsyncSeriesHook } from "qx-util";
3
+ //#region src/utils/openUtil/modal/modal.ts
4
+ var Modal = class {
5
+ ignoreDismissCheck = false;
6
+ state = reactive({
7
+ okDisabled: false,
8
+ cancelDisabled: false
9
+ });
10
+ hooks = {
11
+ shouldDismiss: new AsyncSeriesHook(),
12
+ beforeDismiss: new AsyncSeriesHook()
13
+ };
14
+ ok;
15
+ setOptions;
16
+ constructor(opts) {
17
+ if (opts.dismiss) this._dismiss = opts.dismiss;
18
+ if (opts.setOptions) this.setOptions = opts.setOptions;
19
+ }
20
+ cancel;
21
+ callback(ok, cancel) {
22
+ if (ok) this.ok = ok;
23
+ if (cancel) this.cancel = cancel;
24
+ }
25
+ /**
26
+ * 外部注入的模态等组件实际的关闭操作
27
+ *
28
+ * @author zhanghanrui
29
+ * @date 2024-03-19 21:03:08
30
+ * @param {IModalData} data
31
+ */
32
+ _dismiss = (data) => {
33
+ console.warn("外部关闭能力未注册", data);
34
+ };
35
+ /**
36
+ * 注入模态等组件实际的关闭操作
37
+ *
38
+ * @author zhanghanrui
39
+ * @date 2024-03-19 21:03:13
40
+ * @param {(data: IModalData) => void} dismiss
41
+ */
42
+ injectDismiss(dismiss) {
43
+ this._dismiss = dismiss;
44
+ }
45
+ async dismiss(data = {
46
+ ok: false,
47
+ data: []
48
+ }) {
49
+ const context = {};
50
+ if (this.ignoreDismissCheck !== true) await this.hooks.shouldDismiss.call(context);
51
+ if (context.allowClose === false) {
52
+ console.warn("shouldDismiss结果为false,关闭中断。");
53
+ return false;
54
+ }
55
+ await this.hooks.beforeDismiss.call(data);
56
+ this._dismiss(data);
57
+ this.destroy();
58
+ return true;
59
+ }
60
+ /**
61
+ * 执行完一次关闭后就会调销毁
62
+ *
63
+ * @author zhanghanrui
64
+ * @date 2024-03-19 21:03:22
65
+ * @protected
66
+ */
67
+ destroy() {
68
+ this.hooks.shouldDismiss.clear();
69
+ this.hooks.beforeDismiss.clear();
70
+ }
71
+ };
72
+ //#endregion
80
73
  export { Modal };