fec-dev-designer 1.0.3 → 1.0.5
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/es/config-dev.js +7 -5
- package/es/node_modules/@element-plus/icons-vue/dist/index.js +107 -92
- package/es/node_modules/element-plus/es/components/result/index.js +7 -0
- package/es/node_modules/element-plus/es/components/result/src/result.js +34 -0
- package/es/node_modules/element-plus/es/components/result/src/result2.js +93 -0
- package/es/node_modules/element-plus/theme-chalk/el-result.css.js +4 -0
- package/es/src/components/OptionConfig.vue.js +1 -1
- package/es/src/components/ValueSelector.vue2.js +30 -24
- package/es/src/components/ValueSelectorPopover.vue2.js +2 -1
- package/es/src/index.js +6 -4
- package/es/src/layout/aside/index.vue.js +64 -60
- package/es/src/layout/index.vue.js +91 -54
- package/es/src/packages/dataSource/dataSource.vue.js +122 -118
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +29 -20
- package/es/src/packages/form/aside/index.js +17 -3
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +46 -42
- package/es/src/packages/form/default.js +1 -0
- package/es/src/packages/form/formSetting.vue.js +72 -50
- package/es/src/packages/form/index.vue.js +247 -202
- package/es/src/packages/form/property/blank.vue.js +62 -0
- package/es/src/packages/form/property/index.vue.js +21 -20
- package/es/src/packages/form/property/subTable.vue.js +61 -52
- package/es/src/packages/form/property/widgets.vue.js +280 -173
- package/es/src/packages/table/aside/index.js +1 -0
- package/es/src/packages/table/property/widgets.vue.js +96 -85
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +6 -6
- package/es/src/packages/table/tablePagination.vue.js +37 -45
- package/es/src/packages/table/tableSetting.vue.js +12 -13
- package/es/src/store/designer.js +40 -0
- package/es/src/store/index.js +12 -39
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -17,25 +17,25 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker-panel.c
|
|
|
17
17
|
import "../../../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
18
18
|
import "../../../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
19
19
|
import "../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js";
|
|
20
|
-
import { computed as
|
|
20
|
+
import { computed as V, openBlock as t, createElementBlock as u, createBlock as o, createSlots as q, withCtx as r, normalizeProps as d, mergeProps as a, unref as l, createCommentVNode as i, Fragment as D, renderList as k, createTextVNode as h, toDisplayString as y, createElementVNode as v } from "vue";
|
|
21
21
|
import "./ComponentPreviewWrapper.vue2.js";
|
|
22
22
|
import W from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
23
23
|
import { ElTooltip as B } from "../../../../node_modules/element-plus/es/components/tooltip/index.js";
|
|
24
24
|
import { ElInput as I } from "../../../../node_modules/element-plus/es/components/input/index.js";
|
|
25
25
|
import { ElDatePicker as L } from "../../../../node_modules/element-plus/es/components/date-picker/index.js";
|
|
26
|
-
import { ElSelect as
|
|
27
|
-
import { ElRadio as
|
|
28
|
-
import { ElCheckbox as
|
|
29
|
-
import { ElSwitch as
|
|
30
|
-
import { ElDivider as
|
|
31
|
-
import { ElFormItem as
|
|
32
|
-
const
|
|
26
|
+
import { ElSelect as N } from "../../../../node_modules/element-plus/es/components/select/index.js";
|
|
27
|
+
import { ElRadio as z, ElRadioGroup as F } from "../../../../node_modules/element-plus/es/components/radio/index.js";
|
|
28
|
+
import { ElCheckbox as G, ElCheckboxGroup as O } from "../../../../node_modules/element-plus/es/components/checkbox/index.js";
|
|
29
|
+
import { ElSwitch as R } from "../../../../node_modules/element-plus/es/components/switch/index.js";
|
|
30
|
+
import { ElDivider as j } from "../../../../node_modules/element-plus/es/components/divider/index.js";
|
|
31
|
+
import { ElFormItem as J } from "../../../../node_modules/element-plus/es/components/form/index.js";
|
|
32
|
+
const M = { class: "component-preview" }, Z = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "iconfont icon-iconZheng credit-icon"
|
|
35
|
-
},
|
|
35
|
+
}, A = {
|
|
36
36
|
key: 1,
|
|
37
37
|
class: "iconfont icon-iconJian regulation-icon"
|
|
38
|
-
},
|
|
38
|
+
}, H = {
|
|
39
39
|
__name: "ComponentPreviewWrapper",
|
|
40
40
|
props: {
|
|
41
41
|
componentData: {
|
|
@@ -44,7 +44,7 @@ const Z = { class: "component-preview" }, A = {
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
setup(e) {
|
|
47
|
-
const p = e, n =
|
|
47
|
+
const p = e, n = V(() => ({
|
|
48
48
|
disabled: p.componentData.disabled,
|
|
49
49
|
readonly: p.componentData.readOnly,
|
|
50
50
|
placeholder: p.componentData.placeholder || "",
|
|
@@ -52,49 +52,53 @@ const Z = { class: "component-preview" }, A = {
|
|
|
52
52
|
maxlength: p.componentData.maxLength,
|
|
53
53
|
showWordLimit: p.componentData.showWordCount || !1
|
|
54
54
|
}));
|
|
55
|
-
return (
|
|
56
|
-
const
|
|
57
|
-
return t(), u("div",
|
|
58
|
-
|
|
55
|
+
return (K, s) => {
|
|
56
|
+
const T = B, f = I, b = L, x = N, g = z, E = F, w = G, C = O, _ = R, P = j, S = J;
|
|
57
|
+
return t(), u("div", M, [
|
|
58
|
+
e.componentData.fieldType != "blank" ? (t(), o(S, {
|
|
59
|
+
key: 0,
|
|
59
60
|
placeholder: e.componentData.placeholder,
|
|
60
61
|
required: e.componentData.required,
|
|
61
62
|
class: "preview-form-item"
|
|
62
|
-
},
|
|
63
|
-
default:
|
|
63
|
+
}, q({
|
|
64
|
+
default: r(() => [
|
|
64
65
|
e.componentData.fieldType == "text" ? (t(), o(f, d(a({ key: 0 }, l(n))), null, 16)) : e.componentData.fieldType == "textarea" ? (t(), o(f, a({
|
|
65
66
|
key: 1,
|
|
66
67
|
rows: 4,
|
|
67
68
|
type: "textarea"
|
|
68
|
-
}, l(n), {
|
|
69
|
-
|
|
69
|
+
}, l(n), {
|
|
70
|
+
resize: "none",
|
|
71
|
+
style: { height: "100%" }
|
|
72
|
+
}), null, 16)) : i("", !0),
|
|
73
|
+
e.componentData.fieldType == "number" ? (t(), o(f, a({ key: 2 }, l(n), { controls: !1 }), null, 16)) : e.componentData.fieldType == "date" ? (t(), o(b, a({ key: 3 }, l(n), {
|
|
70
74
|
type: "date",
|
|
71
75
|
style: { width: "100%" }
|
|
72
|
-
}), null, 16)) : e.componentData.fieldType == "select" || e.componentData.fieldType == "multipleSelection" ? (t(), o(
|
|
73
|
-
default:
|
|
76
|
+
}), null, 16)) : e.componentData.fieldType == "select" || e.componentData.fieldType == "multipleSelection" || e.componentData.fieldType == "cascader" || e.componentData.fieldType == "area" || e.componentData.fieldType == "industry" ? (t(), o(x, d(a({ key: 4 }, l(n))), null, 16)) : e.componentData.fieldType == "radio" ? (t(), o(E, d(a({ key: 5 }, l(n))), {
|
|
77
|
+
default: r(() => {
|
|
74
78
|
var c;
|
|
75
79
|
return [
|
|
76
|
-
(t(!0), u(D, null, k(((c = e.componentData.optionConfig) == null ? void 0 : c.options) || [], (
|
|
77
|
-
key:
|
|
78
|
-
value:
|
|
80
|
+
(t(!0), u(D, null, k(((c = e.componentData.optionConfig) == null ? void 0 : c.options) || [], (m) => (t(), o(g, {
|
|
81
|
+
key: m.value,
|
|
82
|
+
value: m.value
|
|
79
83
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
h(
|
|
84
|
+
default: r(() => [
|
|
85
|
+
h(y(m.label), 1)
|
|
82
86
|
]),
|
|
83
87
|
_: 2
|
|
84
88
|
}, 1032, ["value"]))), 128))
|
|
85
89
|
];
|
|
86
90
|
}),
|
|
87
91
|
_: 1
|
|
88
|
-
}, 16)) : e.componentData.fieldType == "checkbox" ? (t(), o(
|
|
89
|
-
default:
|
|
92
|
+
}, 16)) : e.componentData.fieldType == "checkbox" ? (t(), o(C, d(a({ key: 6 }, l(n))), {
|
|
93
|
+
default: r(() => {
|
|
90
94
|
var c;
|
|
91
95
|
return [
|
|
92
|
-
(t(!0), u(D, null, k(((c = e.componentData.optionConfig) == null ? void 0 : c.options) || [], (
|
|
93
|
-
key:
|
|
94
|
-
value:
|
|
96
|
+
(t(!0), u(D, null, k(((c = e.componentData.optionConfig) == null ? void 0 : c.options) || [], (m) => (t(), o(w, {
|
|
97
|
+
key: m.value,
|
|
98
|
+
value: m.value
|
|
95
99
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
h(
|
|
100
|
+
default: r(() => [
|
|
101
|
+
h(y(m.label), 1)
|
|
98
102
|
]),
|
|
99
103
|
_: 2
|
|
100
104
|
}, 1032, ["value"]))), 128))
|
|
@@ -102,7 +106,7 @@ const Z = { class: "component-preview" }, A = {
|
|
|
102
106
|
}),
|
|
103
107
|
_: 1
|
|
104
108
|
}, 16)) : i("", !0),
|
|
105
|
-
e.componentData.fieldType == "switch" ? (t(), o(
|
|
109
|
+
e.componentData.fieldType == "switch" ? (t(), o(_, d(a({ key: 7 }, l(n))), null, 16)) : i("", !0),
|
|
106
110
|
e.componentData.fieldType == "upload" ? (t(), o(f, d(a({ key: 8 }, l(n))), null, 16)) : i("", !0),
|
|
107
111
|
e.componentData.fieldType == "divider" ? (t(), o(P, { key: 9 })) : i("", !0)
|
|
108
112
|
]),
|
|
@@ -110,18 +114,18 @@ const Z = { class: "component-preview" }, A = {
|
|
|
110
114
|
}, [
|
|
111
115
|
e.componentData.labelMode != "input" ? {
|
|
112
116
|
name: "label",
|
|
113
|
-
fn:
|
|
117
|
+
fn: r(() => {
|
|
114
118
|
var c;
|
|
115
119
|
return [
|
|
116
|
-
e.componentData.credit ? (t(), u("i",
|
|
117
|
-
e.componentData.regulation ? (t(), u("i",
|
|
118
|
-
v("span", null,
|
|
119
|
-
(c = e.componentData.tooltip) != null && c.trim() ? (t(), o(
|
|
120
|
+
e.componentData.credit ? (t(), u("i", Z)) : i("", !0),
|
|
121
|
+
e.componentData.regulation ? (t(), u("i", A)) : i("", !0),
|
|
122
|
+
v("span", null, y(e.componentData.label), 1),
|
|
123
|
+
(c = e.componentData.tooltip) != null && c.trim() ? (t(), o(T, {
|
|
120
124
|
key: 2,
|
|
121
125
|
content: e.componentData.tooltip,
|
|
122
126
|
placement: "top"
|
|
123
127
|
}, {
|
|
124
|
-
default:
|
|
128
|
+
default: r(() => [...s[0] || (s[0] = [
|
|
125
129
|
v("i", { class: "iconfont icon-tooltip info-icon" }, null, -1)
|
|
126
130
|
])]),
|
|
127
131
|
_: 1
|
|
@@ -130,11 +134,11 @@ const Z = { class: "component-preview" }, A = {
|
|
|
130
134
|
}),
|
|
131
135
|
key: "0"
|
|
132
136
|
} : void 0
|
|
133
|
-
]), 1032, ["placeholder", "required"])
|
|
137
|
+
]), 1032, ["placeholder", "required"])) : i("", !0)
|
|
134
138
|
]);
|
|
135
139
|
};
|
|
136
140
|
}
|
|
137
|
-
}, Ce = /* @__PURE__ */ W(
|
|
141
|
+
}, Ce = /* @__PURE__ */ W(H, [["__scopeId", "data-v-4386137a"]]);
|
|
138
142
|
export {
|
|
139
143
|
Ce as default
|
|
140
144
|
};
|
|
@@ -11,127 +11,149 @@ import "../../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
|
|
|
11
11
|
import "../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
12
12
|
import "../../../node_modules/element-plus/theme-chalk/el-popper.css.js";
|
|
13
13
|
import "../../../node_modules/element-plus/theme-chalk/el-select.css.js";
|
|
14
|
-
import { computed as
|
|
14
|
+
import { computed as r, openBlock as D, createElementBlock as E, Fragment as _, createElementVNode as a, createVNode as e, withCtx as u, createTextVNode as i, unref as f, isRef as w } from "vue";
|
|
15
15
|
import { getEditConfigData as N } from "../utils/common.js";
|
|
16
16
|
import { useDataSourceDialog as U } from "../dataSource/useDataSourceDialog.js";
|
|
17
17
|
import "./formSetting.vue2.js";
|
|
18
18
|
import z from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
19
19
|
import { ElOption as F, ElSelect as I } from "../../../node_modules/element-plus/es/components/select/index.js";
|
|
20
20
|
import { ElInputNumber as R } from "../../../node_modules/element-plus/es/components/input-number/index.js";
|
|
21
|
-
import { ElRadioButton as
|
|
22
|
-
import { ElSwitch as
|
|
23
|
-
const
|
|
21
|
+
import { ElRadioButton as y, ElRadioGroup as B } from "../../../node_modules/element-plus/es/components/radio/index.js";
|
|
22
|
+
import { ElSwitch as C } from "../../../node_modules/element-plus/es/components/switch/index.js";
|
|
23
|
+
const k = { class: "form-setting" }, M = { class: "setting-left" }, P = { class: "setting-right" }, W = {
|
|
24
24
|
__name: "formSetting",
|
|
25
|
-
setup(
|
|
26
|
-
const { dataSourceDialogVisible: m, openDataSourceDialog:
|
|
25
|
+
setup(q) {
|
|
26
|
+
const { dataSourceDialogVisible: m, openDataSourceDialog: G, DataSourceDialog: V } = U(), t = r(() => N()), g = r(() => t.value.dataSources || []), p = r({
|
|
27
27
|
get: () => t.value.dataSourceId,
|
|
28
28
|
set: (n) => {
|
|
29
29
|
t.value.dataSourceId = n;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
return
|
|
32
|
+
return r(() => {
|
|
33
33
|
if (!p.value)
|
|
34
34
|
return "";
|
|
35
35
|
const n = g.value.find(
|
|
36
36
|
(l) => l.id === p.value
|
|
37
37
|
);
|
|
38
38
|
return n ? n.name : "";
|
|
39
|
-
}),
|
|
40
|
-
const
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
l[
|
|
45
|
-
e(
|
|
39
|
+
}), r(() => t.value.validationRules || []), (n, l) => {
|
|
40
|
+
const d = F, b = I, x = R, s = y, v = B, S = C;
|
|
41
|
+
return D(), E(_, null, [
|
|
42
|
+
a("div", k, [
|
|
43
|
+
a("div", M, [
|
|
44
|
+
l[12] || (l[12] = a("span", { class: "text-label" }, "列数", -1)),
|
|
45
|
+
e(b, {
|
|
46
46
|
modelValue: t.value.columns,
|
|
47
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
47
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => t.value.columns = o),
|
|
48
48
|
size: "small",
|
|
49
49
|
style: { width: "100px" }
|
|
50
50
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
e(
|
|
51
|
+
default: u(() => [
|
|
52
|
+
e(d, {
|
|
53
53
|
label: "一列",
|
|
54
54
|
value: 1
|
|
55
55
|
}),
|
|
56
|
-
e(
|
|
56
|
+
e(d, {
|
|
57
57
|
label: "二列",
|
|
58
58
|
value: 2
|
|
59
59
|
}),
|
|
60
|
-
e(
|
|
60
|
+
e(d, {
|
|
61
61
|
label: "三列",
|
|
62
62
|
value: 3
|
|
63
63
|
}),
|
|
64
|
-
e(
|
|
64
|
+
e(d, {
|
|
65
65
|
label: "四列",
|
|
66
66
|
value: 4
|
|
67
67
|
})
|
|
68
68
|
]),
|
|
69
69
|
_: 1
|
|
70
70
|
}, 8, ["modelValue"]),
|
|
71
|
-
l[
|
|
72
|
-
l[
|
|
73
|
-
e(
|
|
71
|
+
l[13] || (l[13] = a("div", { class: "setting-divider" }, null, -1)),
|
|
72
|
+
l[14] || (l[14] = a("span", { class: "text-label" }, "标签宽度", -1)),
|
|
73
|
+
e(x, {
|
|
74
74
|
modelValue: t.value.labelWidth,
|
|
75
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
75
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => t.value.labelWidth = o),
|
|
76
76
|
min: 70,
|
|
77
77
|
max: 200,
|
|
78
78
|
size: "small",
|
|
79
79
|
"controls-position": "right",
|
|
80
80
|
style: { width: "80px" }
|
|
81
81
|
}, {
|
|
82
|
-
append:
|
|
83
|
-
|
|
82
|
+
append: u(() => [...l[6] || (l[6] = [
|
|
83
|
+
i("px", -1)
|
|
84
84
|
])]),
|
|
85
85
|
_: 1
|
|
86
86
|
}, 8, ["modelValue"]),
|
|
87
|
-
l[
|
|
88
|
-
l[
|
|
89
|
-
e(
|
|
87
|
+
l[15] || (l[15] = a("div", { class: "setting-divider" }, null, -1)),
|
|
88
|
+
l[16] || (l[16] = a("span", { class: "text-label" }, "标签位置", -1)),
|
|
89
|
+
e(v, {
|
|
90
90
|
modelValue: t.value.labelPosition,
|
|
91
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
91
|
+
"onUpdate:modelValue": l[2] || (l[2] = (o) => t.value.labelPosition = o),
|
|
92
92
|
size: "small"
|
|
93
93
|
}, {
|
|
94
|
-
default:
|
|
95
|
-
e(
|
|
96
|
-
default:
|
|
97
|
-
|
|
94
|
+
default: u(() => [
|
|
95
|
+
e(s, { value: "left" }, {
|
|
96
|
+
default: u(() => [...l[7] || (l[7] = [
|
|
97
|
+
i("左对齐", -1)
|
|
98
98
|
])]),
|
|
99
99
|
_: 1
|
|
100
100
|
}),
|
|
101
|
-
e(
|
|
102
|
-
default:
|
|
103
|
-
|
|
101
|
+
e(s, { value: "right" }, {
|
|
102
|
+
default: u(() => [...l[8] || (l[8] = [
|
|
103
|
+
i("右对齐", -1)
|
|
104
104
|
])]),
|
|
105
105
|
_: 1
|
|
106
106
|
}),
|
|
107
|
-
e(
|
|
108
|
-
default:
|
|
109
|
-
|
|
107
|
+
e(s, { value: "top" }, {
|
|
108
|
+
default: u(() => [...l[9] || (l[9] = [
|
|
109
|
+
i("顶部对齐", -1)
|
|
110
110
|
])]),
|
|
111
111
|
_: 1
|
|
112
112
|
})
|
|
113
113
|
]),
|
|
114
114
|
_: 1
|
|
115
115
|
}, 8, ["modelValue"]),
|
|
116
|
-
l[
|
|
116
|
+
l[17] || (l[17] = a("div", { class: "setting-divider" }, null, -1)),
|
|
117
|
+
l[18] || (l[18] = a("span", { class: "text-label" }, "表单模式", -1)),
|
|
118
|
+
e(v, {
|
|
119
|
+
modelValue: t.value.formMode,
|
|
120
|
+
"onUpdate:modelValue": l[3] || (l[3] = (o) => t.value.formMode = o),
|
|
121
|
+
size: "small"
|
|
122
|
+
}, {
|
|
123
|
+
default: u(() => [
|
|
124
|
+
e(s, { value: "edit" }, {
|
|
125
|
+
default: u(() => [...l[10] || (l[10] = [
|
|
126
|
+
i("编辑", -1)
|
|
127
|
+
])]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
e(s, { value: "query" }, {
|
|
131
|
+
default: u(() => [...l[11] || (l[11] = [
|
|
132
|
+
i("查看", -1)
|
|
133
|
+
])]),
|
|
134
|
+
_: 1
|
|
135
|
+
})
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["modelValue"])
|
|
117
139
|
]),
|
|
118
|
-
|
|
119
|
-
l[
|
|
120
|
-
e(
|
|
140
|
+
a("div", P, [
|
|
141
|
+
l[19] || (l[19] = a("span", { class: "text-label" }, "显示字段名", -1)),
|
|
142
|
+
e(S, {
|
|
121
143
|
modelValue: t.value.showFieldName,
|
|
122
|
-
"onUpdate:modelValue": l[
|
|
144
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => t.value.showFieldName = o),
|
|
123
145
|
size: "small"
|
|
124
146
|
}, null, 8, ["modelValue"])
|
|
125
147
|
])
|
|
126
148
|
]),
|
|
127
|
-
e(
|
|
128
|
-
modelValue:
|
|
129
|
-
"onUpdate:modelValue": l[
|
|
149
|
+
e(f(V), {
|
|
150
|
+
modelValue: f(m),
|
|
151
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => w(m) ? m.value = o : null)
|
|
130
152
|
}, null, 8, ["modelValue"])
|
|
131
153
|
], 64);
|
|
132
154
|
};
|
|
133
155
|
}
|
|
134
|
-
},
|
|
156
|
+
}, nl = /* @__PURE__ */ z(W, [["__scopeId", "data-v-cc559ca7"]]);
|
|
135
157
|
export {
|
|
136
|
-
|
|
158
|
+
nl as default
|
|
137
159
|
};
|