fec-dev-designer 1.1.2 → 5.1.2
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/package.json.js +66 -0
- package/es/src/assets/approvalHistory.png.js +4 -0
- package/es/src/assets/logo.png.js +4 -0
- package/es/src/components/DataSourceSelect.vue.js +2 -1
- package/es/src/components/OptionConfig.vue.js +3 -2
- package/es/src/components/OptionConfig.vue2.js +2 -2
- package/es/src/components/ParamsConfig.vue.js +2 -2
- package/es/src/components/ParamsConfig.vue2.js +31 -32
- package/es/src/components/ValueSelector.vue2.js +49 -39
- package/es/src/layout/header/index.vue.js +95 -84
- package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
- package/es/src/packages/dataSource/dataSource.vue.js +98 -105
- package/es/src/packages/dialog/index.vue.js +443 -322
- package/es/src/packages/event/index.vue2.js +44 -44
- package/es/src/packages/event/useEventDialog.js +2 -2
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
- package/es/src/packages/form/aside/index.js +27 -2
- package/es/src/packages/form/aside/roleSelect.js +156 -0
- package/es/src/packages/form/aside/userSelect.js +206 -0
- package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
- package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
- package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
- package/es/src/packages/form/index.vue.js +140 -130
- package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
- package/es/src/packages/form/property/index.vue.js +23 -22
- package/es/src/packages/form/property/subTable.vue.js +37 -43
- package/es/src/packages/form/property/widgets.vue.js +258 -202
- package/es/src/packages/table/aside/index.js +2 -1
- package/es/src/packages/table/default.js +24 -21
- package/es/src/packages/table/property/widgets.vue.js +63 -47
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -20,28 +20,28 @@ const e = {
|
|
|
20
20
|
],
|
|
21
21
|
isOptBtns: !0,
|
|
22
22
|
optBtns: [
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
23
|
+
// {
|
|
24
|
+
// "id": 1770347228880,
|
|
25
|
+
// "label": "修改",
|
|
26
|
+
// "type": "optBtn",
|
|
27
|
+
// "btnStyle": "default"
|
|
28
|
+
// },
|
|
29
|
+
// {
|
|
30
|
+
// "id": 1770347229785,
|
|
31
|
+
// "label": "删除",
|
|
32
|
+
// "type": "optBtn",
|
|
33
|
+
// "btnStyle": "default"
|
|
34
|
+
// }
|
|
35
35
|
],
|
|
36
36
|
customBtns: {
|
|
37
37
|
left: [
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
38
|
+
// {
|
|
39
|
+
// "id": 1770347217788,
|
|
40
|
+
// "label": "新增",
|
|
41
|
+
// "type": "customBtn",
|
|
42
|
+
// "btnType": "custom",
|
|
43
|
+
// "btnStyle": "default"
|
|
44
|
+
// }
|
|
45
45
|
],
|
|
46
46
|
right: []
|
|
47
47
|
},
|
|
@@ -83,13 +83,16 @@ const e = {
|
|
|
83
83
|
type: "customBtn",
|
|
84
84
|
btnType: "custom",
|
|
85
85
|
btnStyle: "default"
|
|
86
|
-
},
|
|
86
|
+
}, a = {
|
|
87
87
|
label: "按钮",
|
|
88
88
|
type: "optBtn",
|
|
89
89
|
btnStyle: "default"
|
|
90
90
|
};
|
|
91
|
+
({
|
|
92
|
+
...e
|
|
93
|
+
});
|
|
91
94
|
export {
|
|
92
95
|
t as defaultCustomBtn,
|
|
93
|
-
|
|
96
|
+
a as defaultOptBtn,
|
|
94
97
|
e as defaultTableConfig
|
|
95
98
|
};
|
|
@@ -16,63 +16,74 @@ import "../../../../node_modules/element-plus/theme-chalk/el-option-group.css.js
|
|
|
16
16
|
import "../../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
17
17
|
import "../../../../node_modules/element-plus/theme-chalk/el-popper.css.js";
|
|
18
18
|
import "../../../../node_modules/element-plus/theme-chalk/el-select.css.js";
|
|
19
|
-
import { computed as
|
|
20
|
-
import { getCurrentItem as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
19
|
+
import { computed as w, ref as F, openBlock as n, createBlock as i, unref as e, isRef as M, withCtx as d, createVNode as t, normalizeStyle as O, createElementBlock as g, Fragment as U, renderList as P, createCommentVNode as p, createTextVNode as b } from "vue";
|
|
20
|
+
import { getCurrentItem as z } from "../../utils/common.js";
|
|
21
|
+
import L from "../../../components/OptionConfig.vue.js";
|
|
22
|
+
import W from "../aside/index.js";
|
|
23
|
+
import D from "../../../components/EventConfigButton.vue.js";
|
|
24
24
|
import "./widgets.vue2.js";
|
|
25
|
-
import
|
|
26
|
-
import { ElOption as
|
|
27
|
-
import { ElInput as
|
|
28
|
-
import { ElFormItem as
|
|
29
|
-
import { ElCheckbox as
|
|
30
|
-
import { ElInputNumber as
|
|
31
|
-
import { ElRadioButton as
|
|
32
|
-
import { ElSwitch as
|
|
33
|
-
import { ElCollapseItem as
|
|
34
|
-
const
|
|
25
|
+
import R from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
26
|
+
import { ElOption as A, ElSelect as j } from "../../../../node_modules/element-plus/es/components/select/index.js";
|
|
27
|
+
import { ElInput as q } from "../../../../node_modules/element-plus/es/components/input/index.js";
|
|
28
|
+
import { ElFormItem as G, ElForm as H } from "../../../../node_modules/element-plus/es/components/form/index.js";
|
|
29
|
+
import { ElCheckbox as J } from "../../../../node_modules/element-plus/es/components/checkbox/index.js";
|
|
30
|
+
import { ElInputNumber as K } from "../../../../node_modules/element-plus/es/components/input-number/index.js";
|
|
31
|
+
import { ElRadioButton as Q, ElRadioGroup as X } from "../../../../node_modules/element-plus/es/components/radio/index.js";
|
|
32
|
+
import { ElSwitch as Y } from "../../../../node_modules/element-plus/es/components/switch/index.js";
|
|
33
|
+
import { ElCollapseItem as Z, ElCollapse as $ } from "../../../../node_modules/element-plus/es/components/collapse/index.js";
|
|
34
|
+
const h = {
|
|
35
35
|
__name: "widgets",
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
props: {
|
|
37
|
+
column: {
|
|
38
|
+
type: Object
|
|
39
|
+
},
|
|
40
|
+
isComp: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
setup(_) {
|
|
46
|
+
const x = _, l = w(() => x.column || z()), y = F(["common"]), C = w(() => {
|
|
38
47
|
var o;
|
|
39
|
-
const V =
|
|
48
|
+
const V = W.find((m) => m.name === "basic");
|
|
40
49
|
return ((o = V == null ? void 0 : V.children) == null ? void 0 : o.filter((m) => m.isShow)) || [];
|
|
41
50
|
});
|
|
42
|
-
function
|
|
51
|
+
function T(V) {
|
|
43
52
|
l.value;
|
|
44
53
|
}
|
|
45
54
|
return (V, o) => {
|
|
46
|
-
const m =
|
|
47
|
-
return n(), i(
|
|
55
|
+
const m = A, r = j, f = q, u = G, s = J, v = K, k = Q, E = X, S = Y, I = H, N = Z, B = $;
|
|
56
|
+
return n(), i(B, {
|
|
48
57
|
class: "setting",
|
|
49
|
-
modelValue: e(
|
|
50
|
-
"onUpdate:modelValue": o[24] || (o[24] = (a) =>
|
|
58
|
+
modelValue: e(y),
|
|
59
|
+
"onUpdate:modelValue": o[24] || (o[24] = (a) => M(y) ? y.value = a : null)
|
|
51
60
|
}, {
|
|
52
61
|
default: d(() => [
|
|
53
|
-
t(
|
|
62
|
+
t(N, {
|
|
54
63
|
name: "common",
|
|
55
64
|
title: "基本属性"
|
|
56
65
|
}, {
|
|
57
66
|
default: d(() => [
|
|
58
67
|
t(r, {
|
|
68
|
+
teleported: !1,
|
|
59
69
|
modelValue: e(l).fieldType,
|
|
60
70
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => e(l).fieldType = a),
|
|
61
71
|
size: "small",
|
|
62
72
|
class: "field-type-select",
|
|
63
|
-
onChange:
|
|
64
|
-
placement: "bottom-end"
|
|
73
|
+
onChange: T,
|
|
74
|
+
placement: "bottom-end",
|
|
75
|
+
style: O(_.isComp ? { top: 0 } : {})
|
|
65
76
|
}, {
|
|
66
77
|
default: d(() => [
|
|
67
|
-
(n(!0),
|
|
78
|
+
(n(!0), g(U, null, P(e(C), (a) => (n(), i(m, {
|
|
68
79
|
key: a.fieldType,
|
|
69
80
|
label: a.label,
|
|
70
81
|
value: a.fieldType
|
|
71
82
|
}, null, 8, ["label", "value"]))), 128))
|
|
72
83
|
]),
|
|
73
84
|
_: 1
|
|
74
|
-
}, 8, ["modelValue"]),
|
|
75
|
-
(n(), i(
|
|
85
|
+
}, 8, ["modelValue", "style"]),
|
|
86
|
+
(n(), i(I, {
|
|
76
87
|
"label-position": "top",
|
|
77
88
|
"label-width": "auto",
|
|
78
89
|
model: e(l),
|
|
@@ -109,12 +120,13 @@ const Y = {
|
|
|
109
120
|
]),
|
|
110
121
|
_: 1
|
|
111
122
|
}),
|
|
112
|
-
e(l).fieldType === "number" ? (n(),
|
|
123
|
+
e(l).fieldType === "number" ? (n(), g(U, { key: 0 }, [
|
|
113
124
|
t(u, { label: "格式" }, {
|
|
114
125
|
default: d(() => [
|
|
115
126
|
t(r, {
|
|
116
127
|
modelValue: e(l).format,
|
|
117
|
-
"onUpdate:modelValue": o[4] || (o[4] = (a) => e(l).format = a)
|
|
128
|
+
"onUpdate:modelValue": o[4] || (o[4] = (a) => e(l).format = a),
|
|
129
|
+
teleported: !1
|
|
118
130
|
}, {
|
|
119
131
|
default: d(() => [
|
|
120
132
|
t(m, {
|
|
@@ -146,7 +158,7 @@ const Y = {
|
|
|
146
158
|
"onUpdate:modelValue": o[5] || (o[5] = (a) => e(l).hasDecimalPlaces = a),
|
|
147
159
|
label: "保留小数位数"
|
|
148
160
|
}, null, 8, ["modelValue"]),
|
|
149
|
-
e(l).hasDecimalPlaces ? (n(), i(
|
|
161
|
+
e(l).hasDecimalPlaces ? (n(), i(v, {
|
|
150
162
|
key: 0,
|
|
151
163
|
style: { "margin-left": "10px", width: "80px" },
|
|
152
164
|
modelValue: e(l).decimalPlaces,
|
|
@@ -170,8 +182,8 @@ const Y = {
|
|
|
170
182
|
_: 1
|
|
171
183
|
})) : p("", !0)
|
|
172
184
|
], 64)) : p("", !0),
|
|
173
|
-
e(l).fieldType === "select" || e(l).fieldType === "multipleSelection" ? (n(),
|
|
174
|
-
t(
|
|
185
|
+
e(l).fieldType === "select" || e(l).fieldType === "multipleSelection" ? (n(), g(U, { key: 1 }, [
|
|
186
|
+
t(L, {
|
|
175
187
|
modelValue: e(l).optionConfig,
|
|
176
188
|
"onUpdate:modelValue": o[8] || (o[8] = (a) => e(l).optionConfig = a)
|
|
177
189
|
}, null, 8, ["modelValue"]),
|
|
@@ -179,7 +191,8 @@ const Y = {
|
|
|
179
191
|
default: d(() => [
|
|
180
192
|
t(r, {
|
|
181
193
|
modelValue: e(l).optionStyle,
|
|
182
|
-
"onUpdate:modelValue": o[9] || (o[9] = (a) => e(l).optionStyle = a)
|
|
194
|
+
"onUpdate:modelValue": o[9] || (o[9] = (a) => e(l).optionStyle = a),
|
|
195
|
+
teleported: !1
|
|
183
196
|
}, {
|
|
184
197
|
default: d(() => [
|
|
185
198
|
t(m, {
|
|
@@ -200,7 +213,8 @@ const Y = {
|
|
|
200
213
|
default: d(() => [
|
|
201
214
|
t(r, {
|
|
202
215
|
modelValue: e(l).dateType,
|
|
203
|
-
"onUpdate:modelValue": o[10] || (o[10] = (a) => e(l).dateType = a)
|
|
216
|
+
"onUpdate:modelValue": o[10] || (o[10] = (a) => e(l).dateType = a),
|
|
217
|
+
teleported: !1
|
|
204
218
|
}, {
|
|
205
219
|
default: d(() => [
|
|
206
220
|
t(m, {
|
|
@@ -239,19 +253,19 @@ const Y = {
|
|
|
239
253
|
})) : p("", !0),
|
|
240
254
|
t(u, { label: "宽度模式" }, {
|
|
241
255
|
default: d(() => [
|
|
242
|
-
t(
|
|
256
|
+
t(E, {
|
|
243
257
|
modelValue: e(l).widthMode,
|
|
244
258
|
"onUpdate:modelValue": o[11] || (o[11] = (a) => e(l).widthMode = a),
|
|
245
259
|
size: "small"
|
|
246
260
|
}, {
|
|
247
261
|
default: d(() => [
|
|
248
|
-
t(
|
|
262
|
+
t(k, { value: "auto" }, {
|
|
249
263
|
default: d(() => [...o[25] || (o[25] = [
|
|
250
264
|
b("自适应", -1)
|
|
251
265
|
])]),
|
|
252
266
|
_: 1
|
|
253
267
|
}),
|
|
254
|
-
t(
|
|
268
|
+
t(k, { value: "fixed" }, {
|
|
255
269
|
default: d(() => [...o[26] || (o[26] = [
|
|
256
270
|
b("固定宽度", -1)
|
|
257
271
|
])]),
|
|
@@ -268,7 +282,7 @@ const Y = {
|
|
|
268
282
|
label: "固定宽度"
|
|
269
283
|
}, {
|
|
270
284
|
default: d(() => [
|
|
271
|
-
t(
|
|
285
|
+
t(v, {
|
|
272
286
|
modelValue: e(l).width,
|
|
273
287
|
"onUpdate:modelValue": o[12] || (o[12] = (a) => e(l).width = a),
|
|
274
288
|
min: 80,
|
|
@@ -288,7 +302,7 @@ const Y = {
|
|
|
288
302
|
label: "最小宽度"
|
|
289
303
|
}, {
|
|
290
304
|
default: d(() => [
|
|
291
|
-
t(
|
|
305
|
+
t(v, {
|
|
292
306
|
modelValue: e(l).minWidth,
|
|
293
307
|
"onUpdate:modelValue": o[13] || (o[13] = (a) => e(l).minWidth = a),
|
|
294
308
|
min: 80,
|
|
@@ -305,7 +319,7 @@ const Y = {
|
|
|
305
319
|
})) : p("", !0),
|
|
306
320
|
t(u, { label: "超出自动换行" }, {
|
|
307
321
|
default: d(() => [
|
|
308
|
-
t(
|
|
322
|
+
t(S, {
|
|
309
323
|
modelValue: e(l).isOverflowWrap,
|
|
310
324
|
"onUpdate:modelValue": o[14] || (o[14] = (a) => e(l).isOverflowWrap = a)
|
|
311
325
|
}, null, 8, ["modelValue"])
|
|
@@ -316,7 +330,8 @@ const Y = {
|
|
|
316
330
|
default: d(() => [
|
|
317
331
|
t(r, {
|
|
318
332
|
modelValue: e(l).headerAlign,
|
|
319
|
-
"onUpdate:modelValue": o[15] || (o[15] = (a) => e(l).headerAlign = a)
|
|
333
|
+
"onUpdate:modelValue": o[15] || (o[15] = (a) => e(l).headerAlign = a),
|
|
334
|
+
teleported: !1
|
|
320
335
|
}, {
|
|
321
336
|
default: d(() => [
|
|
322
337
|
t(m, {
|
|
@@ -341,7 +356,8 @@ const Y = {
|
|
|
341
356
|
default: d(() => [
|
|
342
357
|
t(r, {
|
|
343
358
|
modelValue: e(l).align,
|
|
344
|
-
"onUpdate:modelValue": o[16] || (o[16] = (a) => e(l).align = a)
|
|
359
|
+
"onUpdate:modelValue": o[16] || (o[16] = (a) => e(l).align = a),
|
|
360
|
+
teleported: !1
|
|
345
361
|
}, {
|
|
346
362
|
default: d(() => [
|
|
347
363
|
t(m, {
|
|
@@ -396,7 +412,7 @@ const Y = {
|
|
|
396
412
|
"onUpdate:modelValue": o[20] || (o[20] = (a) => e(l).isLink = a),
|
|
397
413
|
label: "启用超链接"
|
|
398
414
|
}, null, 8, ["modelValue"]),
|
|
399
|
-
e(l).isLink ? (n(), i(
|
|
415
|
+
e(l).isLink ? (n(), i(D, {
|
|
400
416
|
key: 0,
|
|
401
417
|
config: e(l).linkConfig,
|
|
402
418
|
onConfirm: (a) => e(l).linkConfig = a
|
|
@@ -435,7 +451,7 @@ const Y = {
|
|
|
435
451
|
}, 8, ["modelValue"]);
|
|
436
452
|
};
|
|
437
453
|
}
|
|
438
|
-
},
|
|
454
|
+
}, Me = /* @__PURE__ */ R(h, [["__scopeId", "data-v-697d8b89"]]);
|
|
439
455
|
export {
|
|
440
|
-
|
|
456
|
+
Me as default
|
|
441
457
|
};
|