super-page-designer 2.1.31 → 2.1.38

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 (21) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +5 -1
  2. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +8 -18
  3. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +2 -2
  4. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -733
  5. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +733 -1
  6. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  7. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
  9. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +152 -1
  10. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +1 -152
  11. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +5 -1
  12. package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +33 -3
  13. package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +4 -0
  14. package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -3
  15. package/dist/es/components/design/views/design/page-event/config.vue.js +2 -2
  16. package/dist/es/components/design/views/design/page-event/config.vue2.js +336 -1
  17. package/dist/es/components/design/views/design/page-event/config.vue3.js +1 -336
  18. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +2 -0
  19. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  20. package/dist/es/style.css +88 -88
  21. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createCommentVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, renderSlot } from "vue";
2
- import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue2.js";
2
+ import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue.js";
3
3
  import { Codemirror } from "vue-codemirror";
4
4
  import _sfc_main$6 from "../../workflow/component/combination.vue.js";
5
5
  import _sfc_main$5 from "./return-set-table.vue.js";
@@ -8,7 +8,7 @@ import "agilebuilder-ui/src/utils/request";
8
8
  import "uuid";
9
9
  import "../../../../../../stores/page-store.js";
10
10
  import "../../../../../../stores/table-store.js";
11
- import "../../common/common-variable-bind.vue3.js";
11
+ import "../../common/common-variable-bind.vue2.js";
12
12
  import "../../../../utils/eventBus.js";
13
13
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
14
14
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createCommentVNode, withDirectives, createTextVNode, createElementBlock, Fragment, renderList, vShow, normalizeClass } from "vue";
2
- import _sfc_main$3 from "./dataorigin-input-table.vue2.js";
2
+ import _sfc_main$3 from "./dataorigin-input-table.vue.js";
3
3
  import _sfc_main$2 from "./condition.vue.js";
4
4
  import _sfc_main$1 from "./row-ul-li.vue.js";
5
5
  import "uuid";
@@ -7,7 +7,7 @@ import "@element-plus/icons-vue";
7
7
  import http from "agilebuilder-ui/src/utils/request";
8
8
  import { usePageContextStore } from "../../../../../../stores/page-store.js";
9
9
  import "../../../../../../stores/table-store.js";
10
- import "../../common/common-variable-bind.vue3.js";
10
+ import "../../common/common-variable-bind.vue2.js";
11
11
  import _sfc_main$4 from "./data-origin-service-in.vue.js";
12
12
  import { queryTableFields } from "../../../../utils/page-table-util.js";
13
13
  import { getCustomFuncs } from "../../../../utils/page-event-util.js";
