super-page-designer 2.0.79 → 2.0.83
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 +24 -24
- package/dist/es/components/design/utils/form-design-util.d.ts +17 -1
- package/dist/es/components/design/utils/form-design-util.js +112 -4
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +2 -1
- package/dist/es/components/design/utils/page-design-util.d.ts +1 -0
- package/dist/es/components/design/utils/page-design-util.js +27 -0
- package/dist/es/components/design/utils/page-table-util.js +31 -10
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +9 -13
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +3 -18
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +15 -13
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +13 -6
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +2 -0
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +8 -7
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +4 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +6 -3
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +4 -20
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +3 -20
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +2 -3
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +3 -5
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +16 -16
- 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 +5 -3
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +5 -1560
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1908 -1
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +9 -12
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +11 -7
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- 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 +36 -92
- 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/suffixmodule.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +13 -14
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +5 -0
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +9 -12
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +5 -10
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +13 -11
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +5 -10
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +7 -11
- package/dist/es/components/design/views/assemblys/object-design.vue.js +14 -2
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +21 -10
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +8 -3
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +9 -7
- package/dist/es/components/design/views/design/page-design.vue.js +4 -0
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +32 -3
- package/dist/es/components/design/views/design/view/attr-container.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +1 -3
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +3 -20
- package/dist/es/style.css +17 -12
- package/package.json +4 -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
|
};
|
|
@@ -469,9 +469,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
469
469
|
}, {
|
|
470
470
|
default: withCtx(() => [
|
|
471
471
|
createVNode(BindVariable, {
|
|
472
|
+
isTable: _ctx.configure.isTable,
|
|
472
473
|
modelValue: sowDefaultValue.value,
|
|
473
474
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
474
|
-
}, null, 8, ["modelValue"])
|
|
475
|
+
}, null, 8, ["isTable", "modelValue"])
|
|
475
476
|
]),
|
|
476
477
|
_: 1
|
|
477
478
|
})) : createCommentVNode("", true),
|
package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, withDirectives, vShow, createTextVNode } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import {
|
|
3
|
+
import { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
5
5
|
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
6
6
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
8
8
|
import _sfc_main$2 from "../common/title-suffix.vue.js";
|
|
9
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
10
9
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
10
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
12
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -21,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
20
|
emits: ["changeAssembly"],
|
|
22
21
|
setup(__props, { emit: __emit }) {
|
|
23
22
|
const props = __props;
|
|
23
|
+
const componentName = ref(props.configure.name);
|
|
24
24
|
const emit = __emit;
|
|
25
25
|
const openCollapseItems = ref(["base"]);
|
|
26
26
|
const isTable = ref(false);
|
|
@@ -39,12 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
return isScope ? "默认值1" : "默认值";
|
|
40
40
|
});
|
|
41
41
|
function nameChange(val) {
|
|
42
|
-
|
|
43
|
-
tableResetConfigIndo(props.configure, val);
|
|
44
|
-
} else {
|
|
45
|
-
resetConfigIndo(props.configure, val);
|
|
46
|
-
}
|
|
47
|
-
emit("changeAssembly", props.configure);
|
|
42
|
+
componentNameChange(props.configure, val, emit);
|
|
48
43
|
}
|
|
49
44
|
function afterBindVariable(modelValue, alias, fieldName) {
|
|
50
45
|
if (fieldName === "prop2") {
|
|
@@ -102,8 +97,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
97
|
}, {
|
|
103
98
|
default: withCtx(() => [
|
|
104
99
|
createVNode(_component_el_select, {
|
|
105
|
-
modelValue:
|
|
106
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
100
|
+
modelValue: componentName.value,
|
|
101
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
107
102
|
onChange: nameChange,
|
|
108
103
|
placeholder: "请选择"
|
|
109
104
|
}, {
|
|
@@ -142,11 +137,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
137
|
}, {
|
|
143
138
|
default: withCtx(() => [
|
|
144
139
|
(openBlock(), createBlock(BindVariable, {
|
|
140
|
+
isTable: __props.configure.isTable,
|
|
145
141
|
key: __props.configure.uuid + "prop",
|
|
146
142
|
modelValue: __props.configure.props.base.prop,
|
|
147
143
|
paramTypes: ["data", "page"],
|
|
148
144
|
"onUpdate:modelValue": afterBindVariable
|
|
149
|
-
}, null, 8, ["modelValue"]))
|
|
145
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
150
146
|
]),
|
|
151
147
|
_: 1
|
|
152
148
|
}, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -156,11 +152,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
156
152
|
}, {
|
|
157
153
|
default: withCtx(() => [
|
|
158
154
|
(openBlock(), createBlock(BindVariable, {
|
|
155
|
+
isTable: __props.configure.isTable,
|
|
159
156
|
key: __props.configure.uuid + "defaultValue",
|
|
160
157
|
isRange: true,
|
|
161
158
|
modelValue: __props.configure.props.base.defaultValue,
|
|
162
159
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
163
|
-
}, null, 8, ["modelValue"]))
|
|
160
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
164
161
|
]),
|
|
165
162
|
_: 1
|
|
166
163
|
}, 8, ["label"]),
|
|
@@ -170,11 +167,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
167
|
}, {
|
|
171
168
|
default: withCtx(() => [
|
|
172
169
|
(openBlock(), createBlock(BindVariable, {
|
|
170
|
+
isTable: __props.configure.isTable,
|
|
173
171
|
key: __props.configure.uuid + "prop2",
|
|
174
172
|
modelValue: __props.configure.props.base.prop2,
|
|
175
173
|
paramTypes: ["data", "page"],
|
|
176
174
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = (value, alias) => afterBindVariable(value, alias, "prop2"))
|
|
177
|
-
}, null, 8, ["modelValue"]))
|
|
175
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
178
176
|
]),
|
|
179
177
|
_: 1
|
|
180
178
|
}, 512), [
|
|
@@ -186,11 +184,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
184
|
}, {
|
|
187
185
|
default: withCtx(() => [
|
|
188
186
|
(openBlock(), createBlock(BindVariable, {
|
|
187
|
+
isTable: __props.configure.isTable,
|
|
189
188
|
key: __props.configure.uuid + "defaultValue2",
|
|
190
189
|
isRange: true,
|
|
191
190
|
modelValue: __props.configure.props.base.defaultValue2,
|
|
192
191
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = (value) => afterBindDefaultValue(value, "defaultValue2"))
|
|
193
|
-
}, null, 8, ["modelValue"]))
|
|
192
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
194
193
|
]),
|
|
195
194
|
_: 1
|
|
196
195
|
}, 512), [
|
package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js
CHANGED
|
@@ -62,6 +62,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
} else {
|
|
63
63
|
tempProps.dateType = dateType;
|
|
64
64
|
}
|
|
65
|
+
if (propBase.timestamp) {
|
|
66
|
+
tempProps.valueFormat = "x";
|
|
67
|
+
} else {
|
|
68
|
+
tempProps.valueFormat = null;
|
|
69
|
+
}
|
|
65
70
|
tempProps.sourceType = dateType;
|
|
66
71
|
tempProps.dateScopeDetails = propBase.dateScopeDetails;
|
|
67
72
|
if (propBase.dateScopeDetails && propBase.dateScopeDetails.includes("custom") && propBase.scopeFunc) {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { Search } from "@element-plus/icons-vue";
|
|
3
3
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
4
|
-
import {
|
|
4
|
+
import { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
5
5
|
import _sfc_main$4 from "../../common/common-attr-size.vue.js";
|
|
6
6
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import _sfc_main$2 from "./depttree-autoset.vue.js";
|
|
8
8
|
import { OrganizationInput } from "agilebuilder-ui";
|
|
9
9
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
10
10
|
import _sfc_main$3 from "../common/title-suffix.vue.js";
|
|
11
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
12
11
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
13
12
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
14
13
|
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -24,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
23
|
emits: ["changeAssembly"],
|
|
25
24
|
setup(__props, { emit: __emit }) {
|
|
26
25
|
const props = __props;
|
|
26
|
+
const componentName = ref(props.configure.name);
|
|
27
27
|
const emit = __emit;
|
|
28
28
|
const openCollapseItems = ref(["base"]);
|
|
29
29
|
const isTable = ref(false);
|
|
@@ -31,12 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
isTable.value = true;
|
|
32
32
|
}
|
|
33
33
|
function nameChange(val) {
|
|
34
|
-
|
|
35
|
-
tableResetConfigIndo(props.configure, val);
|
|
36
|
-
} else {
|
|
37
|
-
resetConfigIndo(props.configure, val);
|
|
38
|
-
}
|
|
39
|
-
emit("changeAssembly", props.configure);
|
|
34
|
+
componentNameChange(props.configure, val, emit);
|
|
40
35
|
}
|
|
41
36
|
function afterBindVariable(modelValue, alias) {
|
|
42
37
|
props.configure.props.base.prop = modelValue;
|
|
@@ -91,8 +86,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
86
|
}, {
|
|
92
87
|
default: withCtx(() => [
|
|
93
88
|
createVNode(_component_el_select, {
|
|
94
|
-
modelValue:
|
|
95
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
89
|
+
modelValue: componentName.value,
|
|
90
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
96
91
|
onChange: nameChange,
|
|
97
92
|
placeholder: "请选择"
|
|
98
93
|
}, {
|
|
@@ -178,10 +173,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
178
173
|
}, {
|
|
179
174
|
default: withCtx(() => [
|
|
180
175
|
(openBlock(), createBlock(BindVariable, {
|
|
176
|
+
isTable: __props.configure.isTable,
|
|
181
177
|
key: __props.configure.uuid,
|
|
182
178
|
modelValue: __props.configure.props.base.defaultValue,
|
|
183
179
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
184
|
-
}, null, 8, ["modelValue"]))
|
|
180
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
185
181
|
]),
|
|
186
182
|
_: 1
|
|
187
183
|
}),
|
|
@@ -393,10 +389,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
393
389
|
]),
|
|
394
390
|
default: withCtx(() => [
|
|
395
391
|
createVNode(BindVariable, {
|
|
392
|
+
isTable: __props.configure.isTable,
|
|
396
393
|
showLabel: __props.configure.props.base.deptScope != "field",
|
|
397
394
|
modelValue: __props.configure.props.base.deptScopeField,
|
|
398
395
|
"onUpdate:modelValue": afterBindDeptScopeField
|
|
399
|
-
}, null, 8, ["showLabel", "modelValue"])
|
|
396
|
+
}, null, 8, ["isTable", "showLabel", "modelValue"])
|
|
400
397
|
]),
|
|
401
398
|
_: 1
|
|
402
399
|
}),
|
|
@@ -63,10 +63,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
}, {
|
|
64
64
|
default: withCtx(() => [
|
|
65
65
|
(openBlock(), createBlock(BindVariable, {
|
|
66
|
+
isTable: __props.configure.isTable,
|
|
66
67
|
key: __props.configure.uuid,
|
|
67
68
|
modelValue: __props.configure.props.base.defaultValue,
|
|
68
69
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
69
|
-
}, null, 8, ["modelValue"]))
|
|
70
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
70
71
|
]),
|
|
71
72
|
_: 1
|
|
72
73
|
}),
|
package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import {
|
|
3
|
+
import { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../common/uploading.vue.js";
|
|
6
6
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
8
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
9
8
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
9
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -20,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
19
|
emits: ["changeAssembly"],
|
|
21
20
|
setup(__props, { emit: __emit }) {
|
|
22
21
|
const props = __props;
|
|
22
|
+
const componentName = ref(props.configure.name);
|
|
23
23
|
const emit = __emit;
|
|
24
24
|
if (!props.configure.props) {
|
|
25
25
|
props.configure.props = {};
|
|
@@ -43,12 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
function nameChange(val) {
|
|
46
|
-
|
|
47
|
-
tableResetConfigIndo(props.configure, val);
|
|
48
|
-
} else {
|
|
49
|
-
resetConfigIndo(props.configure, val);
|
|
50
|
-
}
|
|
51
|
-
emit("changeAssembly", props.configure);
|
|
46
|
+
componentNameChange(props.configure, val, emit);
|
|
52
47
|
}
|
|
53
48
|
return (_ctx, _cache) => {
|
|
54
49
|
const _component_el_option = resolveComponent("el-option");
|
|
@@ -90,8 +85,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
85
|
}, {
|
|
91
86
|
default: withCtx(() => [
|
|
92
87
|
createVNode(_component_el_select, {
|
|
93
|
-
modelValue:
|
|
94
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
88
|
+
modelValue: componentName.value,
|
|
89
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
95
90
|
onChange: nameChange,
|
|
96
91
|
placeholder: "请选择"
|
|
97
92
|
}, {
|
package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import {
|
|
3
|
+
import { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _sfc_main$3 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
6
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
7
7
|
import _sfc_main$2 from "../common/title-suffix.vue.js";
|
|
8
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
9
8
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
10
9
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -20,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
19
|
emits: ["changeAssembly"],
|
|
21
20
|
setup(__props, { emit: __emit }) {
|
|
22
21
|
const props = __props;
|
|
22
|
+
const componentName = ref(props.configure.name);
|
|
23
23
|
const openCollapseItems = ref(["base"]);
|
|
24
24
|
const emit = __emit;
|
|
25
25
|
const isTable = ref(false);
|
|
@@ -33,12 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
function nameChange(val) {
|
|
36
|
-
|
|
37
|
-
tableResetConfigIndo(props.configure, val);
|
|
38
|
-
} else {
|
|
39
|
-
resetConfigIndo(props.configure, val);
|
|
40
|
-
}
|
|
41
|
-
emit("changeAssembly", props.configure);
|
|
36
|
+
componentNameChange(props.configure, val, emit);
|
|
42
37
|
}
|
|
43
38
|
function afterBindDefaultValue(modelValue) {
|
|
44
39
|
props.configure.props.base.defaultValue = modelValue;
|
|
@@ -81,8 +76,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
76
|
}, {
|
|
82
77
|
default: withCtx(() => [
|
|
83
78
|
createVNode(_component_el_select, {
|
|
84
|
-
modelValue:
|
|
85
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
79
|
+
modelValue: componentName.value,
|
|
80
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
86
81
|
onChange: nameChange,
|
|
87
82
|
placeholder: "请选择"
|
|
88
83
|
}, {
|
|
@@ -135,10 +130,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
130
|
}, {
|
|
136
131
|
default: withCtx(() => [
|
|
137
132
|
(openBlock(), createBlock(BindVariable, {
|
|
133
|
+
isTable: __props.configure.isTable,
|
|
138
134
|
key: __props.configure.uuid,
|
|
139
135
|
modelValue: __props.configure.props.base.defaultValue,
|
|
140
136
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
141
|
-
}, null, 8, ["modelValue"]))
|
|
137
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
142
138
|
]),
|
|
143
139
|
_: 1
|
|
144
140
|
}),
|
package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import {
|
|
3
|
+
import { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _sfc_main$5 from "../common/verification.vue.js";
|
|
5
5
|
import _sfc_main$6 from "../../common/common-attr-size.vue.js";
|
|
6
6
|
import _sfc_main$3 from "../common/pre-suffix.vue.js";
|
|
@@ -9,7 +9,6 @@ import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
|
9
9
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
10
10
|
import _sfc_main$4 from "../common/suffixmodule.vue.js";
|
|
11
11
|
import _sfc_main$2 from "../common/title-suffix.vue.js";
|
|
12
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
13
12
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
14
13
|
const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
15
14
|
const _hoisted_3 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -31,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
30
|
emits: ["changeAssembly"],
|
|
32
31
|
setup(__props, { emit: __emit }) {
|
|
33
32
|
const props = __props;
|
|
33
|
+
const componentName = ref(props.configure.name);
|
|
34
34
|
const emit = __emit;
|
|
35
35
|
if (!props.configure.props.base) {
|
|
36
36
|
props.configure.props.base = { prop: "" };
|
|
@@ -49,12 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
isTable.value = true;
|
|
50
50
|
}
|
|
51
51
|
function nameChange(val) {
|
|
52
|
-
|
|
53
|
-
tableResetConfigIndo(props.configure, val);
|
|
54
|
-
} else {
|
|
55
|
-
resetConfigIndo(props.configure, val);
|
|
56
|
-
}
|
|
57
|
-
emit("changeAssembly", props.configure);
|
|
52
|
+
componentNameChange(props.configure, val, emit);
|
|
58
53
|
}
|
|
59
54
|
const openCollapseItems = ref(["base"]);
|
|
60
55
|
const BarCodeRuleOff = ref(false);
|
|
@@ -110,8 +105,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
105
|
}, {
|
|
111
106
|
default: withCtx(() => [
|
|
112
107
|
createVNode(_component_el_select, {
|
|
113
|
-
modelValue:
|
|
114
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
108
|
+
modelValue: componentName.value,
|
|
109
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
115
110
|
onChange: nameChange,
|
|
116
111
|
placeholder: "请选择"
|
|
117
112
|
}, {
|
|
@@ -164,10 +159,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
164
159
|
}, {
|
|
165
160
|
default: withCtx(() => [
|
|
166
161
|
(openBlock(), createBlock(BindVariable, {
|
|
162
|
+
isTable: __props.configure.isTable,
|
|
167
163
|
key: __props.configure.uuid,
|
|
168
164
|
modelValue: __props.configure.props.base.defaultValue,
|
|
169
165
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
170
|
-
}, null, 8, ["modelValue"]))
|
|
166
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
171
167
|
]),
|
|
172
168
|
_: 1
|
|
173
169
|
}),
|
|
@@ -364,6 +360,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
364
360
|
createTextVNode("只读")
|
|
365
361
|
]),
|
|
366
362
|
_: 1
|
|
363
|
+
}),
|
|
364
|
+
createVNode(_component_el_radio, { value: "hidden" }, {
|
|
365
|
+
default: withCtx(() => [
|
|
366
|
+
createTextVNode("隐藏")
|
|
367
|
+
]),
|
|
368
|
+
_: 1
|
|
367
369
|
})
|
|
368
370
|
]),
|
|
369
371
|
_: 1
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import {
|
|
3
|
+
import { componentNameChange } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _sfc_main$4 from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import _sfc_main$3 from "../common/pre-suffix.vue.js";
|
|
6
6
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import _sfc_main$2 from "../common/data-format.vue.js";
|
|
8
8
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
9
|
-
import { tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
10
9
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
11
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
11
|
__name: "label-attr-base",
|
|
@@ -23,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
22
|
if (!props.configure.props.preSuffix) {
|
|
24
23
|
props.configure.props.preSuffix = {};
|
|
25
24
|
}
|
|
25
|
+
const componentName = ref(props.configure.name);
|
|
26
26
|
const emit = __emit;
|
|
27
27
|
const openCollapseItems = ref(["base"]);
|
|
28
28
|
const isTable = ref(false);
|
|
@@ -36,12 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
function nameChange(val) {
|
|
39
|
-
|
|
40
|
-
tableResetConfigIndo(props.configure, val);
|
|
41
|
-
} else {
|
|
42
|
-
resetConfigIndo(props.configure, val);
|
|
43
|
-
}
|
|
44
|
-
emit("changeAssembly", props.configure);
|
|
39
|
+
componentNameChange(props.configure, val, emit);
|
|
45
40
|
}
|
|
46
41
|
function afterBindDefaultValue(modelValue) {
|
|
47
42
|
props.configure.props.base.defaultValue = modelValue;
|
|
@@ -81,8 +76,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
76
|
}, {
|
|
82
77
|
default: withCtx(() => [
|
|
83
78
|
createVNode(_component_el_select, {
|
|
84
|
-
modelValue:
|
|
85
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
79
|
+
modelValue: componentName.value,
|
|
80
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => componentName.value = $event),
|
|
86
81
|
onChange: nameChange,
|
|
87
82
|
placeholder: "请选择"
|
|
88
83
|
}, {
|
|
@@ -135,10 +130,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
130
|
}, {
|
|
136
131
|
default: withCtx(() => [
|
|
137
132
|
(openBlock(), createBlock(BindVariable, {
|
|
133
|
+
isTable: __props.configure.isTable,
|
|
138
134
|
key: __props.configure.uuid,
|
|
139
135
|
modelValue: __props.configure.props.base.defaultValue,
|
|
140
136
|
"onUpdate:modelValue": afterBindDefaultValue
|
|
141
|
-
}, null, 8, ["modelValue"]))
|
|
137
|
+
}, null, 8, ["isTable", "modelValue"]))
|
|
142
138
|
]),
|
|
143
139
|
_: 1
|
|
144
140
|
}),
|