@jeecg/online 3.5.3-beta3 → 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 -523
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -552
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1016
  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 -1020
  130. package/SuperQueryValComponent.js +0 -8
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
  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
@@ -1,286 +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 { defineComponent, ref, nextTick, watch, reactive, markRaw, defineAsyncComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createTextVNode, resolveDynamicComponent } from "vue";
22
- import { BasicModal, useModalInner } from "/@/components/Modal";
23
- import { g as getRefPromise } from "./useExtendComponent.js";
24
- import { defHttp } from "/@/utils/http/axios";
25
- import { O as OnlineForm } from "./OnlineForm.js";
26
- import { importViewsFile } from "/@/utils";
27
- import { _ as _export_sfc } from "./index.js";
28
- import "/@/components/Form/src/componentMap";
29
- import "/@/utils/propTypes";
30
- import "@ant-design/icons-vue";
31
- import "/@/hooks/web/useMessage";
32
- import "/@/components/Form/index";
33
- import "/@/components/Form/src/jeecg/components/JUpload";
34
- import "/@/views/system/user/user.api";
35
- import "./_commonjsHelpers.js";
36
- import "/@/store/modules/user";
37
- import "/@/utils/desform/customExpression";
38
- import "/@/store/modules/permission";
39
- import "/@/utils/dict/JDictSelectUtil";
40
- import "/@/utils/common/compUtils";
41
- import "./pick.js";
42
- import "./_flatRest.js";
43
- import "./isArray.js";
44
- import "./toString.js";
45
- import "./_arrayPush.js";
46
- import "/@/components/Table";
47
- import "/@/hooks/system/useListPage";
48
- import "vue-router";
49
- import "/@/components/Form/src/utils/Area";
50
- import "/@/components/Preview/index";
51
- import "./LinkTableListPiece.js";
52
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
53
- import "./OnlineSelectCascade.js";
54
- import "/@/components/Loading";
55
- import "/@/utils/auth";
56
- import "./JModalTip.js";
57
- import "ant-design-vue";
58
- import "@vueuse/core";
59
- import "/@/components/jeecg/JVxeTable/types";
60
- import "/@/hooks/core/useContext";
61
- import "/@/utils/mitt";
62
- import "/@/utils/cache";
63
- import "./omit.js";
64
- import "./_baseClone.js";
65
- import "./_baseSlice.js";
66
- const DEF_CONFIG = {
67
- code: "",
68
- title: "\u81EA\u5B9A\u4E49\u5F39\u6846",
69
- width: 600,
70
- row: {},
71
- hide: [],
72
- show: [],
73
- requestUrl: "",
74
- tableType: "",
75
- foreignKeys: "",
76
- formComponent: ""
77
- };
78
- const _sfc_main = defineComponent({
79
- name: "OnlineCustomModal",
80
- components: {
81
- OnlineForm,
82
- BasicModal
83
- },
84
- setup(_props, { emit }) {
85
- const onlineFormCompRef = ref();
86
- const id = ref("");
87
- const title = ref("\u81EA\u5B9A\u4E49\u5F39\u6846");
88
- const width = ref(600);
89
- let onlineHideFields = [];
90
- let onlineShowFields = [];
91
- let onlineFormEditUrl = "";
92
- let currentRowData = {};
93
- const url = {
94
- loadFormItems: "/online/cgform/api/getFormItem/",
95
- optPre: "/online/cgform/api/form/"
96
- };
97
- const modalStyle = { position: "relative" };
98
- const confirmLoading = ref(false);
99
- const formRendered = ref(false);
100
- function renderSuccess() {
101
- formRendered.value = true;
102
- }
103
- const isOnlineForm = ref(true);
104
- const [registerModal, { setModalProps, closeModal }] = useModalInner((params) => __async(this, null, function* () {
105
- setModalProps({ confirmLoading: false });
106
- resetParams(params);
107
- yield nextTick(() => __async(this, null, function* () {
108
- if (!params.formComponent) {
109
- yield showOnlineForm();
110
- } else {
111
- showCustomForm(params.formComponent);
112
- }
113
- }));
114
- }));
115
- function resetParams(params) {
116
- let options = Object.assign({}, DEF_CONFIG, params);
117
- id.value = options.code;
118
- title.value = options.title;
119
- width.value = options.width;
120
- onlineHideFields = options.hide || [];
121
- onlineShowFields = options.show || [];
122
- onlineFormEditUrl = getOnlineFormEditUrl(options.requestUrl);
123
- currentRowData = options.row;
124
- }
125
- function getOnlineFormEditUrl(requestUrl) {
126
- if (requestUrl) {
127
- return requestUrl;
128
- } else {
129
- return url.optPre + id.value;
130
- }
131
- }
132
- const submitLoading = ref(false);
133
- function handleSubmit() {
134
- submitLoading.value = true;
135
- if (isOnlineForm.value === true) {
136
- onlineFormCompRef.value.handleSubmit();
137
- } else {
138
- customFormRef.value.handleSubmit();
139
- }
140
- setTimeout(() => {
141
- submitLoading.value = true;
142
- }, 3500);
143
- }
144
- function handleCancel() {
145
- closeModal();
146
- }
147
- function handleSuccess(formData) {
148
- emit("success", formData);
149
- closeModal();
150
- }
151
- function showOnlineForm() {
152
- return __async(this, null, function* () {
153
- isOnlineForm.value = true;
154
- yield getRefPromise(formRendered);
155
- onlineFormCompRef.value.handleCustomFormSh(onlineShowFields, onlineHideFields);
156
- onlineFormCompRef.value.handleCustomFormEdit(currentRowData, onlineFormEditUrl);
157
- });
158
- }
159
- const formTemplate = ref(1);
160
- watch(id, renderFormItems, { immediate: true });
161
- function renderFormItems() {
162
- return __async(this, null, function* () {
163
- formRendered.value = false;
164
- if (!id.value) {
165
- return;
166
- }
167
- console.log("\u91CD\u65B0\u6E32\u67D3\u8868\u5355\u300B\u300B\u300B\u300Bmodal");
168
- let result = yield loadFormItems();
169
- let dataFormTemplate = result.head.formTemplate;
170
- formTemplate.value = dataFormTemplate ? Number(dataFormTemplate) : 1;
171
- nextTick(() => __async(this, null, function* () {
172
- let myForm = yield getRefPromise(onlineFormCompRef);
173
- myForm.createRootProperties(result);
174
- }));
175
- });
176
- }
177
- function loadFormItems() {
178
- let url2 = `/online/cgform/api/getFormItem/${id.value}`;
179
- return new Promise((resolve, reject) => {
180
- defHttp.get({ url: url2 }, { isTransformResponse: false }).then((res) => {
181
- console.log("\u8868\u5355\u7ED3\u679C\u300B\u300Bmodal:", res);
182
- if (res.success) {
183
- resolve(res.result);
184
- } else {
185
- reject(res.message);
186
- }
187
- }).catch(() => {
188
- reject();
189
- });
190
- });
191
- }
192
- const customFormRef = ref();
193
- const customFormComponent = reactive({
194
- url: "",
195
- is: "",
196
- row: {}
197
- });
198
- function showCustomForm(formComponent) {
199
- isOnlineForm.value = false;
200
- customFormComponent.url = onlineFormEditUrl;
201
- customFormComponent.row = currentRowData;
202
- customFormComponent.is = markRaw(defineAsyncComponent(() => importViewsFile(formComponent)));
203
- }
204
- return {
205
- registerModal,
206
- title,
207
- width,
208
- modalStyle,
209
- handleSubmit,
210
- handleCancel,
211
- id,
212
- onlineFormCompRef,
213
- formTemplate,
214
- renderSuccess,
215
- customFormRef,
216
- customFormComponent,
217
- open,
218
- isOnlineForm,
219
- confirmLoading,
220
- submitLoading,
221
- handleSuccess
222
- };
223
- }
224
- });
225
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
226
- const _component_a_button = resolveComponent("a-button");
227
- const _component_online_form = resolveComponent("online-form");
228
- const _component_a_spin = resolveComponent("a-spin");
229
- const _component_BasicModal = resolveComponent("BasicModal");
230
- return openBlock(), createBlock(_component_BasicModal, mergeProps({
231
- title: _ctx.title,
232
- width: _ctx.width
233
- }, _ctx.$attrs, {
234
- style: _ctx.modalStyle,
235
- onRegister: _ctx.registerModal,
236
- wrapClassName: "jeecg-online-modal2",
237
- onOk: _ctx.handleSubmit
238
- }), {
239
- footer: withCtx(() => [
240
- createVNode(_component_a_button, {
241
- key: "submit",
242
- type: "primary",
243
- onClick: _ctx.handleSubmit
244
- }, {
245
- default: withCtx(() => [
246
- createTextVNode("\u786E\u5B9A")
247
- ]),
248
- _: 1
249
- }, 8, ["onClick"]),
250
- createVNode(_component_a_button, {
251
- key: "back",
252
- onClick: _ctx.handleCancel
253
- }, {
254
- default: withCtx(() => [
255
- createTextVNode("\u5173\u95ED")
256
- ]),
257
- _: 1
258
- }, 8, ["onClick"])
259
- ]),
260
- default: withCtx(() => [
261
- createVNode(_component_a_spin, { spinning: _ctx.confirmLoading }, {
262
- default: withCtx(() => [
263
- _ctx.isOnlineForm ? (openBlock(), createBlock(_component_online_form, {
264
- key: 0,
265
- ref: "onlineFormCompRef",
266
- id: _ctx.id,
267
- "form-template": _ctx.formTemplate,
268
- onRendered: _ctx.renderSuccess,
269
- onSuccess: _ctx.handleSuccess,
270
- modalClass: "jeecg-online-modal2"
271
- }, null, 8, ["id", "form-template", "onRendered", "onSuccess"])) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.customFormComponent.is), {
272
- key: 1,
273
- ref: "customFormRef",
274
- url: _ctx.customFormComponent.url,
275
- row: _ctx.customFormComponent.row,
276
- onClose: _ctx.handleSuccess
277
- }, null, 40, ["url", "row", "onClose"]))
278
- ]),
279
- _: 1
280
- }, 8, ["spinning"])
281
- ]),
282
- _: 1
283
- }, 16, ["title", "width", "style", "onRegister", "onOk"]);
284
- }
285
- var OnlineCustomModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
286
- export { OnlineCustomModal as default };
@@ -1,190 +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 { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createTextVNode } from "vue";
22
- import { BasicModal } from "/@/components/Modal";
23
- import OnlineFormDetail from "./OnlineFormDetail.js";
24
- import { p as useAutoModal } from "./useExtendComponent.js";
25
- import CommentPanel from "/@/components/jeecg/comment/CommentPanel.vue";
26
- import { _ as _export_sfc } from "./index.js";
27
- import "/@/hooks/web/useMessage";
28
- import "/@/components/Loading";
29
- import "/@/utils/auth";
30
- import "/@/utils";
31
- import "@ant-design/icons-vue";
32
- import "./DetailForm.js";
33
- import "/@/utils/propTypes";
34
- import "/@/utils/dict";
35
- import "/@/utils/dict/JDictSelectUtil";
36
- import "/@/utils/dict/index";
37
- import "/@/api/common/api";
38
- import "/@/utils/http/axios";
39
- import "/@/components/Form/src/utils/Area";
40
- import "/@/utils/common/compUtils";
41
- import "/@/components/Preview/index";
42
- import "/@/components/Form/src/componentMap";
43
- import "/@/components/Form/index";
44
- import "/@/components/Form/src/jeecg/components/JUpload";
45
- import "/@/views/system/user/user.api";
46
- import "./_commonjsHelpers.js";
47
- import "/@/store/modules/user";
48
- import "/@/utils/desform/customExpression";
49
- import "/@/store/modules/permission";
50
- import "./pick.js";
51
- import "./_flatRest.js";
52
- import "./isArray.js";
53
- import "./toString.js";
54
- import "./_arrayPush.js";
55
- import "/@/components/Table";
56
- import "/@/hooks/system/useListPage";
57
- import "vue-router";
58
- import "./LinkTableListPiece.js";
59
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
60
- import "./OnlineSelectCascade.js";
61
- import "./JModalTip.js";
62
- import "ant-design-vue";
63
- import "@vueuse/core";
64
- import "./OnlineSubFormDetail.js";
65
- const _sfc_main = defineComponent({
66
- name: "OnlineDetailModal",
67
- props: {
68
- id: {
69
- type: String,
70
- required: false,
71
- default: ""
72
- }
73
- },
74
- components: {
75
- BasicModal,
76
- OnlineFormDetail,
77
- CommentPanel
78
- },
79
- emits: ["success", "register"],
80
- setup(props, { emit }) {
81
- console.log("\u8FDB\u5165\u8868\u5355\u5F39\u6846\u300B\u300B\u300B\u300Bmodal");
82
- const commentPanelRef = ref();
83
- function reloadComment() {
84
- if (commentPanelRef.value)
85
- commentPanelRef.value.reload();
86
- }
87
- const {
88
- title,
89
- modalWidth,
90
- registerModal,
91
- cgButtonList,
92
- handleCgButtonClick,
93
- disableSubmit,
94
- handleSubmit,
95
- submitLoading,
96
- handleCancel,
97
- handleFormConfig,
98
- onlineFormCompRef,
99
- formTemplate,
100
- isTreeForm,
101
- pidFieldName,
102
- renderSuccess,
103
- formRendered,
104
- showSub,
105
- tableName,
106
- formDataId,
107
- enableComment
108
- } = useAutoModal(false, { emit }, reloadComment);
109
- watch(() => props.id, renderFormItems, { immediate: true });
110
- function renderFormItems() {
111
- return __async(this, null, function* () {
112
- formRendered.value = false;
113
- if (!props.id) {
114
- return;
115
- }
116
- console.log("\u91CD\u65B0\u6E32\u67D3\u8868\u5355\u300B\u300B\u300B\u300Bmodal");
117
- yield handleFormConfig(props.id, {});
118
- });
119
- }
120
- const that = {
121
- title,
122
- onlineFormCompRef,
123
- renderSuccess,
124
- registerModal,
125
- handleSubmit,
126
- handleCancel,
127
- modalWidth,
128
- formTemplate,
129
- disableSubmit,
130
- cgButtonList,
131
- handleCgButtonClick,
132
- isTreeForm,
133
- pidFieldName,
134
- submitLoading,
135
- showSub,
136
- tableName,
137
- formDataId,
138
- enableComment,
139
- commentPanelRef
140
- };
141
- return that;
142
- }
143
- });
144
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
145
- const _component_a_button = resolveComponent("a-button");
146
- const _component_online_form_detail = resolveComponent("online-form-detail");
147
- const _component_comment_panel = resolveComponent("comment-panel");
148
- const _component_BasicModal = resolveComponent("BasicModal");
149
- return openBlock(), createBlock(_component_BasicModal, mergeProps({
150
- title: _ctx.title,
151
- width: _ctx.modalWidth,
152
- height: 600,
153
- enableComment: _ctx.enableComment,
154
- defaultFullscreen: false
155
- }, _ctx.$attrs, {
156
- onRegister: _ctx.registerModal,
157
- wrapClassName: "jeecg-online-detail-modal"
158
- }), {
159
- footer: withCtx(() => [
160
- createVNode(_component_a_button, {
161
- key: "back",
162
- onClick: _ctx.handleCancel
163
- }, {
164
- default: withCtx(() => [
165
- createTextVNode("\u5173\u95ED")
166
- ]),
167
- _: 1
168
- }, 8, ["onClick"])
169
- ]),
170
- comment: withCtx(() => [
171
- createVNode(_component_comment_panel, {
172
- ref: "commentPanelRef",
173
- tableName: _ctx.tableName,
174
- dataId: _ctx.formDataId
175
- }, null, 8, ["tableName", "dataId"])
176
- ]),
177
- default: withCtx(() => [
178
- createVNode(_component_online_form_detail, {
179
- ref: "onlineFormCompRef",
180
- id: _ctx.id,
181
- "form-template": _ctx.formTemplate,
182
- "show-sub": _ctx.showSub,
183
- onRendered: _ctx.renderSuccess
184
- }, null, 8, ["id", "form-template", "show-sub", "onRendered"])
185
- ]),
186
- _: 1
187
- }, 16, ["title", "width", "enableComment", "onRegister"]);
188
- }
189
- var OnlineDetailModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
190
- export { OnlineDetailModal as default };