sun-form-v3 1.0.97 → 1.0.98
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-BbWDcT04.js → index-0OKFqyqA.js} +35615 -33614
- package/dist/{index-XP0bVDnU.js → index-B0fldwhm.js} +35 -26
- package/dist/{index-Dx-h4mWh.js → index-BXwXXNfl.js} +1 -1
- package/dist/index-C78PiK5v.js +20 -0
- package/dist/{index-BJXeqFJS.js → index-CEyxiSoM.js} +1 -1
- package/dist/{index-DeE43ND3.js → index-CQvNmHQa.js} +1 -1
- package/dist/{index-D8bMmfww.js → index-CdB8JKr-.js} +1 -1
- package/dist/index-D0pFRR74.js +116 -0
- package/dist/{index-DczZx0GR.js → index-DM4OJNnU.js} +1 -1
- package/dist/index-DQ3y00Pa.js +65 -0
- package/dist/index-Dag4zSq7.js +88 -0
- package/dist/{index-Dfv9seN-.js → index-DlMUo-gx.js} +261 -164
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +166 -161
- package/package.json +2 -1
- package/dist/index-BVfC-7wG.js +0 -79
@@ -1,5 +1,5 @@
|
|
1
|
-
import { resolveComponent as p, openBlock as w, createElementBlock as
|
2
|
-
const
|
1
|
+
import { resolveComponent as p, openBlock as w, createElementBlock as g, Fragment as V, createVNode as e, withCtx as d, unref as t } from "vue";
|
2
|
+
const _ = /* @__PURE__ */ Object.assign({ name: "config-rate" }, {
|
3
3
|
__name: "index",
|
4
4
|
props: {
|
5
5
|
designer: {
|
@@ -11,27 +11,27 @@ const c = /* @__PURE__ */ Object.assign({ name: "config-rate" }, {
|
|
11
11
|
default: {}
|
12
12
|
}
|
13
13
|
},
|
14
|
-
setup(
|
15
|
-
let l =
|
16
|
-
return (
|
17
|
-
const
|
18
|
-
return w(),
|
19
|
-
e(
|
20
|
-
default:
|
21
|
-
e(
|
14
|
+
setup(s) {
|
15
|
+
let l = s;
|
16
|
+
return (b, o) => {
|
17
|
+
const r = p("el-option"), m = p("el-select"), n = p("common-label-container"), i = p("el-input-number"), u = p("el-switch");
|
18
|
+
return w(), g(V, null, [
|
19
|
+
e(n, { label: "组件尺寸" }, {
|
20
|
+
default: d(() => [
|
21
|
+
e(m, {
|
22
22
|
modelValue: t(l).widget.props.size,
|
23
23
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t(l).widget.props.size = a)
|
24
24
|
}, {
|
25
|
-
default:
|
26
|
-
e(
|
25
|
+
default: d(() => [
|
26
|
+
e(r, {
|
27
27
|
label: "大尺寸",
|
28
28
|
value: "large"
|
29
29
|
}),
|
30
|
-
e(
|
30
|
+
e(r, {
|
31
31
|
label: "默认",
|
32
32
|
value: "default"
|
33
33
|
}),
|
34
|
-
e(
|
34
|
+
e(r, {
|
35
35
|
label: "小尺寸",
|
36
36
|
value: "small"
|
37
37
|
})
|
@@ -41,8 +41,8 @@ const c = /* @__PURE__ */ Object.assign({ name: "config-rate" }, {
|
|
41
41
|
]),
|
42
42
|
_: 1
|
43
43
|
}),
|
44
|
-
e(
|
45
|
-
default:
|
44
|
+
e(n, { label: "最大分值" }, {
|
45
|
+
default: d(() => [
|
46
46
|
e(i, {
|
47
47
|
class: "w-full",
|
48
48
|
placeholder: "填写最大输入长度",
|
@@ -54,37 +54,46 @@ const c = /* @__PURE__ */ Object.assign({ name: "config-rate" }, {
|
|
54
54
|
]),
|
55
55
|
_: 1
|
56
56
|
}),
|
57
|
-
e(
|
58
|
-
default:
|
59
|
-
e(
|
57
|
+
e(n, { label: "是否禁用" }, {
|
58
|
+
default: d(() => [
|
59
|
+
e(u, {
|
60
60
|
modelValue: t(l).widget.props.disabled,
|
61
61
|
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).widget.props.disabled = a)
|
62
62
|
}, null, 8, ["modelValue"])
|
63
63
|
]),
|
64
64
|
_: 1
|
65
65
|
}),
|
66
|
-
e(
|
67
|
-
default:
|
68
|
-
e(
|
66
|
+
e(n, { label: "是否可半选" }, {
|
67
|
+
default: d(() => [
|
68
|
+
e(u, {
|
69
69
|
modelValue: t(l).widget.props.allowHalf,
|
70
70
|
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).widget.props.allowHalf = a)
|
71
71
|
}, null, 8, ["modelValue"])
|
72
72
|
]),
|
73
73
|
_: 1
|
74
74
|
}),
|
75
|
-
e(
|
76
|
-
default:
|
77
|
-
e(
|
75
|
+
e(n, { label: "是否显示分数" }, {
|
76
|
+
default: d(() => [
|
77
|
+
e(u, {
|
78
78
|
modelValue: t(l).widget.props.showScore,
|
79
79
|
"onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).widget.props.showScore = a)
|
80
80
|
}, null, 8, ["modelValue"])
|
81
81
|
]),
|
82
82
|
_: 1
|
83
|
+
}),
|
84
|
+
e(n, { label: "是否必填" }, {
|
85
|
+
default: d(() => [
|
86
|
+
e(u, {
|
87
|
+
modelValue: t(l).widget.props.required,
|
88
|
+
"onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).widget.props.required = a)
|
89
|
+
}, null, 8, ["modelValue"])
|
90
|
+
]),
|
91
|
+
_: 1
|
83
92
|
})
|
84
93
|
], 64);
|
85
94
|
};
|
86
95
|
}
|
87
96
|
});
|
88
97
|
export {
|
89
|
-
|
98
|
+
_ as default
|
90
99
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as E } from "./index-
|
2
|
+
import { _ as E } from "./index-0OKFqyqA.js";
|
3
3
|
const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import "vue";
|
2
|
+
const c = /* @__PURE__ */ Object.assign({ name: "config-title" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(e) {
|
15
|
+
return (t, n) => null;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
export {
|
19
|
+
c as default
|
20
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as y, resolveComponent as i, openBlock as h, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as E, c as H } from "./index-
|
2
|
+
import { _ as E, c as H } from "./index-0OKFqyqA.js";
|
3
3
|
const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
2
|
-
import { e as E, i as M } from "./index-
|
2
|
+
import { e as E, i as M } from "./index-0OKFqyqA.js";
|
3
3
|
const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
4
4
|
__name: "chartChoose",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
2
|
-
import { c } from "./index-
|
2
|
+
import { c } from "./index-0OKFqyqA.js";
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
4
4
|
__name: "index",
|
5
5
|
props: {
|
@@ -0,0 +1,116 @@
|
|
1
|
+
import { resolveComponent as n, openBlock as V, createElementBlock as b, Fragment as g, createVNode as e, withCtx as p, unref as t } from "vue";
|
2
|
+
const _ = /* @__PURE__ */ Object.assign({ name: "config-cascader" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(m) {
|
15
|
+
let l = m;
|
16
|
+
return (w, o) => {
|
17
|
+
const r = n("el-option"), i = n("el-select"), a = n("common-label-container"), s = n("el-input"), u = n("el-switch");
|
18
|
+
return V(), b(g, null, [
|
19
|
+
e(a, { label: "组件尺寸" }, {
|
20
|
+
default: p(() => [
|
21
|
+
e(i, {
|
22
|
+
modelValue: t(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.size = d)
|
24
|
+
}, {
|
25
|
+
default: p(() => [
|
26
|
+
e(r, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(r, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(r, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(a, { label: "数据源真实值" }, {
|
45
|
+
default: p(() => [
|
46
|
+
e(s, {
|
47
|
+
modelValue: t(l).widget.props.propsKey,
|
48
|
+
"onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.propsKey = d),
|
49
|
+
placeholder: "填写数据源真实值"
|
50
|
+
}, null, 8, ["modelValue"])
|
51
|
+
]),
|
52
|
+
_: 1
|
53
|
+
}),
|
54
|
+
e(a, { label: "数据源显示值" }, {
|
55
|
+
default: p(() => [
|
56
|
+
e(s, {
|
57
|
+
modelValue: t(l).widget.props.propsLabel,
|
58
|
+
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.propsLabel = d),
|
59
|
+
placeholder: "填写数据源显示值"
|
60
|
+
}, null, 8, ["modelValue"])
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
}),
|
64
|
+
e(a, { label: "数据源子级" }, {
|
65
|
+
default: p(() => [
|
66
|
+
e(s, {
|
67
|
+
modelValue: t(l).widget.props.propsChildren,
|
68
|
+
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.propsChildren = d),
|
69
|
+
placeholder: "填写数据源子级"
|
70
|
+
}, null, 8, ["modelValue"])
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
}),
|
74
|
+
e(a, { label: "是否必填" }, {
|
75
|
+
default: p(() => [
|
76
|
+
e(u, {
|
77
|
+
modelValue: t(l).widget.props.required,
|
78
|
+
"onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.required = d)
|
79
|
+
}, null, 8, ["modelValue"])
|
80
|
+
]),
|
81
|
+
_: 1
|
82
|
+
}),
|
83
|
+
e(a, { label: "是否禁用" }, {
|
84
|
+
default: p(() => [
|
85
|
+
e(u, {
|
86
|
+
modelValue: t(l).widget.props.disabled,
|
87
|
+
"onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.disabled = d)
|
88
|
+
}, null, 8, ["modelValue"])
|
89
|
+
]),
|
90
|
+
_: 1
|
91
|
+
}),
|
92
|
+
e(a, { label: "显示全部级" }, {
|
93
|
+
default: p(() => [
|
94
|
+
e(u, {
|
95
|
+
modelValue: t(l).widget.props.showAllLevels,
|
96
|
+
"onUpdate:modelValue": o[6] || (o[6] = (d) => t(l).widget.props.showAllLevels = d)
|
97
|
+
}, null, 8, ["modelValue"])
|
98
|
+
]),
|
99
|
+
_: 1
|
100
|
+
}),
|
101
|
+
e(a, { label: "是否可清除" }, {
|
102
|
+
default: p(() => [
|
103
|
+
e(u, {
|
104
|
+
modelValue: t(l).widget.props.clearable,
|
105
|
+
"onUpdate:modelValue": o[7] || (o[7] = (d) => t(l).widget.props.clearable = d)
|
106
|
+
}, null, 8, ["modelValue"])
|
107
|
+
]),
|
108
|
+
_: 1
|
109
|
+
})
|
110
|
+
], 64);
|
111
|
+
};
|
112
|
+
}
|
113
|
+
});
|
114
|
+
export {
|
115
|
+
_ as default
|
116
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { computed as N, ref as h, resolveComponent as u, openBlock as C, createElementBlock as U, Fragment as k, createVNode as e, withCtx as l, createTextVNode as g, unref as d, isRef as j, createElementVNode as c, pushScopeId as I, popScopeId as J } from "vue";
|
2
|
-
import { _ as T } from "./index-
|
2
|
+
import { _ as T } from "./index-0OKFqyqA.js";
|
3
3
|
const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(() => /* @__PURE__ */ c("span", null, "数据配置", -1)), B = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { resolveComponent as r, openBlock as i, createElementBlock as m, Fragment as s, createVNode as o, withCtx as d, unref as t } from "vue";
|
2
|
+
const V = /* @__PURE__ */ Object.assign({ name: "config-transfer" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(u) {
|
15
|
+
let e = u;
|
16
|
+
return (g, l) => {
|
17
|
+
const n = r("el-input"), a = r("common-label-container");
|
18
|
+
return i(), m(s, null, [
|
19
|
+
o(a, { label: "左侧标题" }, {
|
20
|
+
default: d(() => [
|
21
|
+
o(n, {
|
22
|
+
modelValue: t(e).widget.props.leftTitle,
|
23
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => t(e).widget.props.leftTitle = p),
|
24
|
+
placeholder: "填写备选项"
|
25
|
+
}, null, 8, ["modelValue"])
|
26
|
+
]),
|
27
|
+
_: 1
|
28
|
+
}),
|
29
|
+
o(a, { label: "右侧标题" }, {
|
30
|
+
default: d(() => [
|
31
|
+
o(n, {
|
32
|
+
modelValue: t(e).widget.props.rightTitle,
|
33
|
+
"onUpdate:modelValue": l[1] || (l[1] = (p) => t(e).widget.props.rightTitle = p),
|
34
|
+
placeholder: "填写已选项"
|
35
|
+
}, null, 8, ["modelValue"])
|
36
|
+
]),
|
37
|
+
_: 1
|
38
|
+
}),
|
39
|
+
o(a, { label: "数据源真实值" }, {
|
40
|
+
default: d(() => [
|
41
|
+
o(n, {
|
42
|
+
modelValue: t(e).widget.props.propsKey,
|
43
|
+
"onUpdate:modelValue": l[2] || (l[2] = (p) => t(e).widget.props.propsKey = p),
|
44
|
+
placeholder: "填写数据源真实值"
|
45
|
+
}, null, 8, ["modelValue"])
|
46
|
+
]),
|
47
|
+
_: 1
|
48
|
+
}),
|
49
|
+
o(a, { label: "数据源显示值" }, {
|
50
|
+
default: d(() => [
|
51
|
+
o(n, {
|
52
|
+
modelValue: t(e).widget.props.propsLabel,
|
53
|
+
"onUpdate:modelValue": l[3] || (l[3] = (p) => t(e).widget.props.propsLabel = p),
|
54
|
+
placeholder: "填写数据源显示值"
|
55
|
+
}, null, 8, ["modelValue"])
|
56
|
+
]),
|
57
|
+
_: 1
|
58
|
+
})
|
59
|
+
], 64);
|
60
|
+
};
|
61
|
+
}
|
62
|
+
});
|
63
|
+
export {
|
64
|
+
V as default
|
65
|
+
};
|
@@ -0,0 +1,88 @@
|
|
1
|
+
import { resolveComponent as p, openBlock as c, createElementBlock as _, Fragment as g, createVNode as e, withCtx as n, unref as o } from "vue";
|
2
|
+
const w = /* @__PURE__ */ Object.assign({ name: "config-switch" }, {
|
3
|
+
__name: "index",
|
4
|
+
props: {
|
5
|
+
designer: {
|
6
|
+
type: Object,
|
7
|
+
default: {}
|
8
|
+
},
|
9
|
+
widget: {
|
10
|
+
type: Object,
|
11
|
+
default: {}
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(r) {
|
15
|
+
let l = r;
|
16
|
+
return (V, t) => {
|
17
|
+
const u = p("el-option"), m = p("el-select"), d = p("common-label-container"), i = p("el-input"), s = p("el-switch");
|
18
|
+
return c(), _(g, null, [
|
19
|
+
e(d, { label: "组件尺寸" }, {
|
20
|
+
default: n(() => [
|
21
|
+
e(m, {
|
22
|
+
modelValue: o(l).widget.props.size,
|
23
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => o(l).widget.props.size = a)
|
24
|
+
}, {
|
25
|
+
default: n(() => [
|
26
|
+
e(u, {
|
27
|
+
label: "大尺寸",
|
28
|
+
value: "large"
|
29
|
+
}),
|
30
|
+
e(u, {
|
31
|
+
label: "默认",
|
32
|
+
value: "default"
|
33
|
+
}),
|
34
|
+
e(u, {
|
35
|
+
label: "小尺寸",
|
36
|
+
value: "small"
|
37
|
+
})
|
38
|
+
]),
|
39
|
+
_: 1
|
40
|
+
}, 8, ["modelValue"])
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
e(d, { label: "打开文字" }, {
|
45
|
+
default: n(() => [
|
46
|
+
e(i, {
|
47
|
+
modelValue: o(l).widget.props.activeText,
|
48
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).widget.props.activeText = a),
|
49
|
+
placeholder: "填写打开文字"
|
50
|
+
}, null, 8, ["modelValue"])
|
51
|
+
]),
|
52
|
+
_: 1
|
53
|
+
}),
|
54
|
+
e(d, { label: "关闭文字" }, {
|
55
|
+
default: n(() => [
|
56
|
+
e(i, {
|
57
|
+
modelValue: o(l).widget.props.inactiveText,
|
58
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).widget.props.inactiveText = a),
|
59
|
+
placeholder: "填写关闭文字"
|
60
|
+
}, null, 8, ["modelValue"])
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
}),
|
64
|
+
e(d, { label: "是否禁用" }, {
|
65
|
+
default: n(() => [
|
66
|
+
e(s, {
|
67
|
+
modelValue: o(l).widget.props.disabled,
|
68
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).widget.props.disabled = a)
|
69
|
+
}, null, 8, ["modelValue"])
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
}),
|
73
|
+
e(d, { label: "是否必填" }, {
|
74
|
+
default: n(() => [
|
75
|
+
e(s, {
|
76
|
+
modelValue: o(l).widget.props.required,
|
77
|
+
"onUpdate:modelValue": t[4] || (t[4] = (a) => o(l).widget.props.required = a)
|
78
|
+
}, null, 8, ["modelValue"])
|
79
|
+
]),
|
80
|
+
_: 1
|
81
|
+
})
|
82
|
+
], 64);
|
83
|
+
};
|
84
|
+
}
|
85
|
+
});
|
86
|
+
export {
|
87
|
+
w as default
|
88
|
+
};
|