@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
@@ -0,0 +1,669 @@
1
+ import { computed as m, h as r } from "vue";
2
+ import { Input as d, Button as b } from "ant-design-vue";
3
+ import { FolderOpenOutlined as f } from "@ant-design/icons-vue";
4
+ import { bindMapFormSchema as p } from "/@/utils/common/compUtils";
5
+ import { usePermission as h } from "/@/hooks/web/usePermission";
6
+ import { rules as P } from "/@/utils/helper/validator";
7
+ const { isDisabledAuth: c } = h();
8
+ function I(s, t) {
9
+ const e = p(
10
+ {
11
+ // 一列
12
+ one: {
13
+ colProps: { xs: 24, sm: 24 },
14
+ itemProps: {
15
+ labelCol: { xs: 24, sm: 2 },
16
+ wrapperCol: { xs: 24, sm: 22 }
17
+ }
18
+ },
19
+ // 两列
20
+ tow: {
21
+ colProps: { xs: 24, sm: 12 },
22
+ itemProps: {
23
+ labelCol: { xs: 24, sm: 4 },
24
+ wrapperCol: { xs: 24, sm: 20 }
25
+ }
26
+ },
27
+ // 三列
28
+ three: {
29
+ colProps: { xs: 24, sm: 8 },
30
+ itemProps: {
31
+ labelCol: { xs: 24, sm: 6 },
32
+ wrapperCol: { xs: 24, sm: 18 }
33
+ }
34
+ }
35
+ },
36
+ "three"
37
+ ), n = [
38
+ { label: "", field: "id", component: "Input", show: !1 },
39
+ { label: "", field: "tableVersion", component: "Input", show: !1 },
40
+ e({
41
+ label: "表名",
42
+ field: "tableName",
43
+ component: "Input",
44
+ required: !0,
45
+ // 如果版本号为1 表示未曾修改 未曾同步 可以修改表名
46
+ dynamicDisabled: ({ model: o }) => o.tableVersion && o.tableVersion != 1,
47
+ dynamicRules: ({ model: o, schema: a }) => P.duplicateCheckRule("onl_cgform_head", "table_name", o, a, !0)
48
+ }),
49
+ e({
50
+ label: "表描述",
51
+ field: "tableTxt",
52
+ component: "Input",
53
+ required: !0
54
+ }),
55
+ e({
56
+ label: "表类型",
57
+ field: "tableType",
58
+ component: "Select",
59
+ defaultValue: 1,
60
+ componentProps: {
61
+ options: [
62
+ { label: "单表", value: 1 },
63
+ { label: "主表", value: 2 },
64
+ { label: "附表", value: 3 }
65
+ ],
66
+ onChange: t.onTableTypeChange
67
+ }
68
+ }),
69
+ // 此处为占位符,用于将 relationType 顶到最右边
70
+ {
71
+ label: "",
72
+ field: "relationType",
73
+ component: "InputNumber",
74
+ render: () => "",
75
+ colProps: { xs: 0, sm: 17 },
76
+ ifShow: l
77
+ },
78
+ e({
79
+ label: "",
80
+ field: "relationType",
81
+ component: "RadioGroup",
82
+ defaultValue: 0,
83
+ componentProps: {
84
+ options: [
85
+ { label: "一对多", value: 0 },
86
+ { label: "一对一", value: 1 }
87
+ ]
88
+ },
89
+ colProps: { xs: 24, sm: 4 },
90
+ itemProps: {
91
+ colon: !1,
92
+ labelCol: { xs: 0, sm: 0 },
93
+ wrapperCol: { xs: 24, sm: 24 }
94
+ },
95
+ ifShow: l
96
+ }),
97
+ e({
98
+ label: "序号",
99
+ field: "tabOrderNum",
100
+ component: "InputNumber",
101
+ componentProps: {
102
+ style: {
103
+ width: "100%"
104
+ }
105
+ },
106
+ colProps: { xs: 24, sm: 3 },
107
+ itemProps: {
108
+ labelCol: { xs: 24, sm: 7 },
109
+ wrapperCol: { xs: 24, sm: 24 - 7 }
110
+ },
111
+ ifShow: l
112
+ }),
113
+ e({
114
+ label: "表单分类",
115
+ field: "formCategory",
116
+ component: "JDictSelectTag",
117
+ defaultValue: "temp",
118
+ componentProps: {
119
+ dictCode: "ol_form_biz_type"
120
+ }
121
+ }),
122
+ e({
123
+ label: "主键策略",
124
+ field: "idType",
125
+ component: "Select",
126
+ defaultValue: "UUID",
127
+ componentProps: {
128
+ options: [
129
+ { label: "ID_WORKER(分布式自增)", value: "UUID" }
130
+ // { label: 'NATIVE(自增长方式)', value: 'NATIVE' },
131
+ // { label: 'SEQUENCE(序列方式)', value: 'SEQUENCE' },
132
+ ]
133
+ }
134
+ }),
135
+ e({
136
+ label: "序号名称",
137
+ field: "idSequence",
138
+ component: "Input",
139
+ componentProps: {},
140
+ ifShow: l
141
+ }),
142
+ e({
143
+ label: "显示复选框",
144
+ field: "isCheckbox",
145
+ component: "Select",
146
+ defaultValue: "Y",
147
+ componentProps: {
148
+ options: [
149
+ { label: "是", value: "Y" },
150
+ { label: "否", value: "N" }
151
+ ]
152
+ }
153
+ }),
154
+ e({
155
+ label: "主题模板",
156
+ field: "themeTemplate",
157
+ component: "Select",
158
+ defaultValue: "normal",
159
+ componentProps: {
160
+ options: [
161
+ { label: "默认主题", value: "normal" },
162
+ { label: "ERP主题(一对多)", value: "erp" }
163
+ // { label: '内嵌子表主题(一对多)', value: 'innerTable' },
164
+ // { label: 'TAB主题(一对多)', value: 'tab' },
165
+ ]
166
+ },
167
+ // 单表时禁用该字段
168
+ dynamicDisabled: ({ model: o }) => o.tableType === 1
169
+ }),
170
+ e({
171
+ label: "表单风格",
172
+ field: "formTemplate",
173
+ component: "Select",
174
+ defaultValue: "1",
175
+ componentProps: {
176
+ options: [
177
+ { label: "一列", value: "1" },
178
+ { label: "两列", value: "2" },
179
+ { label: "三列", value: "3" },
180
+ { label: "四列", value: "4" }
181
+ ],
182
+ placeholder: "请选择PC表单风格"
183
+ }
184
+ }),
185
+ e({
186
+ label: "移动表单风格",
187
+ field: "formTemplateMobile",
188
+ component: "Select",
189
+ defaultValue: "1",
190
+ componentProps: {
191
+ options: [
192
+ { label: "AntDesign模板", value: "1" },
193
+ { label: "Bootstrap模板", value: "2" }
194
+ ],
195
+ placeholder: "请选择移动表单风格"
196
+ },
197
+ // 暂时先隐藏
198
+ ifShow: !1
199
+ }),
200
+ e({
201
+ label: "滚动条",
202
+ field: "scroll",
203
+ component: "Select",
204
+ defaultValue: 1,
205
+ componentProps: {
206
+ options: [
207
+ { label: "有", value: 1 },
208
+ { label: "无", value: 0 }
209
+ ]
210
+ }
211
+ }),
212
+ e({
213
+ label: "是否分页",
214
+ field: "isPage",
215
+ component: "Select",
216
+ defaultValue: "Y",
217
+ componentProps: {
218
+ options: [
219
+ { label: "是", value: "Y" },
220
+ { label: "否", value: "N" }
221
+ ]
222
+ }
223
+ }),
224
+ e({
225
+ label: "是否树",
226
+ field: "isTree",
227
+ component: "Select",
228
+ defaultValue: "N",
229
+ componentProps: {
230
+ options: [
231
+ { label: "是", value: "Y" },
232
+ { label: "否", value: "N" }
233
+ ],
234
+ onChange: t.onIsTreeChange
235
+ },
236
+ dynamicRules({ model: o }) {
237
+ return [
238
+ {
239
+ validator({}, a) {
240
+ return a === "Y" && (o.tableType == 2 || o.tableType == 3) ? Promise.reject("主表和附表不支持树类型!") : Promise.resolve();
241
+ }
242
+ }
243
+ ];
244
+ }
245
+ }),
246
+ e({
247
+ // 空格不要删,否则布局会乱
248
+ label: " ",
249
+ // 扩展配置
250
+ field: "extConfigJson",
251
+ component: "Input",
252
+ slot: "extConfigButton",
253
+ itemProps: { colon: !1 }
254
+ }),
255
+ e({
256
+ label: "树表单父ID",
257
+ field: "treeParentIdField",
258
+ component: "Input",
259
+ ifShow: l
260
+ }),
261
+ e({
262
+ label: "是否有子节点字段",
263
+ field: "treeIdField",
264
+ component: "Input",
265
+ show: !1
266
+ }),
267
+ e({
268
+ label: "树开表单列",
269
+ field: "treeFieldname",
270
+ required: !0,
271
+ component: "Input",
272
+ ifShow: l
273
+ }),
274
+ e(
275
+ {
276
+ label: "附表",
277
+ field: "subTableStr",
278
+ component: "Input",
279
+ componentProps: {
280
+ disabled: !0,
281
+ placeholder: " ",
282
+ allowClear: !1
283
+ },
284
+ ifShow: t.ifShowOfSubTableStr
285
+ },
286
+ "one"
287
+ )
288
+ ];
289
+ function l({ field: o, model: a }) {
290
+ switch (o) {
291
+ case "relationType":
292
+ case "tabOrderNum":
293
+ return a.tableType === 3;
294
+ case "treeParentIdField":
295
+ case "treeIdField":
296
+ case "treeFieldname":
297
+ return a.isTree === "Y";
298
+ case "idSequence":
299
+ return a.idType === "SEQUENCE";
300
+ }
301
+ return !0;
302
+ }
303
+ return { formSchemas: n };
304
+ }
305
+ function g(s, t) {
306
+ const e = p(
307
+ {
308
+ left: {
309
+ colProps: { xs: 24, sm: 7 },
310
+ itemProps: {
311
+ labelCol: { xs: 24, sm: 11 },
312
+ wrapperCol: { xs: 24, sm: 13 }
313
+ },
314
+ style: { width: "100%" }
315
+ },
316
+ right: {
317
+ colProps: { xs: 24, sm: 17 },
318
+ itemProps: {
319
+ labelCol: { xs: 24, sm: 3 },
320
+ wrapperCol: { xs: 24, sm: 20 }
321
+ },
322
+ style: { width: "100%" }
323
+ }
324
+ },
325
+ "left"
326
+ );
327
+ return { formSchemas: [
328
+ // 弹窗
329
+ e(
330
+ {
331
+ label: "弹窗默认全屏",
332
+ field: "modelFullscreen",
333
+ component: "RadioButtonGroup",
334
+ componentProps: {
335
+ options: [
336
+ { label: "开启", value: 1 },
337
+ { label: "关闭", value: 0 }
338
+ ],
339
+ buttonStyle: "solid"
340
+ }
341
+ },
342
+ "left"
343
+ ),
344
+ e(
345
+ {
346
+ label: "弹窗宽度",
347
+ field: "modalMinWidth",
348
+ component: "InputNumber",
349
+ componentProps: {
350
+ style: "width: 80%",
351
+ placeholder: "弹窗最小宽度(单位:px)"
352
+ }
353
+ },
354
+ "right"
355
+ ),
356
+ //----------------------------表单评论 begin-----------------------------------------
357
+ e(
358
+ {
359
+ label: "开启表单评论",
360
+ field: "commentStatus",
361
+ component: "RadioButtonGroup",
362
+ componentProps: {
363
+ options: [
364
+ { label: "开启", value: 1 },
365
+ { label: "关闭", value: 0 }
366
+ ],
367
+ buttonStyle: "solid"
368
+ }
369
+ },
370
+ "left"
371
+ ),
372
+ // 此处为占位符
373
+ e(
374
+ {
375
+ label: "",
376
+ field: "commentStatus",
377
+ component: "InputNumber",
378
+ render: () => ""
379
+ },
380
+ "right"
381
+ ),
382
+ // 启用联合查询
383
+ e(
384
+ {
385
+ label: "启用联合查询",
386
+ field: "joinQuery",
387
+ component: "RadioButtonGroup",
388
+ componentProps: {
389
+ options: [
390
+ { label: "开启", value: 1 },
391
+ { label: "关闭", value: 0 }
392
+ ],
393
+ buttonStyle: "solid",
394
+ onChange: t.onJoinQueryChange
395
+ }
396
+ },
397
+ "left"
398
+ ),
399
+ // 此处为占位符
400
+ e(
401
+ {
402
+ label: "",
403
+ field: "joinQuery",
404
+ component: "InputNumber",
405
+ render: () => ""
406
+ },
407
+ "right"
408
+ ),
409
+ // 积木报表打印
410
+ e(
411
+ {
412
+ label: "集成积木报表",
413
+ field: "reportPrintShow",
414
+ component: "RadioButtonGroup",
415
+ componentProps: {
416
+ options: [
417
+ { label: "开启", value: 1 },
418
+ { label: "关闭", value: 0 }
419
+ ],
420
+ buttonStyle: "solid",
421
+ onChange: t.onReportPrintShowChange
422
+ }
423
+ },
424
+ "left"
425
+ ),
426
+ e(
427
+ {
428
+ label: "报表地址",
429
+ field: "reportPrintUrl",
430
+ component: "Input",
431
+ componentProps: {
432
+ style: "width: 80%"
433
+ },
434
+ dynamicDisabled: ({ model: l }) => !l.reportPrintShow,
435
+ dynamicRules: ({ model: l }) => [
436
+ { required: !!l.reportPrintShow, message: "请输入报表地址!" },
437
+ {
438
+ validator({}, o) {
439
+ return /\/jmreport\/view\/{积木报表ID}/.test(o) ? Promise.reject("请将{积木报表ID}替换为真实的积木报表ID!") : Promise.resolve();
440
+ }
441
+ }
442
+ ]
443
+ },
444
+ "right"
445
+ ),
446
+ e(
447
+ {
448
+ label: "集成设计表单",
449
+ field: "isDesForm",
450
+ component: "RadioButtonGroup",
451
+ componentProps: {
452
+ options: [
453
+ { label: "开启", value: "Y" },
454
+ { label: "关闭", value: "N" }
455
+ ],
456
+ buttonStyle: "solid",
457
+ onChange: t.onIsDesformChange
458
+ }
459
+ },
460
+ "left"
461
+ ),
462
+ e(
463
+ {
464
+ label: "表单编码",
465
+ field: "desFormCode",
466
+ component: "Input",
467
+ componentProps: {
468
+ style: "width: 80%"
469
+ },
470
+ dynamicDisabled: ({ model: l }) => l.isDesForm !== "Y",
471
+ dynamicRules: ({ model: l }) => [{ required: l.isDesForm === "Y", message: "请输入表单编码!" }]
472
+ },
473
+ "right"
474
+ ),
475
+ // 列表操作列
476
+ e(
477
+ {
478
+ label: "固定操作列",
479
+ field: "tableFixedAction",
480
+ component: "RadioButtonGroup",
481
+ componentProps: {
482
+ options: [
483
+ { label: "开启", value: 1 },
484
+ { label: "关闭", value: 0 }
485
+ ],
486
+ buttonStyle: "solid"
487
+ },
488
+ defaultValue: 1
489
+ },
490
+ "left"
491
+ ),
492
+ e(
493
+ {
494
+ label: "固定方式",
495
+ field: "tableFixedActionType",
496
+ component: "Select",
497
+ componentProps: {
498
+ options: [
499
+ { label: "固定到右侧", value: "right" },
500
+ { label: "固定到左侧", value: "left" }
501
+ ],
502
+ style: "width: 80%"
503
+ },
504
+ defaultValue: "right",
505
+ dynamicDisabled: ({ model: l }) => !l.tableFixedAction,
506
+ dynamicRules: ({ model: l }) => [{ required: !!l.tableFixedAction, message: "请选择固定方式!" }]
507
+ },
508
+ "right"
509
+ )
510
+ //--------------------------表单评论 end-----------------------------------------
511
+ ] };
512
+ }
513
+ function T(s, t, e) {
514
+ const n = p(
515
+ {
516
+ // 一列
517
+ one: {
518
+ colProps: { xs: 24, sm: 24 },
519
+ itemProps: {
520
+ labelCol: { xs: 24, sm: 5 },
521
+ wrapperCol: { xs: 24, sm: 16 }
522
+ }
523
+ },
524
+ // 两列中的一列
525
+ towOne: {
526
+ colProps: { xs: 24, sm: 24 },
527
+ itemProps: {
528
+ labelCol: { xs: 24, sm: 3 },
529
+ wrapperCol: { xs: 24, sm: 20 }
530
+ }
531
+ },
532
+ // 两列
533
+ tow: {
534
+ colProps: { xs: 24, sm: 12 },
535
+ itemProps: {
536
+ labelCol: { xs: 24, sm: 6 },
537
+ wrapperCol: { xs: 24, sm: 16 }
538
+ }
539
+ }
540
+ },
541
+ "one"
542
+ ), l = m(() => e.value ? "one" : "tow");
543
+ return { formSchemas: m(() => [
544
+ n(
545
+ {
546
+ label: "代码生成目录",
547
+ field: "projectPath",
548
+ render: ({ model: a, field: i }) => r(
549
+ d.Search,
550
+ {
551
+ value: a[i],
552
+ onChange: (u) => {
553
+ a[i] = u.target.value, t.onProjectPathChange(u);
554
+ },
555
+ onSearch: t.onProjectPathSearch,
556
+ disabled: c("online:codeGenerate:projectPath")
557
+ },
558
+ {
559
+ enterButton: () => r(
560
+ b,
561
+ {
562
+ preIcon: "ant-design:folder-open",
563
+ disabled: c("online:codeGenerate:projectPath")
564
+ },
565
+ {
566
+ default: () => "浏览",
567
+ icon: () => r(f)
568
+ }
569
+ )
570
+ }
571
+ ),
572
+ component: "InputSearch",
573
+ required: !0
574
+ // 如果版本号为1 表示未曾修改 未曾同步 可以修改表名
575
+ },
576
+ e.value ? "one" : "towOne"
577
+ ),
578
+ n(
579
+ {
580
+ label: "页面风格",
581
+ field: "jspMode",
582
+ component: "Select",
583
+ componentProps: {
584
+ options: t.jspModeOptions.value
585
+ }
586
+ },
587
+ l.value
588
+ ),
589
+ n(
590
+ {
591
+ label: "功能说明",
592
+ field: "ftlDescription",
593
+ component: "Input"
594
+ },
595
+ l.value
596
+ ),
597
+ { label: "数据模型", field: "jformType", component: "Input", show: !1 },
598
+ n(
599
+ {
600
+ label: "表名",
601
+ field: "tableName_tmp",
602
+ required: !0,
603
+ dynamicDisabled: !0,
604
+ component: "Input"
605
+ },
606
+ l.value
607
+ ),
608
+ n(
609
+ {
610
+ label: "实体类名",
611
+ field: "entityName",
612
+ required: !0,
613
+ component: "Input",
614
+ componentProps: {
615
+ placeholder: "请输入实体类名(首字母大写)"
616
+ }
617
+ },
618
+ l.value
619
+ ),
620
+ n(
621
+ {
622
+ label: "包名(小写)",
623
+ field: "entityPackage",
624
+ required: !0,
625
+ component: "Input"
626
+ },
627
+ l.value
628
+ ),
629
+ n(
630
+ {
631
+ label: "代码分层样式",
632
+ field: "packageStyle",
633
+ component: "Select",
634
+ componentProps: {
635
+ disabled: !0,
636
+ options: [
637
+ { label: "业务分层", value: "service" },
638
+ { label: "代码分层", value: "project" }
639
+ ]
640
+ }
641
+ },
642
+ l.value
643
+ ),
644
+ n(
645
+ {
646
+ label: "页面代码",
647
+ field: "vueStyle",
648
+ required: !0,
649
+ component: "RadioGroup",
650
+ defaultValue: "vue3",
651
+ componentProps: {
652
+ // options: handlers.jspModeOptions.value,
653
+ options: [
654
+ { label: "Vue3原生(a-form)", value: "vue3Native" },
655
+ { label: "Vue3(BasicForm)", value: "vue3" },
656
+ { label: "Vue2", value: "vue" }
657
+ ]
658
+ }
659
+ },
660
+ l.value
661
+ ),
662
+ { label: "需要生成的代码", field: "codeTypes", component: "Input", show: !1 }
663
+ ]) };
664
+ }
665
+ export {
666
+ g as a,
667
+ T as b,
668
+ I as u
669
+ };