@web-utils/form-ui 1.0.0-beta18 → 1.0.0-beta19
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/chunks/{DkqF25wT.mjs → B3DY36vM.mjs} +1 -1
- package/chunks/{53gSZ624.mjs → B9-9iYg8.mjs} +2 -1
- package/chunks/{7Desvoh-.mjs → BAm_wcwz.mjs} +6 -2
- package/chunks/{7vQ29mMd.mjs → BSriw1Qr.mjs} +1 -1
- package/chunks/{DUDm42gn.mjs → Be_E_4G0.mjs} +16 -10
- package/chunks/{D2WviyxF.mjs → Bk3PtIYo.mjs} +6 -1
- package/chunks/{Bj5l6sFx.mjs → CJeq96R0.mjs} +1 -1
- package/chunks/CNtf2MHr.mjs +106 -0
- package/chunks/{BsbfEk0E.mjs → CPE8fqJc.mjs} +2 -2
- package/chunks/{DH1_fmkX.mjs → DAS1h_Ei.mjs} +2 -2
- package/chunks/{Bb5BT11-.mjs → D_Xobj10.mjs} +2 -2
- package/chunks/{CKw_uzPc.mjs → DgCwGit4.mjs} +1 -1
- package/chunks/nJ1-P9vh.mjs +189 -0
- package/constants.d.ts +10 -0
- package/constants.mjs +2 -2
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-config-provider/index.mjs +6 -6
- package/form-item-group/index.d.ts +91 -17
- package/form-item-group/index.mjs +2 -94
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +18 -4
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +2 -0
- package/form-text/index.mjs +1 -1
- package/index.mjs +16 -16
- package/package.json +1 -1
- package/web-types.json +1 -1
- package/chunks/DCKxvrCR.mjs +0 -189
- /package/chunks/{Q9EsFJ4H.mjs → B7fKv2-x.mjs} +0 -0
- /package/chunks/{CFwUzdTu.mjs → BJObhbQz.mjs} +0 -0
- /package/chunks/{B4LDPAZu.mjs → D7hrSVVl.mjs} +0 -0
- /package/chunks/{98bTmBOR.mjs → DdDv8RSI.mjs} +0 -0
|
@@ -1,94 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ElRow as n } from "element-plus/es";
|
|
4
|
-
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, inject as d, normalizeClass as f, onBeforeUnmount as p, onMounted as m, openBlock as h, provide as g, reactive as _, ref as v, renderSlot as y, toDisplayString as b, toRef as x, unref as S, vShow as C, watchEffect as w, withCtx as T, withDirectives as E } from "vue";
|
|
5
|
-
import { ElCollapseTransition as D } from "element-plus";
|
|
6
|
-
//#region src/components/form/FormItemGroup.vue
|
|
7
|
-
var O = {
|
|
8
|
-
class: "flex-item",
|
|
9
|
-
style: { flex: "1" }
|
|
10
|
-
}, k = { style: {
|
|
11
|
-
color: "#ff0000",
|
|
12
|
-
"font-size": "14px"
|
|
13
|
-
} }, A = /* @__PURE__ */ Object.assign({ name: "FormItemGroup" }, {
|
|
14
|
-
__name: "FormItemGroup",
|
|
15
|
-
props: {
|
|
16
|
-
blockTitle: String,
|
|
17
|
-
size: String,
|
|
18
|
-
tips: String,
|
|
19
|
-
active: Boolean,
|
|
20
|
-
enabled: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: void 0
|
|
23
|
-
},
|
|
24
|
-
disabled: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: void 0
|
|
27
|
-
},
|
|
28
|
-
wrapRow: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !0
|
|
31
|
-
},
|
|
32
|
-
gutter: {
|
|
33
|
-
type: Number,
|
|
34
|
-
default: 20
|
|
35
|
-
},
|
|
36
|
-
collapse: Boolean,
|
|
37
|
-
showTitle: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !0
|
|
40
|
-
},
|
|
41
|
-
notDispatch: Boolean
|
|
42
|
-
},
|
|
43
|
-
setup(A, { expose: j }) {
|
|
44
|
-
let M = A, N = d("formView", null), P = v(!0), F = x(() => M.enabled), I = x(() => M.disabled), L = _({ enabled: F });
|
|
45
|
-
console.log(F.value), console.log(L.enabled);
|
|
46
|
-
let R = i(() => M.enabled === !0 ? !1 : M.disabled === !0), z = () => P.value = !P.value, B = _({
|
|
47
|
-
disabled: I,
|
|
48
|
-
enabled: F,
|
|
49
|
-
isDisabled: R,
|
|
50
|
-
size: i(() => M.size)
|
|
51
|
-
});
|
|
52
|
-
return w(() => {
|
|
53
|
-
P.value = !M.collapse;
|
|
54
|
-
}), g(e, B), m(() => {
|
|
55
|
-
if (!M.notDispatch) {
|
|
56
|
-
var e;
|
|
57
|
-
N == null || (e = N.addGroup) == null || e.call(N, this);
|
|
58
|
-
}
|
|
59
|
-
}), p(() => {
|
|
60
|
-
if (!M.notDispatch) {
|
|
61
|
-
var e;
|
|
62
|
-
N == null || (e = N.removeGroup) == null || e.call(N, this);
|
|
63
|
-
}
|
|
64
|
-
}), j(B), (e, i) => {
|
|
65
|
-
let d = n, p = t;
|
|
66
|
-
return h(), s("div", { class: f(["form-item-group", {
|
|
67
|
-
"default-active": A.active,
|
|
68
|
-
"is-disabled": S(R)
|
|
69
|
-
}]) }, [E(c("div", {
|
|
70
|
-
class: "form-item-group-title",
|
|
71
|
-
onClick: z
|
|
72
|
-
}, [c("span", O, [
|
|
73
|
-
e.$slots.title || A.blockTitle ? y(e.$slots, "title", { key: 0 }, () => [l(b(A.blockTitle), 1)]) : o("v-if", !0),
|
|
74
|
-
e.$slots.tips || A.tips ? y(e.$slots, "tips", { key: 1 }, () => [c("span", k, "(" + b(A.tips) + ")", 1)]) : o("v-if", !0),
|
|
75
|
-
e.$slots["title-right"] ? y(e.$slots, "title-right", { key: 2 }) : o("v-if", !0)
|
|
76
|
-
]), c("i", { class: f(S(P) ? "el-icon-arrow-down" : "el-icon-arrow-right") }, null, 2)], 512), [[C, A.showTitle]]), u(S(D), null, {
|
|
77
|
-
default: T(() => [E(c("div", null, [e.$slots.default ? (h(), s(r, { key: 0 }, [A.wrapRow ? (h(), a(d, {
|
|
78
|
-
key: 0,
|
|
79
|
-
gutter: A.gutter
|
|
80
|
-
}, {
|
|
81
|
-
default: T(() => [y(e.$slots, "default")]),
|
|
82
|
-
_: 3
|
|
83
|
-
}, 8, ["gutter"])) : y(e.$slots, "default", { key: 1 })], 64)) : (h(), a(p, {
|
|
84
|
-
key: 1,
|
|
85
|
-
"font-size": "14px",
|
|
86
|
-
"empty-tips": "暂无信息"
|
|
87
|
-
}))], 512), [[C, S(P)]])]),
|
|
88
|
-
_: 3
|
|
89
|
-
})], 2);
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
//#endregion
|
|
94
|
-
export { A as default };
|
|
1
|
+
import { t as e } from "../chunks/CNtf2MHr.mjs";
|
|
2
|
+
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-item-group
|
|
1
|
+
.form-item-group.is-disabled .is-required .el-form-item__label:before,.form-item-group.is-disabled .required .el-form-item__label:before{display:none}.form-item-group .form-item-group-title{color:#333;height:30px;font-weight:700;font-size:var(--gloal-font-size);cursor:pointer;background-color:#f3f5fb;flex-direction:row;align-items:center;margin:0 0 10px;padding:0 10px;line-height:30px;display:flex}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/D7hrSVVl.mjs";
|
|
2
2
|
export { e as default };
|
package/form-rate/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/B7fKv2-x.mjs";
|
|
2
2
|
export { e as default };
|
package/form-row/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DdDv8RSI.mjs";
|
|
2
2
|
export { e as default };
|
package/form-select/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BAm_wcwz.mjs";
|
|
2
2
|
export { e as default };
|
package/form-slider/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BJObhbQz.mjs";
|
|
2
2
|
export { e as default };
|
package/form-switch/index.d.ts
CHANGED
|
@@ -25,8 +25,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
|
-
activeValue:
|
|
29
|
-
|
|
28
|
+
activeValue: {
|
|
29
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
inactiveValue: {
|
|
33
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
30
36
|
name: {
|
|
31
37
|
type: StringConstructor;
|
|
32
38
|
default: string;
|
|
@@ -171,8 +177,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
171
177
|
type: StringConstructor;
|
|
172
178
|
default: string;
|
|
173
179
|
};
|
|
174
|
-
activeValue:
|
|
175
|
-
|
|
180
|
+
activeValue: {
|
|
181
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
inactiveValue: {
|
|
185
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
176
188
|
name: {
|
|
177
189
|
type: StringConstructor;
|
|
178
190
|
default: string;
|
|
@@ -316,6 +328,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
316
328
|
inlinePrompt: boolean;
|
|
317
329
|
activeText: string;
|
|
318
330
|
inactiveText: string;
|
|
331
|
+
activeValue: string | number | boolean;
|
|
332
|
+
inactiveValue: string | number | boolean;
|
|
319
333
|
activeColor: string;
|
|
320
334
|
inactiveColor: string;
|
|
321
335
|
borderColor: string;
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Be_E_4G0.mjs";
|
|
2
2
|
export { e as default };
|
package/form-text/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
|
+
text: StringConstructor;
|
|
16
17
|
wrapFormItem: {
|
|
17
18
|
type: BooleanConstructor;
|
|
18
19
|
default: boolean;
|
|
@@ -114,6 +115,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
114
115
|
type: StringConstructor;
|
|
115
116
|
default: string;
|
|
116
117
|
};
|
|
118
|
+
text: StringConstructor;
|
|
117
119
|
wrapFormItem: {
|
|
118
120
|
type: BooleanConstructor;
|
|
119
121
|
default: boolean;
|
package/form-text/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/B9-9iYg8.mjs";
|
|
2
2
|
export { e as default };
|
package/index.mjs
CHANGED
|
@@ -7,28 +7,28 @@ import a from "./form-cell/index.mjs";
|
|
|
7
7
|
import { a as o } from "./chunks/C1DlzLpD.mjs";
|
|
8
8
|
import { t as s } from "./chunks/BVzpe2oN.mjs";
|
|
9
9
|
import { t as c } from "./chunks/8ORg8rrN.mjs";
|
|
10
|
-
import { t as l } from "./chunks/
|
|
10
|
+
import { t as l } from "./chunks/Bk3PtIYo.mjs";
|
|
11
11
|
import u from "./form-red-table/index.mjs";
|
|
12
|
-
import { t as d } from "./chunks/
|
|
12
|
+
import { t as d } from "./chunks/nJ1-P9vh.mjs";
|
|
13
13
|
import { t as f } from "./chunks/DgbDpRQg.mjs";
|
|
14
|
-
import { t as p } from "./chunks/
|
|
14
|
+
import { t as p } from "./chunks/CJeq96R0.mjs";
|
|
15
15
|
import { t as m } from "./chunks/wfL1FAwc.mjs";
|
|
16
|
-
import { t as h } from "./chunks/
|
|
17
|
-
import { t as g } from "./chunks/
|
|
18
|
-
import { t as _ } from "./chunks/
|
|
19
|
-
import { t as v } from "./chunks/
|
|
20
|
-
import { t as y } from "./chunks/
|
|
16
|
+
import { t as h } from "./chunks/BSriw1Qr.mjs";
|
|
17
|
+
import { t as g } from "./chunks/D_Xobj10.mjs";
|
|
18
|
+
import { t as _ } from "./chunks/DAS1h_Ei.mjs";
|
|
19
|
+
import { t as v } from "./chunks/DgCwGit4.mjs";
|
|
20
|
+
import { t as y } from "./chunks/CPE8fqJc.mjs";
|
|
21
21
|
import b from "./form-input-tag/index.mjs";
|
|
22
22
|
import x from "./form-input-time/index.mjs";
|
|
23
23
|
import S from "./form-item-config-provider/index.mjs";
|
|
24
|
-
import C from "./
|
|
25
|
-
import { t as w } from "./chunks/
|
|
26
|
-
import { t as T } from "./chunks/
|
|
27
|
-
import { t as E } from "./chunks/
|
|
28
|
-
import { t as D } from "./chunks/
|
|
29
|
-
import { t as O } from "./chunks/
|
|
30
|
-
import { t as k } from "./chunks/
|
|
31
|
-
import { t as A } from "./chunks/
|
|
24
|
+
import { t as C } from "./chunks/CNtf2MHr.mjs";
|
|
25
|
+
import { t as w } from "./chunks/D7hrSVVl.mjs";
|
|
26
|
+
import { t as T } from "./chunks/B7fKv2-x.mjs";
|
|
27
|
+
import { t as E } from "./chunks/DdDv8RSI.mjs";
|
|
28
|
+
import { t as D } from "./chunks/BAm_wcwz.mjs";
|
|
29
|
+
import { t as O } from "./chunks/BJObhbQz.mjs";
|
|
30
|
+
import { t as k } from "./chunks/Be_E_4G0.mjs";
|
|
31
|
+
import { t as A } from "./chunks/B9-9iYg8.mjs";
|
|
32
32
|
import j from "./form-view/index.mjs";
|
|
33
33
|
import M from "./month-calendar/index.mjs";
|
|
34
34
|
import N from "./table-view/index.mjs";
|