super-page-designer 2.1.41 → 2.1.47
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 +45 -13
- package/dist/es/components/design/utils/form-design-util.js +1 -0
- package/dist/es/components/design/utils/page-design-util.d.ts +1 -1
- package/dist/es/components/design/utils/page-design-util.js +3 -2
- package/dist/es/components/design/utils/page-table-util.js +4 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -7
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +93 -78
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +13 -9
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +5 -6
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -738
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +738 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +6 -0
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +10 -0
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +6 -0
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +6 -0
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +6 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +10 -0
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +7 -4
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +50 -35
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +4 -2
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +8 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/verification.vue.js +4 -3
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +8 -29
- 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 +16 -7
- package/dist/es/components/design/views/assemblys/object-design.vue.js +34 -1
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.d.ts +6 -0
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +95 -0
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +61 -22
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -1
- package/dist/es/style.css +129 -129
- package/package.json +4 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +0 -542
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue3.js +0 -1
|
@@ -1,155 +1,4 @@
|
|
|
1
|
-
import
|
|
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.vue2.js";
|
|
153
2
|
export {
|
|
154
3
|
_sfc_main as default
|
|
155
4
|
};
|
package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js
CHANGED
|
@@ -1,4 +1,155 @@
|
|
|
1
|
-
import
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, withDirectives, vShow } from "vue";
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createCommentVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import "@element-plus/icons-vue";
|
|
3
3
|
import _sfc_main$1 from "./verification-custom.vue.js";
|
|
4
4
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -32,7 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
}, {
|
|
33
33
|
default: withCtx(() => [
|
|
34
34
|
createElementVNode("div", _hoisted_1, [
|
|
35
|
-
|
|
35
|
+
!__props.pageDesign.props.activeWorkflow ? (openBlock(), createBlock(_component_el_form_item, {
|
|
36
|
+
key: 0,
|
|
36
37
|
class: "amb-design-attr-item",
|
|
37
38
|
"label-width": "0"
|
|
38
39
|
}, {
|
|
@@ -44,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
45
|
}, null, 8, ["modelValue"])
|
|
45
46
|
]),
|
|
46
47
|
_: 1
|
|
47
|
-
}),
|
|
48
|
+
})) : createCommentVNode("", true),
|
|
48
49
|
createVNode(_component_el_checkbox_group, {
|
|
49
50
|
modelValue: __props.verification.type,
|
|
50
51
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.verification.type = $event),
|
|
@@ -1,11 +1,12 @@
|
|
|
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
|
|
4
|
-
import _sfc_main$
|
|
3
|
+
import "@element-plus/icons-vue";
|
|
4
|
+
import _sfc_main$4 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import "../common/dimension-input.vue.js";
|
|
6
6
|
import "uuid";
|
|
7
7
|
import _sfc_main$1 from "../../common/common-i18n-key-input.vue.js";
|
|
8
8
|
import _sfc_main$2 from "../common/parameter-table.vue.js";
|
|
9
|
+
import _sfc_main$3 from "../common/verification-custom.vue.js";
|
|
9
10
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
11
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
12
|
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -34,8 +35,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
35
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
35
36
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
36
37
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
37
|
-
const _component_el_col = resolveComponent("el-col");
|
|
38
|
-
const _component_el_button = resolveComponent("el-button");
|
|
39
38
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
40
39
|
const _component_el_form = resolveComponent("el-form");
|
|
41
40
|
return openBlock(), createBlock(_component_el_form, {
|
|
@@ -238,30 +237,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
238
237
|
"label-width": "0"
|
|
239
238
|
}, {
|
|
240
239
|
default: withCtx(() => [
|
|
241
|
-
createVNode(
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
value: "custom"
|
|
246
|
-
})
|
|
247
|
-
]),
|
|
248
|
-
_: 1
|
|
249
|
-
}),
|
|
250
|
-
createVNode(_component_el_col, { span: 14 }, {
|
|
251
|
-
default: withCtx(() => [
|
|
252
|
-
createVNode(_component_el_button, null, {
|
|
253
|
-
default: withCtx(() => [
|
|
254
|
-
createTextVNode("自定义逻辑")
|
|
255
|
-
]),
|
|
256
|
-
_: 1
|
|
257
|
-
}),
|
|
258
|
-
createVNode(_component_el_button, {
|
|
259
|
-
icon: unref(Search),
|
|
260
|
-
circle: ""
|
|
261
|
-
}, null, 8, ["icon"])
|
|
262
|
-
]),
|
|
263
|
-
_: 1
|
|
264
|
-
})
|
|
240
|
+
createVNode(_sfc_main$3, {
|
|
241
|
+
pageDesign: __props.pageDesign,
|
|
242
|
+
verification: __props.configure.props.verification
|
|
243
|
+
}, null, 8, ["pageDesign", "verification"])
|
|
265
244
|
]),
|
|
266
245
|
_: 1
|
|
267
246
|
})
|
|
@@ -269,7 +248,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
269
248
|
]),
|
|
270
249
|
_: 1
|
|
271
250
|
}),
|
|
272
|
-
createVNode(_sfc_main$
|
|
251
|
+
createVNode(_sfc_main$4, {
|
|
273
252
|
size: __props.configure.props.size
|
|
274
253
|
}, null, 8, ["size"])
|
|
275
254
|
]),
|
|
@@ -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-bab42532"]]);
|
|
5
5
|
export {
|
|
6
6
|
customDesign as default
|
|
7
7
|
};
|
|
@@ -13,12 +13,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
const designClass = ref("");
|
|
14
14
|
const designHeaderStyle = ref({});
|
|
15
15
|
const designProperty = ref({});
|
|
16
|
-
watch(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
watch(
|
|
17
|
+
props.configure.style,
|
|
18
|
+
() => {
|
|
19
|
+
caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
20
|
+
},
|
|
21
|
+
{ immediate: true }
|
|
22
|
+
);
|
|
23
|
+
watch(
|
|
24
|
+
props.configure.props,
|
|
25
|
+
() => {
|
|
26
|
+
caculateComponentProps(props.configure, designProperty);
|
|
27
|
+
props.configure.runtime.props = designProperty.value;
|
|
28
|
+
},
|
|
29
|
+
{ immediate: true }
|
|
30
|
+
);
|
|
22
31
|
return (_ctx, _cache) => {
|
|
23
32
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
24
33
|
return openBlock(), createElementBlock("div", {
|
|
@@ -38,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
47
|
}, toDisplayString(designProperty.value.title ? designProperty.value.title : "custom"), 5)) : createCommentVNode("", true)
|
|
39
48
|
]),
|
|
40
49
|
default: withCtx(() => [
|
|
41
|
-
createElementVNode("div", _hoisted_1, "自定义组件[" + toDisplayString(__props.configure.props && __props.configure.props.base ? __props.configure.props.base.name : "") + "]", 1)
|
|
50
|
+
createElementVNode("div", _hoisted_1, " 自定义组件[" + toDisplayString(__props.configure.props && __props.configure.props.base ? __props.configure.props.base.name : "") + "] ", 1)
|
|
42
51
|
]),
|
|
43
52
|
_: 1
|
|
44
53
|
}, 8, ["required", "class", "label-width", "style"])
|
|
@@ -54,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
if (!((_b = (_a = props.pageDesign) == null ? void 0 : _a.tableUuids) == null ? void 0 : _b.includes(props.configure.uuid))) {
|
|
55
55
|
(_d = (_c = props.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(props.configure.uuid);
|
|
56
56
|
}
|
|
57
|
-
if ((_e = props.pageDesign) == null ? void 0 : _e.listCodesMap) {
|
|
57
|
+
if (((_e = props.pageDesign) == null ? void 0 : _e.listCodesMap) && props.configure.code) {
|
|
58
58
|
const listCode = getListCode(props.pageDesign.code, props.pageDesign.version, props.configure.uuid);
|
|
59
59
|
props.pageDesign.listCodesMap[listCode] = props.configure.code;
|
|
60
60
|
}
|
|
@@ -74,6 +74,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
+
watch(
|
|
78
|
+
() => props.configure.code,
|
|
79
|
+
(newVal) => {
|
|
80
|
+
if (!props.pageDesign.listCodesMap) {
|
|
81
|
+
props.pageDesign.listCodesMap = {};
|
|
82
|
+
}
|
|
83
|
+
const listCode = getListCode(props.pageDesign.code, props.pageDesign.version, props.configure.uuid);
|
|
84
|
+
if (listCode) {
|
|
85
|
+
if (newVal) {
|
|
86
|
+
props.pageDesign.listCodesMap[listCode] = props.configure.code;
|
|
87
|
+
} else {
|
|
88
|
+
if (props.pageDesign.listCodesMap && props.pageDesign.listCodesMap[listCode]) {
|
|
89
|
+
delete props.pageDesign.listCodesMap[listCode];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
);
|
|
77
95
|
}
|
|
78
96
|
if (props.configure.events && props.pageDesign) {
|
|
79
97
|
watch(
|
|
@@ -178,6 +196,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
178
196
|
watchValidate(props.configure, newValue, fieldInfo);
|
|
179
197
|
});
|
|
180
198
|
}
|
|
199
|
+
if (props.pageDesign.props) {
|
|
200
|
+
watch(() => props.pageDesign.props.activeWorkflow, (newValue, oldValue) => {
|
|
201
|
+
if (newValue) {
|
|
202
|
+
const requiredRules = props.configure.props && props.configure.props.rules ? props.configure.props.rules.filter((item) => item.required) : null;
|
|
203
|
+
if (requiredRules && requiredRules.length > 0) {
|
|
204
|
+
requiredRules.forEach((item) => {
|
|
205
|
+
item.required = false;
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
if (props.configure.props && props.configure.props.verification && props.configure.props.verification.required) {
|
|
209
|
+
props.configure.props.verification.required = false;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
181
214
|
const thisRef = ref(null);
|
|
182
215
|
const designStyle = ref({});
|
|
183
216
|
const designClass = ref("");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
close: (...args: any[]) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
4
|
+
onClose?: (...args: any[]) => any;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = { style: { "padding-bottom": "8px" } };
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "create-workflow-dialog",
|
|
5
|
+
emits: ["close"],
|
|
6
|
+
setup(__props, { emit: __emit }) {
|
|
7
|
+
const formData = ref({});
|
|
8
|
+
const emits = __emit;
|
|
9
|
+
const wfInfoRef = ref(null);
|
|
10
|
+
function closeDialog() {
|
|
11
|
+
emits("close");
|
|
12
|
+
}
|
|
13
|
+
function clickOk() {
|
|
14
|
+
wfInfoRef.value.validate((valid) => {
|
|
15
|
+
if (valid) {
|
|
16
|
+
emits("close", formData.value);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
const _component_el_button = resolveComponent("el-button");
|
|
22
|
+
const _component_el_input = resolveComponent("el-input");
|
|
23
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
24
|
+
const _component_el_form = resolveComponent("el-form");
|
|
25
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
26
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
27
|
+
"model-value": "",
|
|
28
|
+
title: "新建流程",
|
|
29
|
+
onClose: closeDialog
|
|
30
|
+
}, {
|
|
31
|
+
default: withCtx(() => [
|
|
32
|
+
createElementVNode("div", _hoisted_1, [
|
|
33
|
+
createVNode(_component_el_button, { onClick: clickOk }, {
|
|
34
|
+
default: withCtx(() => [
|
|
35
|
+
createTextVNode("确定 ")
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
})
|
|
39
|
+
]),
|
|
40
|
+
createVNode(_component_el_form, {
|
|
41
|
+
ref_key: "wfInfoRef",
|
|
42
|
+
ref: wfInfoRef,
|
|
43
|
+
model: formData.value
|
|
44
|
+
}, {
|
|
45
|
+
default: withCtx(() => [
|
|
46
|
+
createVNode(_component_el_form_item, {
|
|
47
|
+
label: "流程编码",
|
|
48
|
+
prop: "code",
|
|
49
|
+
rules: [
|
|
50
|
+
{
|
|
51
|
+
required: true,
|
|
52
|
+
message: "此项不能为空",
|
|
53
|
+
trigger: "blur"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [
|
|
58
|
+
createVNode(_component_el_input, {
|
|
59
|
+
modelValue: formData.value.code,
|
|
60
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value.code = $event)
|
|
61
|
+
}, null, 8, ["modelValue"])
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}),
|
|
65
|
+
createVNode(_component_el_form_item, {
|
|
66
|
+
label: "流程名称",
|
|
67
|
+
prop: "name",
|
|
68
|
+
rules: [
|
|
69
|
+
{
|
|
70
|
+
required: true,
|
|
71
|
+
message: "此项不能为空",
|
|
72
|
+
trigger: "blur"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}, {
|
|
76
|
+
default: withCtx(() => [
|
|
77
|
+
createVNode(_component_el_input, {
|
|
78
|
+
modelValue: formData.value.name,
|
|
79
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formData.value.name = $event)
|
|
80
|
+
}, null, 8, ["modelValue"])
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["model"])
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
export {
|
|
94
|
+
_sfc_main as default
|
|
95
|
+
};
|