@web-utils/form-ui 1.0.0-beta17 → 1.0.0-beta18
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/{D0EeP-eB.mjs → 53gSZ624.mjs} +2 -2
- package/chunks/{DsBWDK1-.mjs → 7Desvoh-.mjs} +2 -2
- package/chunks/{CH_v7XkN.mjs → 7vQ29mMd.mjs} +3 -3
- package/chunks/{CrWDXTno.mjs → 8ORg8rrN.mjs} +2 -2
- package/chunks/{Do5h5GzH.mjs → B4LDPAZu.mjs} +2 -2
- package/chunks/{uWRsKwOO.mjs → BVzpe2oN.mjs} +2 -2
- package/chunks/{f-CM5UVD.mjs → Bb5BT11-.mjs} +3 -3
- package/chunks/{DX4Wq2Fb.mjs → Bj5l6sFx.mjs} +2 -2
- package/chunks/{DQDBsEel.mjs → BsbfEk0E.mjs} +3 -3
- package/chunks/{CEWLi7G1.mjs → C1DlzLpD.mjs} +56 -56
- package/chunks/{Lnj54GAG.mjs → CFwUzdTu.mjs} +2 -2
- package/chunks/{DUBc-1s4.mjs → CKw_uzPc.mjs} +2 -2
- package/chunks/{1BaFmq0z.mjs → D2WviyxF.mjs} +7 -9
- package/chunks/{CbGBSOlX.mjs → DH1_fmkX.mjs} +3 -3
- package/chunks/{3ItTydl6.mjs → DUDm42gn.mjs} +2 -2
- package/chunks/{DFuF0u2g.mjs → DgbDpRQg.mjs} +2 -2
- package/chunks/{CqgD2b0r.mjs → DkqF25wT.mjs} +1 -1
- package/chunks/{CQTt0Oq1.mjs → DynLjTwi.mjs} +1 -1
- package/chunks/{Du6wl65y.mjs → Q9EsFJ4H.mjs} +2 -2
- package/constants.d.ts +16 -10
- package/constants.mjs +2 -2
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +7 -7
- package/form-date-picker/index.mjs +1 -1
- package/form-image/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-group/index.mjs +46 -30
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/index.mjs +17 -17
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import e from "../
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { formItemGroupContextKey as e } from "../constants.mjs";
|
|
2
|
+
import t from "../empty-view/index.mjs";
|
|
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";
|
|
5
6
|
//#region src/components/form/FormItemGroup.vue
|
|
6
|
-
var
|
|
7
|
+
var O = {
|
|
7
8
|
class: "flex-item",
|
|
8
9
|
style: { flex: "1" }
|
|
9
|
-
},
|
|
10
|
+
}, k = { style: {
|
|
10
11
|
color: "#ff0000",
|
|
11
12
|
"font-size": "14px"
|
|
12
|
-
} },
|
|
13
|
+
} }, A = /* @__PURE__ */ Object.assign({ name: "FormItemGroup" }, {
|
|
13
14
|
__name: "FormItemGroup",
|
|
14
15
|
props: {
|
|
15
16
|
blockTitle: String,
|
|
@@ -39,40 +40,55 @@ var S = {
|
|
|
39
40
|
},
|
|
40
41
|
notDispatch: Boolean
|
|
41
42
|
},
|
|
42
|
-
setup(
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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)
|
|
47
51
|
});
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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", {
|
|
54
70
|
class: "form-item-group-title",
|
|
55
|
-
onClick:
|
|
56
|
-
}, [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
]),
|
|
61
|
-
default:
|
|
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, {
|
|
62
78
|
key: 0,
|
|
63
|
-
gutter:
|
|
79
|
+
gutter: A.gutter
|
|
64
80
|
}, {
|
|
65
|
-
default:
|
|
81
|
+
default: T(() => [y(e.$slots, "default")]),
|
|
66
82
|
_: 3
|
|
67
|
-
}, 8, ["gutter"])) :
|
|
83
|
+
}, 8, ["gutter"])) : y(e.$slots, "default", { key: 1 })], 64)) : (h(), a(p, {
|
|
68
84
|
key: 1,
|
|
69
85
|
"font-size": "14px",
|
|
70
86
|
"empty-tips": "暂无信息"
|
|
71
|
-
}))], 512), [[
|
|
87
|
+
}))], 512), [[C, S(P)]])]),
|
|
72
88
|
_: 3
|
|
73
89
|
})], 2);
|
|
74
90
|
};
|
|
75
91
|
}
|
|
76
92
|
});
|
|
77
93
|
//#endregion
|
|
78
|
-
export {
|
|
94
|
+
export { A as default };
|
package/form-item-x/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e } from "../chunks/
|
|
1
|
+
import { a as e } from "../chunks/C1DlzLpD.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/B4LDPAZu.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/Q9EsFJ4H.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/7Desvoh-.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/CFwUzdTu.mjs";
|
|
2
2
|
export { e as default };
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DUDm42gn.mjs";
|
|
2
2
|
export { e as default };
|
package/form-text/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/53gSZ624.mjs";
|
|
2
2
|
export { e as default };
|
package/index.mjs
CHANGED
|
@@ -4,31 +4,31 @@ import n from "./flex-scroll-area/index.mjs";
|
|
|
4
4
|
import r from "./form-advice/index.mjs";
|
|
5
5
|
import i from "./form-cascader/index.mjs";
|
|
6
6
|
import a from "./form-cell/index.mjs";
|
|
7
|
-
import { a as o } from "./chunks/
|
|
8
|
-
import { t as s } from "./chunks/
|
|
9
|
-
import { t as c } from "./chunks/
|
|
10
|
-
import { t as l } from "./chunks/
|
|
7
|
+
import { a as o } from "./chunks/C1DlzLpD.mjs";
|
|
8
|
+
import { t as s } from "./chunks/BVzpe2oN.mjs";
|
|
9
|
+
import { t as c } from "./chunks/8ORg8rrN.mjs";
|
|
10
|
+
import { t as l } from "./chunks/D2WviyxF.mjs";
|
|
11
11
|
import u from "./form-red-table/index.mjs";
|
|
12
12
|
import { t as d } from "./chunks/DCKxvrCR.mjs";
|
|
13
|
-
import { t as f } from "./chunks/
|
|
14
|
-
import { t as p } from "./chunks/
|
|
13
|
+
import { t as f } from "./chunks/DgbDpRQg.mjs";
|
|
14
|
+
import { t as p } from "./chunks/Bj5l6sFx.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/7vQ29mMd.mjs";
|
|
17
|
+
import { t as g } from "./chunks/Bb5BT11-.mjs";
|
|
18
|
+
import { t as _ } from "./chunks/DH1_fmkX.mjs";
|
|
19
|
+
import { t as v } from "./chunks/CKw_uzPc.mjs";
|
|
20
|
+
import { t as y } from "./chunks/BsbfEk0E.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
24
|
import C from "./form-item-group/index.mjs";
|
|
25
|
-
import { t as w } from "./chunks/
|
|
26
|
-
import { t as T } from "./chunks/
|
|
25
|
+
import { t as w } from "./chunks/B4LDPAZu.mjs";
|
|
26
|
+
import { t as T } from "./chunks/Q9EsFJ4H.mjs";
|
|
27
27
|
import { t as E } from "./chunks/98bTmBOR.mjs";
|
|
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/
|
|
28
|
+
import { t as D } from "./chunks/7Desvoh-.mjs";
|
|
29
|
+
import { t as O } from "./chunks/CFwUzdTu.mjs";
|
|
30
|
+
import { t as k } from "./chunks/DUDm42gn.mjs";
|
|
31
|
+
import { t as A } from "./chunks/53gSZ624.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";
|