@@ -1,4 +1,155 @@
1
- import _sfc_main from "./dataorigin-input-table.vue2.js";
1
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
2
+ import { Search } from "@element-plus/icons-vue";
3
+ const _hoisted_1 = { class: "dialog-footer" };
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "dataorigin-input-table",
6
+ props: {
7
+ modelValue: {
8
+ type: String,
9
+ default: ""
10
+ }
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(__props, { emit: __emit }) {
14
+ const props = __props;
15
+ const inputValue = ref(props.modelValue);
16
+ const emit = __emit;
17
+ const tableData = [
18
+ {
19
+ id: 1,
20
+ date: "2016-05-03",
21
+ name: "Tom",
22
+ address: "No. 189, Grove St, Los Angeles"
23
+ },
24
+ {
25
+ id: 2,
26
+ date: "2016-05-02",
27
+ name: "Tom",
28
+ address: "No. 189, Grove St, Los Angeles"
29
+ },
30
+ {
31
+ id: 3,
32
+ date: "2016-05-04",
33
+ name: "Tom",
34
+ address: "No. 189, Grove St, Los Angeles"
35
+ },
36
+ {
37
+ id: 4,
38
+ date: "2016-05-01",
39
+ name: "Tom",
40
+ address: "No. 189, Grove St, Los Angeles"
41
+ }
42
+ ];
43
+ const dialogVisible = ref(false);
44
+ const selectData = ref([]);
45
+ watch(() => props.modelValue, (newVal) => {
46
+ inputValue.value = newVal;
47
+ });
48
+ function confirm() {
49
+ if (selectData.value.length > 0) {
50
+ let str = "";
51
+ selectData.value.forEach((item) => {
52
+ str = str + item.name + ",";
53
+ });
54
+ str = str.substring(0, str.length - 1);
55
+ emit("update:modelValue", str);
56
+ dialogVisible.value = false;
57
+ } else {
58
+ dialogVisible.value = false;
59
+ }
60
+ }
61
+ function handleSelectionChange(selection) {
62
+ selectData.value = selection;
63
+ }
64
+ function inputClick() {
65
+ dialogVisible.value = true;
66
+ }
67
+ return (_ctx, _cache) => {
68
+ const _component_el_icon = resolveComponent("el-icon");
69
+ const _component_el_input = resolveComponent("el-input");
70
+ const _component_el_table_column = resolveComponent("el-table-column");
71
+ const _component_el_table = resolveComponent("el-table");
72
+ const _component_el_button = resolveComponent("el-button");
73
+ const _component_el_dialog = resolveComponent("el-dialog");
74
+ return openBlock(), createElementBlock(Fragment, null, [
75
+ createVNode(_component_el_input, {
76
+ modelValue: inputValue.value,
77
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
78
+ placeholder: "请选择",
79
+ onClick: inputClick
80
+ }, {
81
+ suffix: withCtx(() => [
82
+ createVNode(_component_el_icon, { onClick: inputClick }, {
83
+ default: withCtx(() => [
84
+ createVNode(unref(Search))
85
+ ]),
86
+ _: 1
87
+ })
88
+ ]),
89
+ _: 1
90
+ }, 8, ["modelValue"]),
91
+ createVNode(_component_el_dialog, {
92
+ modelValue: dialogVisible.value,
93
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
94
+ title: "Tips",
95
+ width: "500"
96
+ }, {
97
+ footer: withCtx(() => [
98
+ createElementVNode("div", _hoisted_1, [
99
+ createVNode(_component_el_button, {
100
+ onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
101
+ }, {
102
+ default: withCtx(() => [
103
+ createTextVNode("取消")
104
+ ]),
105
+ _: 1
106
+ }),
107
+ createVNode(_component_el_button, {
108
+ type: "primary",
109
+ onClick: confirm
110
+ }, {
111
+ default: withCtx(() => [
112
+ createTextVNode(" 确定 ")
113
+ ]),
114
+ _: 1
115
+ })
116
+ ])
117
+ ]),
118
+ default: withCtx(() => [
119
+ createVNode(_component_el_table, {
120
+ data: tableData,
121
+ style: { "width": "100%" },
122
+ onSelectionChange: handleSelectionChange
123
+ }, {
124
+ default: withCtx(() => [
125
+ createVNode(_component_el_table_column, {
126
+ type: "selection",
127
+ width: "55"
128
+ }),
129
+ createVNode(_component_el_table_column, {
130
+ prop: "date",
131
+ label: "Date",
132
+ width: "180"
133
+ }),
134
+ createVNode(_component_el_table_column, {
135
+ prop: "name",
136
+ label: "Name",
137
+ width: "180"
138
+ }),
139
+ createVNode(_component_el_table_column, {
140
+ prop: "address",
141
+ label: "Address"
142
+ })
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]),
147
+ _: 1
148
+ }, 8, ["modelValue"])
149
+ ], 64);
150
+ };
151
+ }
152
+ });
2
153
  export {
3
154
  _sfc_main as default
4
155
  };
@@ -1,155 +1,4 @@
1
- import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
2
- import { Search } from "@element-plus/icons-vue";
3
- const _hoisted_1 = { class: "dialog-footer" };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "dataorigin-input-table",
6
- props: {
7
- modelValue: {
8
- type: String,
9
- default: ""
10
- }
11
- },
12
- emits: ["update:modelValue"],
13
- setup(__props, { emit: __emit }) {
14
- const props = __props;
15
- const inputValue = ref(props.modelValue);
16
- const emit = __emit;
17
- const tableData = [
18
- {
19
- id: 1,
20
- date: "2016-05-03",
21
- name: "Tom",
22
- address: "No. 189, Grove St, Los Angeles"
23
- },
24
- {
25
- id: 2,
26
- date: "2016-05-02",
27
- name: "Tom",
28
- address: "No. 189, Grove St, Los Angeles"
29
- },
30
- {
31
- id: 3,
32
- date: "2016-05-04",
33
- name: "Tom",
34
- address: "No. 189, Grove St, Los Angeles"
35
- },
36
- {
37
- id: 4,
38
- date: "2016-05-01",
39
- name: "Tom",
40
- address: "No. 189, Grove St, Los Angeles"
41
- }
42
- ];
43
- const dialogVisible = ref(false);
44
- const selectData = ref([]);
45
- watch(() => props.modelValue, (newVal) => {
46
- inputValue.value = newVal;
47
- });
48
- function confirm() {
49
- if (selectData.value.length > 0) {
50
- let str = "";
51
- selectData.value.forEach((item) => {
52
- str = str + item.name + ",";
53
- });
54
- str = str.substring(0, str.length - 1);
55
- emit("update:modelValue", str);
56
- dialogVisible.value = false;
57
- } else {
58
- dialogVisible.value = false;
59
- }
60
- }
61
- function handleSelectionChange(selection) {
62
- selectData.value = selection;
63
- }
64
- function inputClick() {
65
- dialogVisible.value = true;
66
- }
67
- return (_ctx, _cache) => {
68
- const _component_el_icon = resolveComponent("el-icon");
69
- const _component_el_input = resolveComponent("el-input");
70
- const _component_el_table_column = resolveComponent("el-table-column");
71
- const _component_el_table = resolveComponent("el-table");
72
- const _component_el_button = resolveComponent("el-button");
73
- const _component_el_dialog = resolveComponent("el-dialog");
74
- return openBlock(), createElementBlock(Fragment, null, [
75
- createVNode(_component_el_input, {
76
- modelValue: inputValue.value,
77
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
78
- placeholder: "请选择",
79
- onClick: inputClick
80
- }, {
81
- suffix: withCtx(() => [
82
- createVNode(_component_el_icon, { onClick: inputClick }, {
83
- default: withCtx(() => [
84
- createVNode(unref(Search))
85
- ]),
86
- _: 1
87
- })
88
- ]),
89
- _: 1
90
- }, 8, ["modelValue"]),
91
- createVNode(_component_el_dialog, {
92
- modelValue: dialogVisible.value,
93
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
94
- title: "Tips",
95
- width: "500"
96
- }, {
97
- footer: withCtx(() => [
98
- createElementVNode("div", _hoisted_1, [
99
- createVNode(_component_el_button, {
100
- onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
101
- }, {
102
- default: withCtx(() => [
103
- createTextVNode("取消")
104
- ]),
105
- _: 1
106
- }),
107
- createVNode(_component_el_button, {
108
- type: "primary",
109
- onClick: confirm
110
- }, {
111
- default: withCtx(() => [
112
- createTextVNode(" 确定 ")
113
- ]),
114
- _: 1
115
- })
116
- ])
117
- ]),
118
- default: withCtx(() => [
119
- createVNode(_component_el_table, {
120
- data: tableData,
121
- style: { "width": "100%" },
122
- onSelectionChange: handleSelectionChange
123
- }, {
124
- default: withCtx(() => [
125
- createVNode(_component_el_table_column, {
126
- type: "selection",
127
- width: "55"
128
- }),
129
- createVNode(_component_el_table_column, {
130
- prop: "date",
131
- label: "Date",
132
- width: "180"
133
- }),
134
- createVNode(_component_el_table_column, {
135
- prop: "name",
136
- label: "Name",
137
- width: "180"
138
- }),
139
- createVNode(_component_el_table_column, {
140
- prop: "address",
141
- label: "Address"
142
- })
143
- ]),
144
- _: 1
145
- })
146
- ]),
147
- _: 1
148
- }, 8, ["modelValue"])
149
- ], 64);
150
- };
151
- }
152
- });
1
+ import _sfc_main from "./dataorigin-input-table.vue.js";
153
2
  export {
154
3
  _sfc_main as default
155
4
  };
@@ -48,6 +48,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  { label: "新页签", value: "newTab" },
49
49
  { label: "局部刷新", value: "refresh" }
50
50
  ];
