@jeecg/online 3.4.3-beta → 3.4.4-RC

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 (46) hide show
  1. package/AuthFieldConfig.js +1 -1
  2. package/CgformCopyList.js +3 -1
  3. package/CgformModal.js +19 -2
  4. package/CgreportModal.js +1 -0
  5. package/CheckDictTable.js +1 -1
  6. package/DetailForm.js +14 -10
  7. package/EnhanceJsHistory.js +1 -1
  8. package/EnhanceJsModal.js +7 -0
  9. package/ExtendConfigModal.js +1 -1
  10. package/FieldExtendJsonModal.js +270 -0
  11. package/FormSchemaFactory.js +150 -10
  12. package/LinkTableConfigModal.js +1 -1
  13. package/OnlineAutoList.js +3 -3
  14. package/OnlineAutoModal.js +7 -3
  15. package/OnlineAutoTreeList.js +3 -3
  16. package/OnlineDetailModal.js +1 -1
  17. package/OnlineForm.js +64 -41
  18. package/OnlineFormDetail.js +1 -1
  19. package/OnlineQueryForm.js +8 -4
  20. package/OnlineSearchFormItem.js +3 -3
  21. package/OnlineSelectCascade.js +27 -30
  22. package/PageAttributeTable.js +68 -27
  23. package/README.md +6 -1
  24. package/{OnlineSuperQuery.js → SuperQuery.js} +215 -127
  25. package/SuperQueryValComponent.js +8 -0
  26. package/{OnlineSuperQueryValComponent.vue_vue_type_script_lang.js → SuperQueryValComponent.vue_vue_type_script_lang.js} +15 -3
  27. package/_arrayPush.js +1 -1
  28. package/_baseClone.js +1 -1
  29. package/_flatRest.js +1 -1
  30. package/cgform.data.js +8 -8
  31. package/clipboard.js +565 -0
  32. package/index.js +16 -5
  33. package/index2.js +3 -1
  34. package/index3.js +33 -571
  35. package/isArray.js +1 -1
  36. package/main.index.js +2 -2
  37. package/omit.js +1 -1
  38. package/package.json +1 -1
  39. package/pick.js +1 -1
  40. package/style.css +1 -1
  41. package/toString.js +1 -1
  42. package/useAutoForm.js +84 -48
  43. package/useCgformList.js +97 -5
  44. package/useListButton.js +8 -4
  45. package/useSchemas.js +18 -4
  46. package/OnlineSuperQueryValComponent.js +0 -9
@@ -18,7 +18,7 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createTextVNode, createVNode, withCtx, renderList, createBlock, createElementVNode, toDisplayString } from "vue";
21
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString } from "vue";
22
22
  import { defHttp } from "/@/utils/http/axios";
23
23
  import { useMessage } from "/@/hooks/web/useMessage";
24
24
  import { _ as _export_sfc } from "./index.js";
@@ -38,7 +38,7 @@ const _sfc_main = defineComponent({
38
38
  condition: { type: String, default: "" },
39
39
  value: { type: String, default: "" },
40
40
  isNumber: { type: Boolean, default: false },
41
- placeholder: { type: String, default: "\u8BF7\u9009\u62E91" }
41
+ placeholder: { type: String, default: "\u8BF7\u9009\u62E9" }
42
42
  },
43
43
  emits: ["change", "next"],
44
44
  setup(props, { emit }) {
@@ -198,34 +198,31 @@ const _hoisted_1 = ["title"];
198
198
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
199
199
  const _component_a_select_option = resolveComponent("a-select-option");
200
200
  const _component_a_select = resolveComponent("a-select");
201
- return openBlock(), createElementBlock(Fragment, null, [
202
- createTextVNode(" 111 "),
203
- createVNode(_component_a_select, {
204
- placeholder: _ctx.placeholder,
205
- value: _ctx.selectedValue,
206
- onChange: _ctx.handleChange,
207
- allowClear: "",
208
- style: { "width": "100%" }
209
- }, {
210
- default: withCtx(() => [
211
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dictOptions, (item, index) => {
212
- return openBlock(), createBlock(_component_a_select_option, {
213
- key: index,
214
- value: item.store
215
- }, {
216
- default: withCtx(() => [
217
- createElementVNode("span", {
218
- style: { "display": "inline-block", "width": "100%" },
219
- title: item.label
220
- }, toDisplayString(item.label), 9, _hoisted_1)
221
- ]),
222
- _: 2
223
- }, 1032, ["value"]);
224
- }), 128))
225
- ]),
226
- _: 1
227
- }, 8, ["placeholder", "value", "onChange"])
228
- ], 64);
201
+ return openBlock(), createBlock(_component_a_select, {
202
+ placeholder: _ctx.placeholder,
203
+ value: _ctx.selectedValue,
204
+ onChange: _ctx.handleChange,
205
+ allowClear: "",
206
+ style: { "width": "100%" }
207
+ }, {
208
+ default: withCtx(() => [
209
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dictOptions, (item, index) => {
210
+ return openBlock(), createBlock(_component_a_select_option, {
211
+ key: index,
212
+ value: item.store
213
+ }, {
214
+ default: withCtx(() => [
215
+ createElementVNode("span", {
216
+ style: { "display": "inline-block", "width": "100%" },
217
+ title: item.label
218
+ }, toDisplayString(item.label), 9, _hoisted_1)
219
+ ]),
220
+ _: 2
221
+ }, 1032, ["value"]);
222
+ }), 128))
223
+ ]),
224
+ _: 1
225
+ }, 8, ["placeholder", "value", "onChange"]);
229
226
  }
