wyfe-ivue 1.10.2 → 1.11.1
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/README.md +1 -7
- package/dist/Span-Cn7dnhMl.js +4 -0
- package/dist/index-CF1PT-sY.js +25032 -0
- package/dist/index.es.js +12 -11
- package/dist/index.umd.cjs +12 -12
- package/dist/types/index.d.ts +110 -94
- package/dist/wyfe-ivue.css +1 -1
- package/package.json +1 -1
- package/dist/InlineForm-BiphoofJ.js +0 -145
- package/dist/RecTableColumn-J-xLdXoU.js +0 -76
- package/dist/RowForm-BNa5kzCQ.js +0 -1341
- package/dist/Selection-BQCcu1rk.js +0 -54
- package/dist/Span-BJZWtug_.js +0 -31
- package/dist/el-radio-DT8UWAxJ.js +0 -283
- package/dist/index-DK-WvFCk.js +0 -14630
- package/dist/useFormHook-RleRuGSi.js +0 -8616
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { b6 as r } from "./index-DK-WvFCk.js";
|
|
2
|
-
import { a as s } from "./el-radio-DT8UWAxJ.js";
|
|
3
|
-
import { defineComponent as b, computed as x, createBlock as o, openBlock as a, withCtx as V, createVNode as w } from "vue";
|
|
4
|
-
const p = /* @__PURE__ */ b({
|
|
5
|
-
__name: "Selection",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: String,
|
|
9
|
-
required: !0
|
|
10
|
-
},
|
|
11
|
-
config: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default: () => ({})
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
emits: ["update:modelValue"],
|
|
17
|
-
setup(e, { emit: d }) {
|
|
18
|
-
const c = e, u = d, l = x({
|
|
19
|
-
get: () => c.modelValue,
|
|
20
|
-
set: (t) => {
|
|
21
|
-
u("update:modelValue", t);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return (t, i) => {
|
|
25
|
-
const f = s, n = r;
|
|
26
|
-
return e.config?.type === "RADIO" ? (a(), o(n, {
|
|
27
|
-
key: 0,
|
|
28
|
-
label: e.config?.label,
|
|
29
|
-
width: e.config?.width,
|
|
30
|
-
align: e.config?.align,
|
|
31
|
-
fixed: e.config?.fixed
|
|
32
|
-
}, {
|
|
33
|
-
default: V(({ row: m }) => [
|
|
34
|
-
w(f, {
|
|
35
|
-
modelValue: l.value,
|
|
36
|
-
"onUpdate:modelValue": i[0] || (i[0] = (g) => l.value = g),
|
|
37
|
-
value: JSON.stringify(m)
|
|
38
|
-
}, null, 8, ["modelValue", "value"])
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
}, 8, ["label", "width", "align", "fixed"])) : (a(), o(n, {
|
|
42
|
-
key: 1,
|
|
43
|
-
type: "selection",
|
|
44
|
-
selectable: e.config?.selectable,
|
|
45
|
-
width: e.config?.width,
|
|
46
|
-
align: e.config?.align,
|
|
47
|
-
fixed: e.config?.fixed
|
|
48
|
-
}, null, 8, ["selectable", "width", "align", "fixed"]));
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
export {
|
|
53
|
-
p as default
|
|
54
|
-
};
|
package/dist/Span-BJZWtug_.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, computed as a, createElementBlock as s, openBlock as l, normalizeStyle as p, normalizeClass as n, toDisplayString as c } from "vue";
|
|
2
|
-
import { b9 as i } from "./index-DK-WvFCk.js";
|
|
3
|
-
const b = /* @__PURE__ */ o({
|
|
4
|
-
__name: "Span",
|
|
5
|
-
props: {
|
|
6
|
-
row: {
|
|
7
|
-
type: Object,
|
|
8
|
-
required: !0
|
|
9
|
-
},
|
|
10
|
-
item: {
|
|
11
|
-
type: Object,
|
|
12
|
-
required: !0
|
|
13
|
-
},
|
|
14
|
-
tableProps: {
|
|
15
|
-
type: Object,
|
|
16
|
-
required: !0
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
setup(r) {
|
|
20
|
-
const e = r, t = a(
|
|
21
|
-
() => i(e.row, e.item, e.tableProps)
|
|
22
|
-
);
|
|
23
|
-
return (u, m) => (l(), s("span", {
|
|
24
|
-
class: n(t.value.class),
|
|
25
|
-
style: p(t.value.style)
|
|
26
|
-
}, c(t.value.data), 7));
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
b as default
|
|
31
|
-
};
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { ref as C, inject as ae, computed as c, defineComponent as h, createElementBlock as V, openBlock as B, normalizeClass as f, unref as e, createElementVNode as _, withDirectives as K, withModifiers as k, isRef as L, vModelRadio as T, renderSlot as I, createTextVNode as x, toDisplayString as M, nextTick as O, normalizeStyle as oe, onMounted as le, provide as te, reactive as ne, toRefs as se, watch as re, Fragment as ie, renderList as de, createBlock as ue, resolveDynamicComponent as ce, mergeProps as pe } from "vue";
|
|
2
|
-
import { J as z, h as F, M as D, f as R, C as P, U as G, q, ac as A, x as ve, y as me, b7 as be, _ as N, u as $, p as fe, g as U, a9 as ye, r as ge, O as _e, ad as he, v as Ee, b8 as Be, aP as j, w as Se } from "./index-DK-WvFCk.js";
|
|
3
|
-
const H = R({
|
|
4
|
-
modelValue: {
|
|
5
|
-
type: [String, Number, Boolean],
|
|
6
|
-
default: void 0
|
|
7
|
-
},
|
|
8
|
-
size: q,
|
|
9
|
-
disabled: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: void 0
|
|
12
|
-
},
|
|
13
|
-
label: {
|
|
14
|
-
type: [String, Number, Boolean],
|
|
15
|
-
default: void 0
|
|
16
|
-
},
|
|
17
|
-
value: {
|
|
18
|
-
type: [String, Number, Boolean],
|
|
19
|
-
default: void 0
|
|
20
|
-
},
|
|
21
|
-
name: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: void 0
|
|
24
|
-
}
|
|
25
|
-
}), Ve = R({
|
|
26
|
-
...H,
|
|
27
|
-
border: Boolean
|
|
28
|
-
}), J = {
|
|
29
|
-
[G]: (l) => z(l) || F(l) || D(l),
|
|
30
|
-
[P]: (l) => z(l) || F(l) || D(l)
|
|
31
|
-
}, W = /* @__PURE__ */ Symbol("radioGroupKey"), Q = (l, p) => {
|
|
32
|
-
const t = C(), a = ae(W, void 0), i = c(() => !!a), v = c(() => A(l.value) ? l.label : l.value), r = c({
|
|
33
|
-
get() {
|
|
34
|
-
return i.value ? a.modelValue : l.modelValue;
|
|
35
|
-
},
|
|
36
|
-
set(b) {
|
|
37
|
-
i.value ? a.changeEvent(b) : p && p(G, b), t.value.checked = l.modelValue === v.value;
|
|
38
|
-
}
|
|
39
|
-
}), u = ve(c(() => a?.size)), n = me(c(() => a?.disabled)), s = C(!1), m = c(() => n.value || i.value && r.value !== v.value ? -1 : 0);
|
|
40
|
-
return be({
|
|
41
|
-
from: "label act as value",
|
|
42
|
-
replacement: "value",
|
|
43
|
-
version: "3.0.0",
|
|
44
|
-
scope: "el-radio",
|
|
45
|
-
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
46
|
-
}, c(() => i.value && A(l.value))), {
|
|
47
|
-
radioRef: t,
|
|
48
|
-
isGroup: i,
|
|
49
|
-
radioGroup: a,
|
|
50
|
-
focus: s,
|
|
51
|
-
size: u,
|
|
52
|
-
disabled: n,
|
|
53
|
-
tabIndex: m,
|
|
54
|
-
modelValue: r,
|
|
55
|
-
actualValue: v
|
|
56
|
-
};
|
|
57
|
-
}, ke = h({
|
|
58
|
-
name: "ElRadio"
|
|
59
|
-
}), Re = /* @__PURE__ */ h({
|
|
60
|
-
...ke,
|
|
61
|
-
props: Ve,
|
|
62
|
-
emits: J,
|
|
63
|
-
setup(l, { emit: p }) {
|
|
64
|
-
const t = l, a = $("radio"), { radioRef: i, radioGroup: v, focus: r, size: u, disabled: n, modelValue: s, actualValue: m } = Q(t, p);
|
|
65
|
-
function b() {
|
|
66
|
-
O(() => p(P, s.value));
|
|
67
|
-
}
|
|
68
|
-
return (g, E) => {
|
|
69
|
-
var o;
|
|
70
|
-
return B(), V("label", {
|
|
71
|
-
class: f([
|
|
72
|
-
e(a).b(),
|
|
73
|
-
e(a).is("disabled", e(n)),
|
|
74
|
-
e(a).is("focus", e(r)),
|
|
75
|
-
e(a).is("bordered", g.border),
|
|
76
|
-
e(a).is("checked", e(s) === e(m)),
|
|
77
|
-
e(a).m(e(u))
|
|
78
|
-
])
|
|
79
|
-
}, [
|
|
80
|
-
_("span", {
|
|
81
|
-
class: f([
|
|
82
|
-
e(a).e("input"),
|
|
83
|
-
e(a).is("disabled", e(n)),
|
|
84
|
-
e(a).is("checked", e(s) === e(m))
|
|
85
|
-
])
|
|
86
|
-
}, [
|
|
87
|
-
K(_("input", {
|
|
88
|
-
ref_key: "radioRef",
|
|
89
|
-
ref: i,
|
|
90
|
-
"onUpdate:modelValue": (d) => L(s) ? s.value = d : null,
|
|
91
|
-
class: f(e(a).e("original")),
|
|
92
|
-
value: e(m),
|
|
93
|
-
name: g.name || ((o = e(v)) == null ? void 0 : o.name),
|
|
94
|
-
disabled: e(n),
|
|
95
|
-
checked: e(s) === e(m),
|
|
96
|
-
type: "radio",
|
|
97
|
-
onFocus: (d) => r.value = !0,
|
|
98
|
-
onBlur: (d) => r.value = !1,
|
|
99
|
-
onChange: b,
|
|
100
|
-
onClick: k(() => {
|
|
101
|
-
}, ["stop"])
|
|
102
|
-
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
103
|
-
[T, e(s)]
|
|
104
|
-
]),
|
|
105
|
-
_("span", {
|
|
106
|
-
class: f(e(a).e("inner"))
|
|
107
|
-
}, null, 2)
|
|
108
|
-
], 2),
|
|
109
|
-
_("span", {
|
|
110
|
-
class: f(e(a).e("label")),
|
|
111
|
-
onKeydown: k(() => {
|
|
112
|
-
}, ["stop"])
|
|
113
|
-
}, [
|
|
114
|
-
I(g.$slots, "default", {}, () => [
|
|
115
|
-
x(M(g.label), 1)
|
|
116
|
-
])
|
|
117
|
-
], 42, ["onKeydown"])
|
|
118
|
-
], 2);
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
var X = /* @__PURE__ */ N(Re, [["__file", "radio.vue"]]);
|
|
123
|
-
const Ce = R({
|
|
124
|
-
...H
|
|
125
|
-
}), Ie = h({
|
|
126
|
-
name: "ElRadioButton"
|
|
127
|
-
}), Pe = /* @__PURE__ */ h({
|
|
128
|
-
...Ie,
|
|
129
|
-
props: Ce,
|
|
130
|
-
setup(l) {
|
|
131
|
-
const p = l, t = $("radio"), { radioRef: a, focus: i, size: v, disabled: r, modelValue: u, radioGroup: n, actualValue: s } = Q(p), m = c(() => ({
|
|
132
|
-
backgroundColor: n?.fill || "",
|
|
133
|
-
borderColor: n?.fill || "",
|
|
134
|
-
boxShadow: n?.fill ? `-1px 0 0 0 ${n.fill}` : "",
|
|
135
|
-
color: n?.textColor || ""
|
|
136
|
-
}));
|
|
137
|
-
return (b, g) => {
|
|
138
|
-
var E;
|
|
139
|
-
return B(), V("label", {
|
|
140
|
-
class: f([
|
|
141
|
-
e(t).b("button"),
|
|
142
|
-
e(t).is("active", e(u) === e(s)),
|
|
143
|
-
e(t).is("disabled", e(r)),
|
|
144
|
-
e(t).is("focus", e(i)),
|
|
145
|
-
e(t).bm("button", e(v))
|
|
146
|
-
])
|
|
147
|
-
}, [
|
|
148
|
-
K(_("input", {
|
|
149
|
-
ref_key: "radioRef",
|
|
150
|
-
ref: a,
|
|
151
|
-
"onUpdate:modelValue": (o) => L(u) ? u.value = o : null,
|
|
152
|
-
class: f(e(t).be("button", "original-radio")),
|
|
153
|
-
value: e(s),
|
|
154
|
-
type: "radio",
|
|
155
|
-
name: b.name || ((E = e(n)) == null ? void 0 : E.name),
|
|
156
|
-
disabled: e(r),
|
|
157
|
-
onFocus: (o) => i.value = !0,
|
|
158
|
-
onBlur: (o) => i.value = !1,
|
|
159
|
-
onClick: k(() => {
|
|
160
|
-
}, ["stop"])
|
|
161
|
-
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
162
|
-
[T, e(u)]
|
|
163
|
-
]),
|
|
164
|
-
_("span", {
|
|
165
|
-
class: f(e(t).be("button", "inner")),
|
|
166
|
-
style: oe(e(u) === e(s) ? e(m) : {}),
|
|
167
|
-
onKeydown: k(() => {
|
|
168
|
-
}, ["stop"])
|
|
169
|
-
}, [
|
|
170
|
-
I(b.$slots, "default", {}, () => [
|
|
171
|
-
x(M(b.label), 1)
|
|
172
|
-
])
|
|
173
|
-
], 46, ["onKeydown"])
|
|
174
|
-
], 2);
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
var w = /* @__PURE__ */ N(Pe, [["__file", "radio-button.vue"]]);
|
|
179
|
-
const Ge = R({
|
|
180
|
-
id: {
|
|
181
|
-
type: String,
|
|
182
|
-
default: void 0
|
|
183
|
-
},
|
|
184
|
-
size: q,
|
|
185
|
-
disabled: {
|
|
186
|
-
type: Boolean,
|
|
187
|
-
default: void 0
|
|
188
|
-
},
|
|
189
|
-
modelValue: {
|
|
190
|
-
type: [String, Number, Boolean],
|
|
191
|
-
default: void 0
|
|
192
|
-
},
|
|
193
|
-
fill: {
|
|
194
|
-
type: String,
|
|
195
|
-
default: ""
|
|
196
|
-
},
|
|
197
|
-
textColor: {
|
|
198
|
-
type: String,
|
|
199
|
-
default: ""
|
|
200
|
-
},
|
|
201
|
-
name: {
|
|
202
|
-
type: String,
|
|
203
|
-
default: void 0
|
|
204
|
-
},
|
|
205
|
-
validateEvent: {
|
|
206
|
-
type: Boolean,
|
|
207
|
-
default: !0
|
|
208
|
-
},
|
|
209
|
-
options: {
|
|
210
|
-
type: U(Array)
|
|
211
|
-
},
|
|
212
|
-
props: {
|
|
213
|
-
type: U(Object),
|
|
214
|
-
default: () => Y
|
|
215
|
-
},
|
|
216
|
-
type: {
|
|
217
|
-
type: String,
|
|
218
|
-
values: ["radio", "button"],
|
|
219
|
-
default: "radio"
|
|
220
|
-
},
|
|
221
|
-
...fe(["ariaLabel"])
|
|
222
|
-
}), Ne = J, Y = {
|
|
223
|
-
label: "label",
|
|
224
|
-
value: "value",
|
|
225
|
-
disabled: "disabled"
|
|
226
|
-
}, $e = h({
|
|
227
|
-
name: "ElRadioGroup"
|
|
228
|
-
}), we = /* @__PURE__ */ h({
|
|
229
|
-
...$e,
|
|
230
|
-
props: Ge,
|
|
231
|
-
emits: Ne,
|
|
232
|
-
setup(l, { emit: p }) {
|
|
233
|
-
const t = l, a = $("radio"), i = ye(), v = C(), { formItem: r } = ge(), { inputId: u, isLabeledByFormItem: n } = _e(t, {
|
|
234
|
-
formItemContext: r
|
|
235
|
-
}), s = (o) => {
|
|
236
|
-
p(G, o), O(() => p(P, o));
|
|
237
|
-
};
|
|
238
|
-
le(() => {
|
|
239
|
-
const o = v.value.querySelectorAll("[type=radio]"), d = o[0];
|
|
240
|
-
!Array.from(o).some((y) => y.checked) && d && (d.tabIndex = 0);
|
|
241
|
-
});
|
|
242
|
-
const m = c(() => t.name || i.value), b = c(() => ({
|
|
243
|
-
...Y,
|
|
244
|
-
...t.props
|
|
245
|
-
})), g = (o) => {
|
|
246
|
-
const { label: d, value: y, disabled: S } = b.value, ee = {
|
|
247
|
-
label: o[d],
|
|
248
|
-
value: o[y],
|
|
249
|
-
disabled: o[S]
|
|
250
|
-
};
|
|
251
|
-
return { ...Be(o, [d, y, S]), ...ee };
|
|
252
|
-
}, E = c(() => t.type === "button" ? w : X);
|
|
253
|
-
return te(W, ne({
|
|
254
|
-
...se(t),
|
|
255
|
-
changeEvent: s,
|
|
256
|
-
name: m
|
|
257
|
-
})), re(() => t.modelValue, (o, d) => {
|
|
258
|
-
t.validateEvent && !he(o, d) && r?.validate("change").catch((y) => Ee(y));
|
|
259
|
-
}), (o, d) => (B(), V("div", {
|
|
260
|
-
id: e(u),
|
|
261
|
-
ref_key: "radioGroupRef",
|
|
262
|
-
ref: v,
|
|
263
|
-
class: f(e(a).b("group")),
|
|
264
|
-
role: "radiogroup",
|
|
265
|
-
"aria-label": e(n) ? void 0 : o.ariaLabel || "radio-group",
|
|
266
|
-
"aria-labelledby": e(n) ? e(r).labelId : void 0
|
|
267
|
-
}, [
|
|
268
|
-
I(o.$slots, "default", {}, () => [
|
|
269
|
-
(B(!0), V(ie, null, de(o.options, (y, S) => (B(), ue(ce(e(E)), pe({ key: S }, g(y)), null, 16))), 128))
|
|
270
|
-
])
|
|
271
|
-
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
var Z = /* @__PURE__ */ N(we, [["__file", "radio-group.vue"]]);
|
|
275
|
-
const De = Se(X, {
|
|
276
|
-
RadioButton: w,
|
|
277
|
-
RadioGroup: Z
|
|
278
|
-
}), Ae = j(Z);
|
|
279
|
-
j(w);
|
|
280
|
-
export {
|
|
281
|
-
Ae as E,
|
|
282
|
-
De as a
|
|
283
|
-
};
|