sun-form-v3 1.0.125 → 1.0.127
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index-BZzszUdw.js +151 -0
- package/dist/{index-CUfTg3I4.js → index-Bso_TcY1.js} +1267 -1253
- package/dist/{index-CrH8jZYG.js → index-CV4rr20N.js} +1 -1
- package/dist/{index-Vf7yIUi-.js → index-CeRoldDl.js} +1 -1
- package/dist/{index-q_kEEHXZ.js → index-CjYNJYIl.js} +1 -1
- package/dist/{index-C5cxJjmq.js → index-Da-wnXwd.js} +1 -1
- package/dist/{index-C-yx7X4z.js → index-DlO84j5c.js} +1 -1
- package/dist/{index-CgMGjP5o.js → index-DmAkABDD.js} +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +3 -3
- package/package.json +1 -1
- package/dist/index-BTVP3Lpa.js +0 -134
@@ -0,0 +1,151 @@
|
|
1
|
+
import { resolveComponent as s, openBlock as b, createElementBlock as f, Fragment as _, createVNode as l, withCtx as d, unref as t } from "vue";
|
2
|
+
const L = /* @__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(g) {
|
15
|
+
let e = g;
|
16
|
+
const V = (u) => {
|
17
|
+
e.widget.props.postLastLevel = !u, e.widget.props.checkStrictly = !u;
|
18
|
+
}, m = (u) => {
|
19
|
+
u && (e.widget.props.multiple = !1);
|
20
|
+
};
|
21
|
+
return (u, o) => {
|
22
|
+
const r = s("el-option"), w = s("el-select"), a = s("common-label-container"), i = s("el-input"), n = s("el-switch");
|
23
|
+
return b(), f(_, null, [
|
24
|
+
l(a, { label: "组件尺寸" }, {
|
25
|
+
default: d(() => [
|
26
|
+
l(w, {
|
27
|
+
modelValue: t(e).widget.props.size,
|
28
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => t(e).widget.props.size = p)
|
29
|
+
}, {
|
30
|
+
default: d(() => [
|
31
|
+
l(r, {
|
32
|
+
label: "大尺寸",
|
33
|
+
value: "large"
|
34
|
+
}),
|
35
|
+
l(r, {
|
36
|
+
label: "默认",
|
37
|
+
value: "default"
|
38
|
+
}),
|
39
|
+
l(r, {
|
40
|
+
label: "小尺寸",
|
41
|
+
value: "small"
|
42
|
+
})
|
43
|
+
]),
|
44
|
+
_: 1
|
45
|
+
}, 8, ["modelValue"])
|
46
|
+
]),
|
47
|
+
_: 1
|
48
|
+
}),
|
49
|
+
l(a, { label: "数据源真实值" }, {
|
50
|
+
default: d(() => [
|
51
|
+
l(i, {
|
52
|
+
modelValue: t(e).widget.props.propsKey,
|
53
|
+
"onUpdate:modelValue": o[1] || (o[1] = (p) => t(e).widget.props.propsKey = p),
|
54
|
+
placeholder: "填写数据源真实值"
|
55
|
+
}, null, 8, ["modelValue"])
|
56
|
+
]),
|
57
|
+
_: 1
|
58
|
+
}),
|
59
|
+
l(a, { label: "数据源显示值" }, {
|
60
|
+
default: d(() => [
|
61
|
+
l(i, {
|
62
|
+
modelValue: t(e).widget.props.propsLabel,
|
63
|
+
"onUpdate:modelValue": o[2] || (o[2] = (p) => t(e).widget.props.propsLabel = p),
|
64
|
+
placeholder: "填写数据源显示值"
|
65
|
+
}, null, 8, ["modelValue"])
|
66
|
+
]),
|
67
|
+
_: 1
|
68
|
+
}),
|
69
|
+
l(a, { label: "数据源子级" }, {
|
70
|
+
default: d(() => [
|
71
|
+
l(i, {
|
72
|
+
modelValue: t(e).widget.props.propsChildren,
|
73
|
+
"onUpdate:modelValue": o[3] || (o[3] = (p) => t(e).widget.props.propsChildren = p),
|
74
|
+
placeholder: "填写数据源子级"
|
75
|
+
}, null, 8, ["modelValue"])
|
76
|
+
]),
|
77
|
+
_: 1
|
78
|
+
}),
|
79
|
+
l(a, { label: "是否必填" }, {
|
80
|
+
default: d(() => [
|
81
|
+
l(n, {
|
82
|
+
modelValue: t(e).widget.props.required,
|
83
|
+
"onUpdate:modelValue": o[4] || (o[4] = (p) => t(e).widget.props.required = p)
|
84
|
+
}, null, 8, ["modelValue"])
|
85
|
+
]),
|
86
|
+
_: 1
|
87
|
+
}),
|
88
|
+
l(a, { label: "是否禁用" }, {
|
89
|
+
default: d(() => [
|
90
|
+
l(n, {
|
91
|
+
modelValue: t(e).widget.props.disabled,
|
92
|
+
"onUpdate:modelValue": o[5] || (o[5] = (p) => t(e).widget.props.disabled = p)
|
93
|
+
}, null, 8, ["modelValue"])
|
94
|
+
]),
|
95
|
+
_: 1
|
96
|
+
}),
|
97
|
+
l(a, { label: "显示全部级" }, {
|
98
|
+
default: d(() => [
|
99
|
+
l(n, {
|
100
|
+
modelValue: t(e).widget.props.showAllLevels,
|
101
|
+
"onUpdate:modelValue": o[6] || (o[6] = (p) => t(e).widget.props.showAllLevels = p)
|
102
|
+
}, null, 8, ["modelValue"])
|
103
|
+
]),
|
104
|
+
_: 1
|
105
|
+
}),
|
106
|
+
l(a, { label: "是否可清除" }, {
|
107
|
+
default: d(() => [
|
108
|
+
l(n, {
|
109
|
+
modelValue: t(e).widget.props.clearable,
|
110
|
+
"onUpdate:modelValue": o[7] || (o[7] = (p) => t(e).widget.props.clearable = p)
|
111
|
+
}, null, 8, ["modelValue"])
|
112
|
+
]),
|
113
|
+
_: 1
|
114
|
+
}),
|
115
|
+
l(a, { label: "是否只传末级" }, {
|
116
|
+
default: d(() => [
|
117
|
+
l(n, {
|
118
|
+
onChange: m,
|
119
|
+
modelValue: t(e).widget.props.postLastLevel,
|
120
|
+
"onUpdate:modelValue": o[8] || (o[8] = (p) => t(e).widget.props.postLastLevel = p)
|
121
|
+
}, null, 8, ["modelValue"])
|
122
|
+
]),
|
123
|
+
_: 1
|
124
|
+
}),
|
125
|
+
l(a, { label: "是否可选任一级" }, {
|
126
|
+
default: d(() => [
|
127
|
+
l(n, {
|
128
|
+
onChange: m,
|
129
|
+
modelValue: t(e).widget.props.checkStrictly,
|
130
|
+
"onUpdate:modelValue": o[9] || (o[9] = (p) => t(e).widget.props.checkStrictly = p)
|
131
|
+
}, null, 8, ["modelValue"])
|
132
|
+
]),
|
133
|
+
_: 1
|
134
|
+
}),
|
135
|
+
l(a, { label: "是否多选" }, {
|
136
|
+
default: d(() => [
|
137
|
+
l(n, {
|
138
|
+
onChange: V,
|
139
|
+
modelValue: t(e).widget.props.multiple,
|
140
|
+
"onUpdate:modelValue": o[10] || (o[10] = (p) => t(e).widget.props.multiple = p)
|
141
|
+
}, null, 8, ["modelValue"])
|
142
|
+
]),
|
143
|
+
_: 1
|
144
|
+
})
|
145
|
+
], 64);
|
146
|
+
};
|
147
|
+
}
|
148
|
+
});
|
149
|
+
export {
|
150
|
+
L as default
|
151
|
+
};
|