230
227
  var OnlineSelectCascade = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
231
228
  export { OnlineSelectCascade as default };
@@ -22,6 +22,7 @@ import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
22
22
  import { u as useTableSync } from "./useTableSync.js";
23
23
  import LinkTableConfigModal from "./LinkTableConfigModal.js";
24
24
  import LinkTableFieldConfigModal from "./LinkTableFieldConfigModal.js";
25
+ import FieldExtendJsonModal from "./FieldExtendJsonModal.js";
25
26
  import { useModal } from "/@/components/Modal";
26
27
  import { _ as _export_sfc } from "./index.js";
27
28
  import "./cgform.data.js";
@@ -49,25 +50,25 @@ const commonPageOptions = [
49
50
  { title: "\u5355\u9009\u6846", value: "radio" },
50
51
  { title: "\u591A\u9009\u6846", value: "checkbox" },
51
52
  { title: "\u5F00\u5173", value: "switch" },
52
- { title: "\u65E5\u671F(yyyy-MM-dd)", value: "date" },
53
- { title: "\u65E5\u671F\uFF08yyyy-MM-dd HH:mm:ss\uFF09", value: "datetime" },
54
- { title: "\u65F6\u95F4\uFF08HH:mm:ss\uFF09", value: "time" },
53
+ { title: "\u65E5\u671F(\u5E74\u6708\u65E5)", value: "date" },
54
+ { title: "\u65E5\u671F(\u5E74\u6708\u65E5\u65F6\u5206\u79D2)", value: "datetime" },
55
+ { title: "\u65F6\u95F4(HH:mm:ss)", value: "time" },
55
56
  { title: "\u6587\u4EF6", value: "file" },
56
57
  { title: "\u56FE\u7247", value: "image" },
57
58
  { title: "\u591A\u884C\u6587\u672C", value: "textarea" },
58
- { title: "\u4E0B\u62C9\u591A\u9009\u6846", value: "list_multi" },
59
- { title: "\u4E0B\u62C9\u641C\u7D22\u6846", value: "sel_search" },
60
- { title: "Popup\u5F39\u6846", value: "popup" },
61
- { title: "\u5173\u8054\u8BB0\u5F55", value: "link_table" },
62
- { title: "\u4ED6\u8868\u5B57\u6BB5", value: "link_table_field" },
63
- { title: "\u5206\u7C7B\u5B57\u5178\u6811", value: "cat_tree" },
64
- { title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
65
- { title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
66
59
  { title: "\u5BCC\u6587\u672C", value: "umeditor" },
67
60
  { title: "MarkDown", value: "markdown" },
61
+ { title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
62
+ { title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
63
+ { title: "\u5173\u8054\u8BB0\u5F55", value: "link_table" },
64
+ { title: "\u4ED6\u8868\u5B57\u6BB5", value: "link_table_field" },
68
65
  { title: "\u7701\u5E02\u533A\u7EC4\u4EF6", value: "pca" },
69
- { title: "\u8054\u52A8\u7EC4\u4EF6", value: "link_down" },
70
- { title: "\u81EA\u5B9A\u4E49\u6811\u63A7\u4EF6", value: "sel_tree" }
66
+ { title: "Popup\u5F39\u6846", value: "popup" },
67
+ { title: "\u4E0B\u62C9\u591A\u9009\u6846", value: "list_multi" },
68
+ { title: "\u4E0B\u62C9\u641C\u7D22\u6846", value: "sel_search" },
69
+ { title: "\u5206\u7C7B\u5B57\u5178\u6811", value: "cat_tree" },
70
+ { title: "\u81EA\u5B9A\u4E49\u6811\u63A7\u4EF6", value: "sel_tree" },
71
+ { title: "\u8054\u52A8\u7EC4\u4EF6", value: "link_down" }
71
72
  ];
72
73
  const subTablePageOptions = [
73
74
  { title: "\u6587\u672C\u6846", value: "text" },
@@ -84,13 +85,15 @@ const subTablePageOptions = [
84
85
  { title: "popup\u5F39\u51FA\u6846", value: "popup" },
85
86
  { title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
86
87
  { title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
88
+ { title: "\u7701\u5E02\u533A\u7EC4\u4EF6", value: "pca" },
87
89
  { title: "\u591A\u884C\u6587\u672C", value: "textarea" }
88
90
  ];
89
91
  const _sfc_main = defineComponent({
90
92
  name: "PageAttributeTable",
91
93
  components: {
92
94
  LinkTableConfigModal,
93
- LinkTableFieldConfigModal
95
+ LinkTableFieldConfigModal,
96
+ FieldExtendJsonModal
94
97
  },
95
98
  setup() {
96
99
  const columns = ref([
@@ -146,8 +149,9 @@ const _sfc_main = defineComponent({
146
149
  title: "\u63A7\u4EF6\u957F\u5EA6",
147
150
  key: "fieldLength",
148
151
  width: 120,
152
+ titleHelp: { message: "\u6B64\u957F\u5EA6\u53EA\u5BF9\u5B50\u8868\u5217\u5B57\u6BB5\u5BBD\u5EA6\u6709\u6548\uFF01" },
149
153
  type: JVxeTypes.inputNumber,
150
- defaultValue: 120,
154
+ defaultValue: 200,
151
155
  placeholder: "\u8BF7\u8F93\u5165${title}",
152
156
  validateRules: [{ required: true, message: "${title}\u4E0D\u80FD\u4E3A\u7A7A" }]
153
157
  },
@@ -181,21 +185,21 @@ const _sfc_main = defineComponent({
181
185
  defaultValue: ""
182
186
  },
183
187
  {
184
- title: "\u6269\u5C55\u53C2\u6570",
185
- key: "fieldExtendJson",
186
- width: 120,
188
+ title: "\u5B9A\u4E49\u8F6C\u6362\u5668",
189
+ key: "converter",
190
+ width: 150,
187
191
  type: JVxeTypes.input,
188
192
  defaultValue: ""
189
193
  },
190
194
  {
191
- title: "\u5B9A\u4E49\u8F6C\u6362\u5668",
192
- key: "converter",
193
- width: 150,
195
+ title: "\u6269\u5C55\u53C2\u6570",
196
+ key: "fieldExtendJson",
197
+ width: 120,
194
198
  type: JVxeTypes.input,
195
199
  defaultValue: ""
196
200
  },
197
201
  {
198
- title: "\u4E2A\u6027\u914D\u7F6E",
202
+ title: "\u66F4\u591A\u914D\u7F6E",
199
203
  minWidth: 100,
200
204
  key: "fieldConfig",
201
205
  type: JVxeTypes.slot,
@@ -247,11 +251,19 @@ const _sfc_main = defineComponent({
247
251
  }
248
252
  const [registerModal, { openModal }] = useModal();
249
253
  const [registerFieldModal, { openModal: openFieldModal }] = useModal();
254
+ const [registerExtJsonModal, { openModal: openExtJsonModal }] = useModal();
250
255
  function showConfigButton(props) {
251
- if (props.row.fieldShowType.indexOf("link_table") >= 0) {
256
+ if (props.row.dbFieldName == "id") {
257
+ return false;
258
+ } else {
252
259
  return true;
260
+ }
261
+ }
262
+ function openConfig(props) {
263
+ if (props.row.fieldShowType.indexOf("link_table") >= 0) {
264
+ showFieldConfig(props);
253
265
  } else {
254
- return false;
266
+ showExtJsonConfig(props);
255
267
  }
256
268
  }
257
269
  function showFieldConfig(props) {
@@ -384,6 +396,27 @@ const _sfc_main = defineComponent({
384
396
  checkTable.value.tableRef.setValues(tableValues);
385
397
  }
386
398
  }
399
+ function showExtJsonConfig(props) {
400
+ let jsonStr = props.row.fieldExtendJson || "";
401
+ let id = props.rowId;
402
+ let fieldShowType = props.row.fieldShowType || "";
403
+ let sortFlag = props.row.sortFlag || "0";
404
+ openExtJsonModal(true, {
405
+ jsonStr,
406
+ fieldShowType,
407
+ sortFlag,
408
+ id
409
+ });
410
+ }
411
+ function handleExtJson(data, rowKey) {
412
+ let values;
413
+ if (data && Object.keys(data).length > 0) {
414
+ values = [{ rowKey, values: { fieldExtendJson: JSON.stringify(data) } }];
415
+ } else {
416
+ values = [{ rowKey, values: { fieldExtendJson: "" } }];
417
+ }
418
+ tableRef.value.setValues(values);
419
+ }
387
420
  return __spreadProps(__spreadValues({}, setup), {
388
421
  columns,
389
422
  enableQuery,
@@ -391,6 +424,9 @@ const _sfc_main = defineComponent({
391
424
  changePageType,
392
425
  showConfigButton,
393
426
  showFieldConfig,
427
+ registerExtJsonModal,
428
+ handleExtJson,
429
+ openConfig,
394
430
  registerModal,
395
431
  handleConfigData,
396
432
  registerFieldModal,
@@ -403,6 +439,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
403
439
  const _component_JVxeTable = resolveComponent("JVxeTable");
404
440
  const _component_link_table_config_modal = resolveComponent("link-table-config-modal");
405
441
  const _component_link_table_field_config_modal = resolveComponent("link-table-field-config-modal");
442
+ const _component_FieldExtendJsonModal = resolveComponent("FieldExtendJsonModal");
406
443
  return openBlock(), createElementBlock(Fragment, null, [
407
444
  createVNode(_component_JVxeTable, mergeProps({
408
445
  ref: "tableRef",
@@ -421,10 +458,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
421
458
  type: "primary",
422
459
  size: "small",
423
460
  ghost: "",
424
- onClick: ($event) => _ctx.showFieldConfig(props)
461
+ onClick: ($event) => _ctx.openConfig(props)
425
462
  }, {
426
463
  default: withCtx(() => [
427
- createTextVNode("\u6253\u5F00\u914D\u7F6E")
464
+ createTextVNode("\u9AD8\u7EA7\u914D\u7F6E")
428
465
  ]),
429
466
  _: 2
430
467
  }, 1032, ["onClick"])) : createCommentVNode("", true)
@@ -438,8 +475,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
438
475
  createVNode(_component_link_table_field_config_modal, {
439
476
  onRegister: _ctx.registerFieldModal,
440
477
  onSuccess: _ctx.handleFieldConfigData
478
+ }, null, 8, ["onRegister", "onSuccess"]),
479
+ createVNode(_component_FieldExtendJsonModal, {
480
+ onRegister: _ctx.registerExtJsonModal,
481
+ onSuccess: _ctx.handleExtJson
441
482
  }, null, 8, ["onRegister", "onSuccess"])
442
483
  ], 64);
443
484
  }
444
- var PageAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-eb3d4aa4"]]);
485
+ var PageAttributeTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-58928976"]]);
445
486
  export { PageAttributeTable as default };
package/README.md CHANGED
@@ -15,4 +15,9 @@ yarn add @jeecg/online
15
15
  JeecgBoot 在线低代码功能
16
16
  1、在线表单开发
17
17
  2、在线报表开发
18
- ```
18
+ 3、在线代码生成
19
+ ```
20
+
21
+ ## 官网
22
+
23
+ - http://www.jeecg.com