@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

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 (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. package/useTableSync.js +0 -117
package/CheckDictTable.js DELETED
@@ -1,242 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, normalizeClass, withDirectives, createElementVNode, vShow } from "vue";
21
- import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
22
- import { u as useTableSync } from "./useTableSync.js";
23
- import { useMessage } from "/@/hooks/web/useMessage";
24
- import { useJPrompt } from "/@/components/jeecg/JPrompt";
25
- import { useDesign } from "/@/hooks/web/useDesign";
26
- import { _ as _export_sfc } from "./index.js";
27
- import "./cgform.data.js";
28
- import "/@/utils/dict";
29
- import "/@/utils/dict/JDictSelectUtil";
30
- import "/@/utils/uuid";
31
- import "./pick.js";
32
- import "./_flatRest.js";
33
- import "./isArray.js";
34
- import "./toString.js";
35
- import "./_arrayPush.js";
36
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
37
- import "vue-router";
38
- var CheckDictTable_vue_vue_type_style_index_0_scoped_true_lang = "";
39
- const _sfc_main = defineComponent({
40
- name: "CheckDictTable",
41
- components: {
42
- VNodes: (_, { attrs }) => attrs.vnodes
43
- },
44
- setup() {
45
- const { prefixCls } = useDesign("cgform-check-dict-table");
46
- const { createMessage: $message } = useMessage();
47
- const columns = ref([
48
- { title: "\u5B57\u6BB5\u540D\u79F0", key: "dbFieldName", width: 100 },
49
- { title: "\u5B57\u6BB5\u5907\u6CE8", key: "dbFieldTxt", width: 100 },
50
- {
51
- title: "\u5B57\u6BB5Href",
52
- key: "fieldHref",
53
- width: 130,
54
- type: JVxeTypes.input,
55
- defaultValue: ""
56
- },
57
- {
58
- title: "\u9A8C\u8BC1\u89C4\u5219",
59
- key: "fieldValidType",
60
- width: 170,
61
- type: JVxeTypes.slot,
62
- slotName: "fieldValidType",
63
- allowInput: true,
64
- defaultValue: "",
65
- placeholder: "\u7A7A"
66
- },
67
- {
68
- title: "\u6821\u9A8C\u5FC5\u586B",
69
- key: "fieldMustInput",
70
- width: 80,
71
- type: JVxeTypes.checkbox,
72
- align: "center",
73
- customValue: ["1", "0"],
74
- defaultChecked: false
75
- },
76
- {
77
- title: "\u5B57\u5178Table",
78
- key: "dictTable",
79
- width: 280,
80
- type: JVxeTypes.textarea,
81
- defaultValue: ""
82
- },
83
- {
84
- title: "\u5B57\u5178Code",
85
- key: "dictField",
86
- width: 280,
87
- type: JVxeTypes.input,
88
- defaultValue: ""
89
- },
90
- {
91
- title: "\u5B57\u5178Text",
92
- key: "dictText",
93
- width: 280,
94
- type: JVxeTypes.input,
95
- defaultValue: ""
96
- }
97
- ]);
98
- const setup = useTableSync(columns);
99
- const validTypeOptions = ref([
100
- { label: "\u7A7A", value: "" },
101
- { label: "\u552F\u4E00\u6821\u9A8C", value: "only" },
102
- { label: "6\u523016\u4F4D\u6570\u5B57", value: "n6-16" },
103
- { label: "6\u523018\u4F4D\u5B57\u6BCD", value: "s6-18" },
104
- { label: "6\u523016\u4F4D\u4EFB\u610F\u5B57\u7B26", value: "*6-16" },
105
- { label: "\u7F51\u5740", value: "url" },
106
- { label: "\u7535\u5B50\u90AE\u4EF6", value: "e" },
107
- { label: "\u624B\u673A\u53F7\u7801", value: "m" },
108
- { label: "\u90AE\u653F\u7F16\u7801", value: "p" },
109
- { label: "\u5B57\u6BCD", value: "s" },
110
- { label: "\u6570\u5B57", value: "n" },
111
- { label: "\u6574\u6570", value: "z" },
112
- { label: "\u975E\u7A7A", value: "*" },
113
- { label: "\u91D1\u989D", value: "money" }
114
- ]);
115
- const validTypeValues = computed(() => {
116
- return validTypeOptions.value.map((opt) => opt.value);
117
- });
118
- const { createJPrompt } = useJPrompt();
119
- function isCustomRegexp(value) {
120
- return value != null && !validTypeValues.value.includes(value);
121
- }
122
- function onAddCustomRegexp(props) {
123
- createJPrompt({
124
- title: "\u81EA\u5B9A\u4E49\u6B63\u5219\u8868\u8FBE\u5F0F",
125
- placeholder: "\u8BF7\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",
126
- rules: [{ required: true, message: "\u6B63\u5219\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A\uFF01" }, { validator: validatorCustomRegexp }],
127
- onOk: (value) => {
128
- props.triggerChange(value);
129
- $message.success("\u6DFB\u52A0\u6210\u529F");
130
- }
131
- });
132
- }
133
- function onChangeCustomRegexp(props) {
134
- createJPrompt({
135
- title: "\u4FEE\u6539\u81EA\u5B9A\u4E49\u6B63\u5219\u8868\u8FBE\u5F0F",
136
- defaultValue: props.value,
137
- placeholder: "\u8BF7\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",
138
- rules: [{ required: true, message: "\u6B63\u5219\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A\uFF01" }, { validator: validatorCustomRegexp }],
139
- onOk: (value) => {
140
- props.triggerChange(value);
141
- if (value !== props.value) {
142
- $message.success("\u4FEE\u6539\u6210\u529F");
143
- }
144
- }
145
- });
146
- }
147
- function validatorCustomRegexp(_, value) {
148
- if (isCustomRegexp(value)) {
149
- return Promise.resolve();
150
- } else {
151
- return Promise.reject("\u5F53\u524D\u6821\u9A8C\u5DF2\u5B58\u5728");
152
- }
153
- }
154
- return __spreadProps(__spreadValues({}, setup), {
155
- prefixCls,
156
- columns,
157
- isCustomRegexp,
158
- validTypeOptions,
159
- validTypeValues,
160
- onAddCustomRegexp,
161
- onChangeCustomRegexp
162
- });
163
- }
164
- });
165
- const _hoisted_1 = {
166
- class: "custom-option-list rc-virtual-list-holder-inner",
167
- style: { "border-top": "1px solid #dfdfdf" }
168
- };
169
- const _hoisted_2 = ["onClick"];
170
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
171
- const _component_VNodes = resolveComponent("VNodes");
172
- const _component_a_select = resolveComponent("a-select");
173
- const _component_a_col = resolveComponent("a-col");
174
- const _component_a_button = resolveComponent("a-button");
175
- const _component_a_row = resolveComponent("a-row");
176
- const _component_JVxeTable = resolveComponent("JVxeTable");
177
- return openBlock(), createBlock(_component_JVxeTable, mergeProps({
178
- ref: "tableRef",
179
- rowNumber: "",
180
- keyboardEdit: "",
181
- class: [_ctx.prefixCls],
182
- maxHeight: _ctx.tableHeight.noToolbar,
183
- loading: _ctx.loading,
184
- columns: _ctx.columns,
185
- dataSource: _ctx.dataSource,
186
- disabledRows: { dbFieldName: ["id", "has_child"] }
187
- }, _ctx.tableProps), {
188
- fieldValidType: withCtx((props) => [
189
- createVNode(_component_a_row, {
190
- type: "flex",
191
- class: normalizeClass(["row-valid-type", { full: !_ctx.isCustomRegexp(props.value) }])
192
- }, {
193
- default: withCtx(() => [
194
- createVNode(_component_a_col, {
195
- class: normalizeClass(["left"])
196
- }, {
197
- default: withCtx(() => [
198
- createVNode(_component_a_select, {
199
- value: props.value,
200
- options: _ctx.validTypeOptions,
201
- placeholder: "\u7A7A",
202
- style: { "width": "100%" },
203
- onChange: props.triggerChange
204
- }, {
205
- dropdownRender: withCtx(({ menuNode }) => [
206
- createVNode(_component_VNodes, { vnodes: menuNode }, null, 8, ["vnodes"]),
207
- withDirectives(createElementVNode("div", _hoisted_1, [
208
- createElementVNode("div", {
209
- class: "ant-select-item ant-select-item-option",
210
- title: "\u4F7F\u7528\u81EA\u5B9A\u4E49\u6B63\u5219\u8868\u8FBE\u5F0F\u4F5C\u4E3A\u6821\u9A8C\u89C4\u5219",
211
- onClick: ($event) => _ctx.onAddCustomRegexp(props)
212
- }, " \u6B63\u5219\u8868\u8FBE\u5F0F ", 8, _hoisted_2)
213
- ], 512), [
214
- [vShow, !_ctx.isCustomRegexp(props.value)]
215
- ])
216
- ]),
217
- _: 2
218
- }, 1032, ["value", "options", "onChange"])
219
- ]),
220
- _: 2
221
- }, 1024),
222
- createVNode(_component_a_col, {
223
- class: "right",
224
- title: "\u4FEE\u6539\u81EA\u5B9A\u4E49\u6B63\u5219\u8868\u8FBE\u5F0F"
225
- }, {
226
- default: withCtx(() => [
227
- createVNode(_component_a_button, {
228
- preIcon: "ant-design:edit",
229
- onClick: () => _ctx.onChangeCustomRegexp(props)
230
- }, null, 8, ["onClick"])
231
- ]),
232
- _: 2
233
- }, 1024)
234
- ]),
235
- _: 2
236
- }, 1032, ["class"])
237
- ]),
238
- _: 1
239
- }, 16, ["class", "maxHeight", "loading", "columns", "dataSource"]);
240
- }
241
- var CheckDictTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-68f6d466"]]);
242
- export { CheckDictTable as default };
@@ -1,175 +0,0 @@
1
- var __async = (__this, __arguments, generator) => {
2
- return new Promise((resolve, reject) => {
3
- var fulfilled = (value) => {
4
- try {
5
- step(generator.next(value));
6
- } catch (e) {
7
- reject(e);
8
- }
9
- };
10
- var rejected = (value) => {
11
- try {
12
- step(generator.throw(value));
13
- } catch (e) {
14
- reject(e);
15
- }
16
- };
17
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
18
- step((generator = generator.apply(__this, __arguments)).next());
19
- });
20
- };
21
- import { ref, reactive, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createTextVNode, createElementVNode, normalizeStyle, renderList, toDisplayString } from "vue";
22
- import { defHttp } from "/@/utils/http/axios";
23
- import "/@/components/Form";
24
- import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
25
- import { InfoCircleTwoTone } from "@ant-design/icons-vue";
26
- import CodeFileViewModal from "./CodeFileViewModal.js";
27
- import { useMessage } from "/@/hooks/web/useMessage";
28
- import { downloadByData } from "/@/utils/file/download";
29
- import { _ as _export_sfc } from "./index.js";
30
- import "ant-design-vue";
31
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
32
- import "vue-router";
33
- const _sfc_main = {
34
- name: "CodeFileListModal",
35
- components: {
36
- BasicModal,
37
- InfoCircleTwoTone,
38
- CodeFileViewModal
39
- },
40
- emits: ["register"],
41
- setup() {
42
- const { createMessage: $message } = useMessage();
43
- const codeList = ref([]);
44
- const height = window.innerHeight - 150;
45
- const divStyle = reactive({
46
- overflowY: "auto",
47
- maxHeight: height + "px"
48
- });
49
- const loading = ref(false);
50
- const tableName = ref("");
51
- const pathKey = ref("");
52
- const [registerModal, { closeModal }] = useModalInner((data) => __async(this, null, function* () {
53
- codeList.value = data.codeList;
54
- tableName.value = data.tableName;
55
- pathKey.value = data.pathKey;
56
- }));
57
- function handleClose() {
58
- closeModal();
59
- }
60
- function onDownloadGenerateCode() {
61
- let codeFileList = codeList.value;
62
- if (!codeFileList || codeFileList.length == 0) {
63
- $message.warning("\u65E0\u4EE3\u7801\uFF01");
64
- return;
65
- }
66
- let temp = codeFileList.join(",");
67
- return defHttp.post(
68
- {
69
- url: "/online/cgform/api/downGenerateCode",
70
- params: {
71
- fileList: encodeURI(temp),
72
- pathKey: pathKey.value
73
- },
74
- responseType: "blob"
75
- },
76
- { isTransformResponse: false }
77
- ).then((data) => {
78
- if (!data || data.size == 0) {
79
- $message.warning("\u5BFC\u51FA\u4EE3\u7801\u5931\u8D25\uFF01");
80
- return;
81
- }
82
- let fileName = "\u5BFC\u5230\u751F\u6210\u4EE3\u7801_" + tableName.value + "_" + new Date().getTime() + ".zip";
83
- downloadByData(data, fileName, "application/zip");
84
- });
85
- }
86
- const [registerCodeViewModal, { openModal }] = useModal();
87
- function handleView() {
88
- let temp = codeList.value;
89
- openModal(true, {
90
- codeList: temp,
91
- pathKey: pathKey.value
92
- });
93
- }
94
- return {
95
- registerModal,
96
- registerCodeViewModal,
97
- divStyle,
98
- codeList,
99
- onDownloadGenerateCode,
100
- handleClose,
101
- handleView,
102
- loading
103
- };
104
- }
105
- };
106
- const _hoisted_1 = /* @__PURE__ */ createElementVNode("br", null, null, -1);
107
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
108
- const _component_info_circle_two_tone = resolveComponent("info-circle-two-tone");
109
- const _component_a_button = resolveComponent("a-button");
110
- const _component_BasicModal = resolveComponent("BasicModal");
111
- const _component_code_file_view_modal = resolveComponent("code-file-view-modal");
112
- return openBlock(), createElementBlock(Fragment, null, [
113
- createVNode(_component_BasicModal, {
114
- onRegister: $setup.registerModal,
115
- width: 1200,
116
- defaultFullscreen: false,
117
- canFullscreen: false
118
- }, {
119
- title: withCtx(() => [
120
- createVNode(_component_info_circle_two_tone),
121
- createTextVNode(" \u4EE3\u7801\u751F\u6210\u7ED3\u679C ")
122
- ]),
123
- footer: withCtx(() => [
124
- createVNode(_component_a_button, { onClick: $setup.handleClose }, {
125
- default: withCtx(() => [
126
- createTextVNode("\u5173\u95ED")
127
- ]),
128
- _: 1
129
- }, 8, ["onClick"]),
130
- createVNode(_component_a_button, {
131
- type: "primary",
132
- ghost: "",
133
- onClick: $setup.handleView
134
- }, {
135
- default: withCtx(() => [
136
- createTextVNode("\u5728\u7EBF\u9884\u89C8")
137
- ]),
138
- _: 1
139
- }, 8, ["onClick"]),
140
- createVNode(_component_a_button, {
141
- type: "primary",
142
- onClick: $setup.onDownloadGenerateCode,
143
- loading: $setup.loading
144
- }, {
145
- default: withCtx(() => [
146
- createTextVNode("\u4E0B\u8F7D\u5230\u672C\u5730")
147
- ]),
148
- _: 1
149
- }, 8, ["onClick", "loading"])
150
- ]),
151
- default: withCtx(() => [
152
- createElementVNode("div", {
153
- style: normalizeStyle($setup.divStyle)
154
- }, [
155
- createElementVNode("p", null, [
156
- (openBlock(true), createElementBlock(Fragment, null, renderList($setup.codeList, (item) => {
157
- return openBlock(), createElementBlock(Fragment, null, [
158
- createTextVNode(toDisplayString(item), 1),
159
- _hoisted_1
160
- ], 64);
161
- }), 256))
162
- ])
163
- ], 4)
164
- ]),
165
- _: 1
166
- }, 8, ["onRegister"]),
167
- createVNode(_component_code_file_view_modal, {
168
- onRegister: $setup.registerCodeViewModal,
169
- onDownload: $setup.onDownloadGenerateCode,
170
- onClose: $setup.handleClose
171
- }, null, 8, ["onRegister", "onDownload", "onClose"])
172
- ], 64);
173
- }
174
- var CodeFileListModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
175
- export { CodeFileListModal as default };