super-page-designer 2.0.9 → 2.0.17
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.
- package/dist/es/components/design/utils/assemblys-config.js +85 -55
- package/dist/es/components/design/utils/chart-design-util.js +203 -160
- package/dist/es/components/design/utils/form-design-util.d.ts +5 -4
- package/dist/es/components/design/utils/form-design-util.js +55 -153
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +0 -1
- package/dist/es/components/design/utils/page-design-util.d.ts +2 -1
- package/dist/es/components/design/utils/page-design-util.js +8 -2
- package/dist/es/components/design/utils/page-service-util.d.ts +15 -0
- package/dist/es/components/design/utils/page-service-util.js +5 -0
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +19 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-event.vue.js +6 -3
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js +6 -3
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +7 -3
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-style.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +68 -3
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +94 -16
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-serieslist.vue.js +12 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-sortby.vue.js +30 -13
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset-columnline.vue.js +21 -3
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dynamic.vue.js +12 -66
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-base.vue.js +20 -12
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +318 -0
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-style.vue.js +5 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +34 -15
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr-base.vue.js +4 -19
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr-style.vue.js +5 -2
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr-base.vue.js +18 -5
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr-style.vue.js +5 -2
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +34 -16
- package/dist/es/components/design/views/assemblys/chart/pie/series/pie-series-attr-base.vue.js +4 -22
- package/dist/es/components/design/views/assemblys/chart/pie/series/pie-series-attr-style.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-base.vue.js +23 -9
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +318 -0
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-style.vue.js +25 -12
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +37 -13
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-base.vue.js +4 -17
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-dataset.vue.js +82 -256
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-style.vue.js +12 -17
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-base.vue.js +23 -13
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +205 -0
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-style.vue.js +5 -7
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +35 -12
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-attr-base.vue.js +6 -77
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-attr-style.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-data.vue.js +191 -0
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-data.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-event.vue.js +30 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +186 -0
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +28 -4
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +11 -169
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue2.js +3 -12
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +33 -10
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue2.js +10 -1
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +15 -3
- package/dist/es/components/design/views/assemblys/object-design.vue.js +52 -77
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +2 -2
- package/dist/es/components/design/views/design/page-design.vue.d.ts +13 -1
- package/dist/es/components/design/views/design/page-design.vue.js +218 -100
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +19 -9
- package/dist/es/components/design/views/design/view/page-switch.vue.d.ts +18 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.js +7 -0
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +185 -0
- package/dist/es/components/design/views/design/view/page-switch.vue3.js +1 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +7 -9
- package/dist/es/style.css +350 -133
- package/package.json +7 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-drill.vue.js +0 -108
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-drill.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset.vue.js +0 -166
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr-dataset.vue.js +0 -153
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr-dataset.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/chart/radar/series/attrs/attr-testdatas.vue.js +0 -58
- package/dist/es/components/design/views/assemblys/chart/radar/series/attrs/attr-testdatas.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/form/common/linkpage-params-in.vue.js +0 -154
- package/dist/es/components/design/views/assemblys/form/common/linkpage-params-in.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/form/common/title.vue.js +0 -45
- package/dist/es/components/design/views/assemblys/form/common/title.vue2.js +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import _sfc_main$
|
|
4
|
-
import
|
|
3
|
+
import _sfc_main$2 from "../../common/common-attr-size.vue.js";
|
|
4
|
+
import "../common/dimension-input.vue.js";
|
|
5
5
|
import "@element-plus/icons-vue";
|
|
6
|
-
import
|
|
6
|
+
import "uuid";
|
|
7
|
+
import _sfc_main$1 from "../common/parameter-table.vue.js";
|
|
7
8
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
9
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
9
|
-
const _hoisted_3 = { style: { "
|
|
10
|
-
const _hoisted_4 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
|
+
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
__name: "custom-attr-base",
|
|
13
13
|
props: {
|
|
@@ -15,64 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
default: () => ({ props: {} })
|
|
16
16
|
},
|
|
17
17
|
setup(__props) {
|
|
18
|
-
const props = __props;
|
|
19
18
|
const openCollapseItems = ref([]);
|
|
20
|
-
if (!props.configure.props.parameter || props.configure.props.parameter.length == 0) {
|
|
21
|
-
props.configure.props.parameter.push({
|
|
22
|
-
uuid: getUuidv4(),
|
|
23
|
-
value: "",
|
|
24
|
-
name: ""
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function moveTop(rowItem) {
|
|
28
|
-
let sortIndex = queryIndex(rowItem);
|
|
29
|
-
if (sortIndex < 1) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
const items = props.configure.props.parameter;
|
|
33
|
-
[items[sortIndex - 1], items[sortIndex]] = [items[sortIndex], items[sortIndex - 1]];
|
|
34
|
-
}
|
|
35
|
-
function queryIndex(rowItem) {
|
|
36
|
-
let sortIndex = -1;
|
|
37
|
-
const itemLen = props.configure.props.parameter.length;
|
|
38
|
-
for (let index = 0; index < itemLen; index++) {
|
|
39
|
-
if (props.configure.props.parameter[index].uuid == rowItem.uuid) {
|
|
40
|
-
sortIndex = index;
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return sortIndex;
|
|
45
|
-
}
|
|
46
|
-
function moveToBottom(rowItem) {
|
|
47
|
-
let sortIndex = queryIndex(rowItem);
|
|
48
|
-
if (sortIndex == -1 || props.configure.props.parameter.length == sortIndex + 1) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
const items = props.configure.props.parameter;
|
|
52
|
-
[items[sortIndex], items[sortIndex + 1]] = [items[sortIndex + 1], items[sortIndex]];
|
|
53
|
-
}
|
|
54
|
-
function addData(rowItem) {
|
|
55
|
-
let sortIndex = -1;
|
|
56
|
-
if (rowItem) {
|
|
57
|
-
sortIndex = queryIndex(rowItem);
|
|
58
|
-
}
|
|
59
|
-
props.configure.props.parameter.splice(sortIndex + 1, 0, {
|
|
60
|
-
uuid: getUuidv4(),
|
|
61
|
-
value: "",
|
|
62
|
-
label: ""
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function deleteData(rowItem) {
|
|
66
|
-
if (props.configure.props.parameter.length == 1) {
|
|
67
|
-
rowItem.value = "";
|
|
68
|
-
rowItem.name = "";
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
let delIdnex = queryIndex(rowItem);
|
|
72
|
-
if (delIdnex > -1) {
|
|
73
|
-
props.configure.props.parameter.splice(delIdnex, 1);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
19
|
return (_ctx, _cache) => {
|
|
77
20
|
const _component_el_option = resolveComponent("el-option");
|
|
78
21
|
const _component_el_select = resolveComponent("el-select");
|
|
@@ -81,13 +24,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
24
|
const _component_el_radio = resolveComponent("el-radio");
|
|
82
25
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
83
26
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
84
|
-
const _component_Top = resolveComponent("Top");
|
|
85
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
86
|
-
const _component_Bottom = resolveComponent("Bottom");
|
|
87
|
-
const _component_el_table_column = resolveComponent("el-table-column");
|
|
88
|
-
const _component_Plus = resolveComponent("Plus");
|
|
89
|
-
const _component_Delete = resolveComponent("Delete");
|
|
90
|
-
const _component_el_table = resolveComponent("el-table");
|
|
91
27
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
92
28
|
const _component_el_col = resolveComponent("el-col");
|
|
93
29
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -262,100 +198,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
262
198
|
}, {
|
|
263
199
|
default: withCtx(() => [
|
|
264
200
|
createElementVNode("div", _hoisted_2, [
|
|
265
|
-
createVNode(
|
|
266
|
-
data: __props.configure.props.parameter
|
|
267
|
-
|
|
268
|
-
}, {
|
|
269
|
-
default: withCtx(() => [
|
|
270
|
-
createVNode(_component_el_table_column, {
|
|
271
|
-
label: "",
|
|
272
|
-
width: "32"
|
|
273
|
-
}, {
|
|
274
|
-
default: withCtx((scope) => [
|
|
275
|
-
createElementVNode("div", _hoisted_3, [
|
|
276
|
-
createVNode(_component_el_icon, {
|
|
277
|
-
size: "14",
|
|
278
|
-
style: { "cursor": "pointer" },
|
|
279
|
-
onClick: ($event) => moveTop(scope.row)
|
|
280
|
-
}, {
|
|
281
|
-
default: withCtx(() => [
|
|
282
|
-
createVNode(_component_Top)
|
|
283
|
-
]),
|
|
284
|
-
_: 2
|
|
285
|
-
}, 1032, ["onClick"]),
|
|
286
|
-
createVNode(_component_el_icon, {
|
|
287
|
-
size: "14",
|
|
288
|
-
style: { "margin-left": "2px", "cursor": "pointer" },
|
|
289
|
-
onClick: ($event) => moveToBottom(scope.row)
|
|
290
|
-
}, {
|
|
291
|
-
default: withCtx(() => [
|
|
292
|
-
createVNode(_component_Bottom)
|
|
293
|
-
]),
|
|
294
|
-
_: 2
|
|
295
|
-
}, 1032, ["onClick"])
|
|
296
|
-
])
|
|
297
|
-
]),
|
|
298
|
-
_: 1
|
|
299
|
-
}),
|
|
300
|
-
createVNode(_component_el_table_column, {
|
|
301
|
-
prop: "name",
|
|
302
|
-
label: "参数名称",
|
|
303
|
-
width: "90"
|
|
304
|
-
}, {
|
|
305
|
-
default: withCtx((scope) => [
|
|
306
|
-
createVNode(_component_el_input, {
|
|
307
|
-
modelValue: scope.row.name,
|
|
308
|
-
"onUpdate:modelValue": ($event) => scope.row.name = $event,
|
|
309
|
-
size: "small"
|
|
310
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
311
|
-
]),
|
|
312
|
-
_: 1
|
|
313
|
-
}),
|
|
314
|
-
createVNode(_component_el_table_column, {
|
|
315
|
-
prop: "value",
|
|
316
|
-
label: "参数值",
|
|
317
|
-
width: "90"
|
|
318
|
-
}, {
|
|
319
|
-
default: withCtx((scope) => [
|
|
320
|
-
createVNode(_component_el_input, {
|
|
321
|
-
modelValue: scope.row.value,
|
|
322
|
-
"onUpdate:modelValue": ($event) => scope.row.value = $event,
|
|
323
|
-
size: "small"
|
|
324
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
325
|
-
]),
|
|
326
|
-
_: 1
|
|
327
|
-
}),
|
|
328
|
-
createVNode(_component_el_table_column, {
|
|
329
|
-
label: "操作",
|
|
330
|
-
width: "60"
|
|
331
|
-
}, {
|
|
332
|
-
default: withCtx((scope) => [
|
|
333
|
-
createVNode(_component_el_icon, {
|
|
334
|
-
size: "14",
|
|
335
|
-
style: { "color": "#5893EF", "cursor": "pointer", "font-weight": "bold", "margin-right": "8px" },
|
|
336
|
-
onClick: ($event) => addData(scope.row)
|
|
337
|
-
}, {
|
|
338
|
-
default: withCtx(() => [
|
|
339
|
-
createVNode(_component_Plus)
|
|
340
|
-
]),
|
|
341
|
-
_: 2
|
|
342
|
-
}, 1032, ["onClick"]),
|
|
343
|
-
createVNode(_component_el_icon, {
|
|
344
|
-
size: "14",
|
|
345
|
-
style: { "color": "#5893EF", "cursor": "pointer" },
|
|
346
|
-
onClick: ($event) => deleteData(scope.row)
|
|
347
|
-
}, {
|
|
348
|
-
default: withCtx(() => [
|
|
349
|
-
createVNode(_component_Delete)
|
|
350
|
-
]),
|
|
351
|
-
_: 2
|
|
352
|
-
}, 1032, ["onClick"])
|
|
353
|
-
]),
|
|
354
|
-
_: 1
|
|
355
|
-
})
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
}, 8, ["data"])
|
|
201
|
+
createVNode(_sfc_main$1, {
|
|
202
|
+
data: __props.configure.props.parameter
|
|
203
|
+
}, null, 8, ["data"])
|
|
359
204
|
])
|
|
360
205
|
]),
|
|
361
206
|
_: 1
|
|
@@ -366,7 +211,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
366
211
|
class: "amb-design-attr-group-header"
|
|
367
212
|
}, {
|
|
368
213
|
default: withCtx(() => [
|
|
369
|
-
createElementVNode("div",
|
|
214
|
+
createElementVNode("div", _hoisted_3, [
|
|
370
215
|
createVNode(_component_el_form_item, {
|
|
371
216
|
class: "amb-design-attr-item",
|
|
372
217
|
"label-width": "0"
|
|
@@ -416,12 +261,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
416
261
|
]),
|
|
417
262
|
_: 1
|
|
418
263
|
}),
|
|
419
|
-
createVNode(_sfc_main$1, {
|
|
420
|
-
size: __props.configure.props.size
|
|
421
|
-
}, null, 8, ["size"]),
|
|
422
264
|
createVNode(_sfc_main$2, {
|
|
423
|
-
|
|
424
|
-
}, null, 8, ["
|
|
265
|
+
size: __props.configure.props.size
|
|
266
|
+
}, null, 8, ["size"])
|
|
425
267
|
]),
|
|
426
268
|
_: 1
|
|
427
269
|
}, 8, ["modelValue"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./custom-design.vue2.js";
|
|
2
2
|
import "./custom-design.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const customDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const customDesign = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d87986ba"]]);
|
|
5
5
|
export {
|
|
6
6
|
customDesign as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, withCtx, toDisplayString, createCommentVNode,
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, withCtx, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
|
+
const _hoisted_1 = { style: { "color": "#999", "text-align": "center" } };
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "custom-design",
|
|
6
7
|
props: {
|
|
@@ -19,7 +20,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
20
|
caculateComponentProps(props.configure, designProperty);
|
|
20
21
|
}, { immediate: true });
|
|
21
22
|
return (_ctx, _cache) => {
|
|
22
|
-
const _component_el_button = resolveComponent("el-button");
|
|
23
23
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
24
24
|
return openBlock(), createElementBlock("div", {
|
|
25
25
|
class: normalizeClass(designClass.value),
|
|
@@ -38,16 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
}, toDisplayString(designProperty.value.title ? designProperty.value.title : "custom"), 5)) : createCommentVNode("", true)
|
|
39
39
|
]),
|
|
40
40
|
default: withCtx(() => [
|
|
41
|
-
|
|
42
|
-
disabled: designProperty.value.state === "disabled" ? true : false,
|
|
43
|
-
size: designProperty.value.size,
|
|
44
|
-
type: "primary"
|
|
45
|
-
}, {
|
|
46
|
-
default: withCtx(() => [
|
|
47
|
-
createTextVNode(" 自定义组件 ")
|
|
48
|
-
]),
|
|
49
|
-
_: 1
|
|
50
|
-
}, 8, ["disabled", "size"])
|
|
41
|
+
createElementVNode("div", _hoisted_1, "自定义组件[" + toDisplayString(__props.configure.props && __props.configure.props.base ? __props.configure.props.base.name : "") + "]", 1)
|
|
51
42
|
]),
|
|
52
43
|
_: 1
|
|
53
44
|
}, 8, ["required", "class", "label-width", "style"])
|
package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, withDirectives, vShow, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import _sfc_main$
|
|
4
|
-
import _sfc_main$
|
|
3
|
+
import _sfc_main$4 from "../common/verification.vue.js";
|
|
4
|
+
import _sfc_main$5 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../common/pre-suffix.vue.js";
|
|
6
|
-
import _sfc_main$
|
|
6
|
+
import _sfc_main$6 from "../common/bar-code-rule.vue.js";
|
|
7
7
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
8
8
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
9
|
+
import _sfc_main$3 from "../common/suffixmodule.vue.js";
|
|
9
10
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
11
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
12
|
+
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
14
|
__name: "inputtext-attr-base",
|
|
13
15
|
props: {
|
|
14
16
|
configure: {
|
|
15
17
|
type: Object,
|
|
16
|
-
required: true
|
|
18
|
+
required: true,
|
|
19
|
+
default: () => {
|
|
20
|
+
}
|
|
17
21
|
},
|
|
18
|
-
|
|
22
|
+
pageDesign: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: () => {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
19
27
|
},
|
|
20
28
|
setup(__props) {
|
|
21
29
|
const props = __props;
|
|
@@ -396,15 +404,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
396
404
|
createVNode(_sfc_main$2, {
|
|
397
405
|
preSuffix: __props.configure.props.preSuffix
|
|
398
406
|
}, null, 8, ["preSuffix"]),
|
|
399
|
-
withDirectives(createVNode(
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
407
|
+
withDirectives(createVNode(_component_el_collapse_item, {
|
|
408
|
+
title: "后缀图标跳转配置",
|
|
409
|
+
name: "linkPage",
|
|
410
|
+
class: "amb-design-attr-group-header"
|
|
411
|
+
}, {
|
|
412
|
+
default: withCtx(() => [
|
|
413
|
+
createElementVNode("div", _hoisted_3, [
|
|
414
|
+
createVNode(_sfc_main$3, {
|
|
415
|
+
configure: __props.configure,
|
|
416
|
+
pageDesign: __props.pageDesign
|
|
417
|
+
}, null, 8, ["configure", "pageDesign"])
|
|
418
|
+
])
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
}, 512), [
|
|
422
|
+
[vShow, __props.configure.props.preSuffix.sufIconType]
|
|
403
423
|
]),
|
|
404
424
|
createVNode(_sfc_main$4, {
|
|
425
|
+
verification: __props.configure.props.verification
|
|
426
|
+
}, null, 8, ["verification"]),
|
|
427
|
+
createVNode(_sfc_main$5, {
|
|
405
428
|
size: __props.configure.props.size
|
|
406
429
|
}, null, 8, ["size"]),
|
|
407
|
-
BarCodeRuleOff.value ? (openBlock(), createBlock(_sfc_main$
|
|
430
|
+
BarCodeRuleOff.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
408
431
|
key: 0,
|
|
409
432
|
ruleList: __props.configure.props.scan.ruleList,
|
|
410
433
|
onRemove: barCodeRuleRemove,
|
|
@@ -13,6 +13,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
type: Object,
|
|
14
14
|
default: () => ({ title: "Text", props: { type: "input-text" } })
|
|
15
15
|
// 设置默认值
|
|
16
|
+
},
|
|
17
|
+
// 页面设计对象
|
|
18
|
+
pageDesign: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => {
|
|
21
|
+
}
|
|
16
22
|
}
|
|
17
23
|
},
|
|
18
24
|
setup(__props) {
|
|
@@ -24,7 +30,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
30
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(currentConfigType) ? currentConfigType.value = $event : currentConfigType = $event)
|
|
25
31
|
}, null, 8, ["modelValue"]),
|
|
26
32
|
createElementVNode("div", _hoisted_2, [
|
|
27
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
33
|
+
withDirectives(createVNode(_sfc_main$1, {
|
|
34
|
+
pageDesign: __props.pageDesign,
|
|
35
|
+
configure: __props.configure
|
|
36
|
+
}, null, 8, ["pageDesign", "configure"]), [
|
|
28
37
|
[vShow, unref(currentConfigType) === "base"]
|
|
29
38
|
]),
|
|
30
39
|
withDirectives(createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]), [
|
|
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
default: withCtx(() => [
|
|
48
48
|
createVNode(_component_el_collapse, {
|
|
49
49
|
modelValue: openCollapseItems.value,
|
|
50
|
-
"onUpdate:modelValue": _cache[
|
|
50
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => openCollapseItems.value = $event),
|
|
51
51
|
style: { "margin-top": "6px" }
|
|
52
52
|
}, {
|
|
53
53
|
default: withCtx(() => [
|
|
@@ -306,6 +306,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
308
308
|
}),
|
|
309
|
+
createVNode(_component_el_form_item, {
|
|
310
|
+
label: "链接提示",
|
|
311
|
+
class: "amb-design-attr-item"
|
|
312
|
+
}, {
|
|
313
|
+
default: withCtx(() => [
|
|
314
|
+
createVNode(_component_el_input, {
|
|
315
|
+
modelValue: _ctx.configure.props.base.linkTips,
|
|
316
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => _ctx.configure.props.base.linkTips = $event)
|
|
317
|
+
}, null, 8, ["modelValue"])
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}),
|
|
309
321
|
createVNode(_component_el_form_item, {
|
|
310
322
|
label: "显示判断",
|
|
311
323
|
class: "amb-design-attr-item"
|
|
@@ -325,7 +337,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
325
337
|
default: withCtx(() => [
|
|
326
338
|
createVNode(_component_el_radio_group, {
|
|
327
339
|
modelValue: _ctx.configure.props.base.state,
|
|
328
|
-
"onUpdate:modelValue": _cache[
|
|
340
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => _ctx.configure.props.base.state = $event),
|
|
329
341
|
class: "ml-4"
|
|
330
342
|
}, {
|
|
331
343
|
default: withCtx(() => [
|
|
@@ -352,7 +364,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
352
364
|
_: 1
|
|
353
365
|
}),
|
|
354
366
|
createVNode(_component_el_collapse_item, {
|
|
355
|
-
title: "
|
|
367
|
+
title: "跳转配置",
|
|
356
368
|
name: "linkPage",
|
|
357
369
|
class: "amb-design-attr-group-header"
|
|
358
370
|
}, {
|
|
@@ -5,7 +5,7 @@ import { getDesignComponentByName } from "../../utils/assemblys-config.js";
|
|
|
5
5
|
import { caculateCommonStyle } from "../../utils/container-design-util.js";
|
|
6
6
|
import { PageDimensions } from "../../utils/interfaces/page-design-types.js";
|
|
7
7
|
import { batchUpdatePermissions, batchRemovePermissions } from "../../utils/page-permission-util.js";
|
|
8
|
-
import {
|
|
8
|
+
import { watchValidate } from "../../utils/form-design-util.js";
|
|
9
9
|
import { usePageContextStore } from "../../../../stores/page-store.js";
|
|
10
10
|
const _hoisted_1 = { class: "amb-widget-item-tool" };
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -65,6 +65,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
props.configure.events,
|
|
66
66
|
(newVal) => {
|
|
67
67
|
batchUpdatePermissions(props.configure, props.pageDesign);
|
|
68
|
+
const bindEvents = props.configure.events.filter((event) => event.eventName);
|
|
69
|
+
console.log("bindEvents=========", bindEvents);
|
|
70
|
+
if (!props.configure.runtime) {
|
|
71
|
+
props.configure.runtime = {};
|
|
72
|
+
}
|
|
73
|
+
props.configure.runtime.events = bindEvents;
|
|
68
74
|
},
|
|
69
75
|
{ immediate: true }
|
|
70
76
|
);
|
|
@@ -72,6 +78,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
78
|
batchRemovePermissions(props.pageDesign, props.configure.uuid);
|
|
73
79
|
});
|
|
74
80
|
}
|
|
81
|
+
if (props.configure.events && props.pageDesign) {
|
|
82
|
+
watch(
|
|
83
|
+
props.configure.props.linkPage,
|
|
84
|
+
(newVal) => {
|
|
85
|
+
if (!props.configure.runtime) {
|
|
86
|
+
props.configure.runtime = {};
|
|
87
|
+
}
|
|
88
|
+
props.configure.runtime.linkPage = props.configure.props.linkPage;
|
|
89
|
+
},
|
|
90
|
+
{ immediate: true }
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
if (props.configure.props.parameter && props.pageDesign) {
|
|
94
|
+
watch(
|
|
95
|
+
props.configure.props.parameter,
|
|
96
|
+
(newVal) => {
|
|
97
|
+
let customParams = {};
|
|
98
|
+
newVal.forEach((item) => {
|
|
99
|
+
if (item.name && item.value) {
|
|
100
|
+
customParams[item.name] = item.value;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
if (!props.configure.runtime) {
|
|
104
|
+
props.configure.runtime = {};
|
|
105
|
+
}
|
|
106
|
+
props.configure.runtime.customParams = customParams;
|
|
107
|
+
},
|
|
108
|
+
{ immediate: true }
|
|
109
|
+
);
|
|
110
|
+
}
|
|
75
111
|
props.configure.componentIndex = props.indexObj.index;
|
|
76
112
|
let thisComponentIndex = props.indexObj.index;
|
|
77
113
|
const $emits = __emit;
|
|
@@ -90,84 +126,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
126
|
}
|
|
91
127
|
);
|
|
92
128
|
if (props.configure.props && props.configure.props.verification) {
|
|
93
|
-
|
|
94
|
-
(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
);
|
|
99
|
-
watch(
|
|
100
|
-
() => props.configure.props.verification.type,
|
|
101
|
-
(newValue, oldValue) => {
|
|
102
|
-
let ruleType;
|
|
103
|
-
if (newValue) {
|
|
104
|
-
ruleType = newValue.join(",");
|
|
129
|
+
if (props.configure.props.base) {
|
|
130
|
+
watch(
|
|
131
|
+
() => props.configure.props.base.title,
|
|
132
|
+
(newVal) => {
|
|
133
|
+
watchValidate(props.configure, props.configure.props.verification, fieldInfo);
|
|
105
134
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
);
|
|
115
|
-
watch(
|
|
116
|
-
() => props.configure.props.verification.regex,
|
|
117
|
-
(newValue, oldValue) => {
|
|
118
|
-
watchPatternValidate(props.pageDesign, props.configure, newValue, fieldInfo);
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
watch(
|
|
122
|
-
() => props.configure.props.verification.verifyMaxLength,
|
|
123
|
-
(newValue, oldValue) => {
|
|
124
|
-
watchMaxOrMinValidate(
|
|
125
|
-
props.pageDesign,
|
|
126
|
-
props.configure,
|
|
127
|
-
"max",
|
|
128
|
-
newValue,
|
|
129
|
-
props.configure.props.verification.maxLength,
|
|
130
|
-
fieldInfo
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
|
-
watch(
|
|
135
|
-
() => props.configure.props.verification.maxLength,
|
|
136
|
-
(newValue, oldValue) => {
|
|
137
|
-
watchMaxOrMinValidate(
|
|
138
|
-
props.pageDesign,
|
|
139
|
-
props.configure,
|
|
140
|
-
"max",
|
|
141
|
-
props.configure.props.verification.verifyMaxLength,
|
|
142
|
-
newValue,
|
|
143
|
-
fieldInfo
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
watch(
|
|
148
|
-
() => props.configure.props.verification.verifyMinLength,
|
|
149
|
-
(newValue, oldValue) => {
|
|
150
|
-
watchMaxOrMinValidate(
|
|
151
|
-
props.pageDesign,
|
|
152
|
-
props.configure,
|
|
153
|
-
"min",
|
|
154
|
-
newValue,
|
|
155
|
-
props.configure.props.verification.minLength,
|
|
156
|
-
fieldInfo
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
);
|
|
135
|
+
);
|
|
136
|
+
watch(
|
|
137
|
+
() => props.configure.props.base.prop,
|
|
138
|
+
(newVal) => {
|
|
139
|
+
watchValidate(props.configure, props.configure.props.verification, fieldInfo);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
160
143
|
watch(
|
|
161
|
-
|
|
144
|
+
props.configure.props.verification,
|
|
162
145
|
(newValue, oldValue) => {
|
|
163
|
-
|
|
164
|
-
props.pageDesign,
|
|
165
|
-
props.configure,
|
|
166
|
-
"min",
|
|
167
|
-
props.configure.props.verification.verifyMinLength,
|
|
168
|
-
newValue,
|
|
169
|
-
fieldInfo
|
|
170
|
-
);
|
|
146
|
+
watchValidate(props.configure, newValue, fieldInfo);
|
|
171
147
|
}
|
|
172
148
|
);
|
|
173
149
|
}
|
|
@@ -272,7 +248,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
272
248
|
}
|
|
273
249
|
function deleteObj(evt) {
|
|
274
250
|
evt.preventDefault();
|
|
275
|
-
deleteRule(props.pageDesign, props.configure);
|
|
276
251
|
$emits("onDelete", props.configure);
|
|
277
252
|
}
|
|
278
253
|
return (_ctx, _cache) => {
|
|
@@ -10,8 +10,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
10
10
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
11
|
close: (...args: any[]) => void;
|
|
12
12
|
open: (...args: any[]) => void;
|
|
13
|
-
opend: (...args: any[]) => void;
|
|
14
13
|
closed: (...args: any[]) => void;
|
|
14
|
+
opend: (...args: any[]) => void;
|
|
15
15
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
16
|
code: {
|
|
17
17
|
type: StringConstructor;
|
|
@@ -24,8 +24,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
24
24
|
}>> & {
|
|
25
25
|
onClose?: (...args: any[]) => any;
|
|
26
26
|
onOpen?: (...args: any[]) => any;
|
|
27
|
-
onOpend?: (...args: any[]) => any;
|
|
28
27
|
onClosed?: (...args: any[]) => any;
|
|
28
|
+
onOpend?: (...args: any[]) => any;
|
|
29
29
|
}, {
|
|
30
30
|
code: string;
|
|
31
31
|
rowId: number;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
pageId: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
pageId: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
pageId: number;
|
|
13
|
+
}, {}>;
|
|
2
14
|
export default _default;
|