51
+ const mobileWayList = [
52
+ { label: "弹窗", value: "popup" },
53
+ { label: "局部刷新", value: "refresh" }
54
+ ];
51
55
  const dialogTypeList = [
52
56
  { label: "弹框", value: "dialog" },
53
57
  { label: "抽屉", value: "drawer" }
@@ -235,7 +239,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
235
239
  placeholder: "请选择"
236
240
  }, {
237
241
  default: withCtx(() => [
238
- (openBlock(), createElementBlock(Fragment, null, renderList(wayList, (item, index) => {
242
+ (openBlock(), createElementBlock(Fragment, null, renderList(mobileWayList, (item, index) => {
239
243
  return createVNode(_component_el_option, {
240
244
  key: index,
241
245
  label: item.label,
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  default: withCtx(() => [
66
66
  createVNode(_component_el_collapse, {
67
67
  modelValue: openCollapseItems.value,
68
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => openCollapseItems.value = $event),
68
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => openCollapseItems.value = $event),
69
69
  style: { "margin-top": "6px" }
70
70
  }, {
71
71
  default: withCtx(() => [
@@ -186,6 +186,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
186
186
  ]),
187
187
  _: 1
188
188
  }),
189
+ __props.configure.props.base.tittleShow ? (openBlock(), createBlock(_component_el_form_item, {
190
+ key: 2,
191
+ label: "是否是标题",
192
+ class: "amb-design-attr-item"
193
+ }, {
194
+ default: withCtx(() => [
195
+ createVNode(_component_el_radio_group, {
196
+ modelValue: __props.configure.props.base.whetherTittle,
197
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.base.whetherTittle = $event),
198
+ class: "ml-4"
199
+ }, {
200
+ default: withCtx(() => [
201
+ createVNode(_component_el_radio, { value: true }, {
202
+ default: withCtx(() => [
203
+ createTextVNode("是")
204
+ ]),
205
+ _: 1
206
+ }),
207
+ createVNode(_component_el_radio, { value: false }, {
208
+ default: withCtx(() => [
209
+ createTextVNode("否")
210
+ ]),
211
+ _: 1
212
+ })
213
+ ]),
214
+ _: 1
215
+ }, 8, ["modelValue"])
216
+ ]),
217
+ _: 1
218
+ })) : createCommentVNode("", true),
189
219
  withDirectives(createVNode(_component_el_form_item, {
190
220
  label: "标题",
191
221
  class: "amb-design-attr-item"
@@ -193,7 +223,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
193
223
  default: withCtx(() => [
194
224
  createVNode(_sfc_main$2, {
195
225
  modelValue: __props.configure.props.base.title,
196
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.configure.props.base.title = $event)
226
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.base.title = $event)
197
227
  }, null, 8, ["modelValue"])
198
228
  ]),
199
229
  _: 1
@@ -207,7 +237,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
207
237
  default: withCtx(() => [
208
238
  createVNode(_component_el_input_number, {
209
239
  modelValue: __props.configure.props.base.titleWidth,
210
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.configure.props.base.titleWidth = $event),
240
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.base.titleWidth = $event),
211
241
  style: { "width": "100%" },
212
242
  min: 0,
213
243
  max: 200,
@@ -28,6 +28,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  if (propsBase["labelText"]) {
29
29
  tempProps["labelText"] = propsBase["labelText"];
30
30
  }
31
+ if (propsBase["whetherTittle"]) {
32
+ console.log("%c描述-170704", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", "是标题");
33
+ tempProps["whetherTittle"] = propsBase["whetherTittle"];
34
+ }
31
35
  const preSuffix = defineProps.preSuffix ? defineProps.preSuffix : {};
32
36
  if (preSuffix.preIconType || preSuffix.preText || preSuffix.sufIconType || preSuffix.sufText) {
33
37
  tempProps.preIconType = preSuffix.preIconType;
@@ -52,13 +52,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  tableData.value = props.list;
53
53
  if (tableData.value.length > 0) {
54
54
  tableData.value.forEach((item, index) => {
55
- console.log("%c描述-112048", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", item);
56
55
  if (item.type === "date") {
57
56
  tableData.value[index].isDate = true;
58
57
  } else {
59
58
  tableData.value[index].isDate = false;
60
59
  }
61
- let fieldItem = props.fieldMap[item.propName];
60
+ let fieldItem = props.fieldMap[item.propDbName];
62
61
  operationArr.value[index] = getOperators(fieldItem);
63
62
  });
64
63
  }
@@ -87,7 +86,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
86
  row.propValue = modelValue;
88
87
  }
89
88
  function changeFieldName(index, row, propDbName) {
90
- console.log("%c描述-164035", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.fieldMap);
91
89
  const item = props.fieldMap[propDbName];
92
90
  if (item.type === "date") {
93
91
  tableData.value[index].isDate = true;
@@ -1,5 +1,5 @@
1
- import _sfc_main from "./config.vue3.js";
2
- import "./config.vue2.js";
1
+ import _sfc_main from "./config.vue2.js";
2
+ import "./config.vue3.js";
3
3
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-26f79956"]]);
5
5
  export {