@web-utils/form-ui 1.0.0-beta56 → 1.0.0-beta58
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/-qKZw-3p2.mjs +23 -0
- package/chunks/{CauzhVSa2.mjs → 4-vc_q1t.mjs} +12 -12
- package/chunks/{Bq62m7IR2.mjs → 4C611CU2.mjs} +11 -11
- package/chunks/{gLPy4Sus.mjs → 8P-OAGbj.mjs} +1 -1
- package/chunks/B2PuSZ_F.mjs +35 -0
- package/chunks/B6B-rhhB.mjs +37 -0
- package/chunks/{C7Mak2La.mjs → BHT38Us-.mjs} +7 -6
- package/chunks/BWoKh6f6.mjs +66 -0
- package/chunks/{Dt_s96gL2.mjs → BXrA0SYn2.mjs} +2 -2
- package/chunks/BZ0v5mka.mjs +30 -0
- package/chunks/{5KomemiE2.mjs → BlmtfUfl2.mjs} +29 -29
- package/chunks/CE1uX9hJ.mjs +95 -0
- package/chunks/CGnOR2gn.mjs +59 -0
- package/chunks/CJ1-f8sg.mjs +30 -0
- package/chunks/{B3A-CnYr.mjs → CSnlDCNV.mjs} +5 -5
- package/chunks/CdzoVG6J.mjs +47 -0
- package/chunks/{BZTAuJxn2.mjs → CqoMZ9Wo2.mjs} +1 -1
- package/chunks/CrQmTHMA.mjs +105 -0
- package/chunks/Crh2RUrS.mjs +106 -0
- package/chunks/DBUJ7Bva.mjs +56 -0
- package/chunks/DB_UKPay.mjs +27 -0
- package/chunks/{BvKUeniN.mjs → DEC2O0q-.mjs} +46 -44
- package/chunks/{BoJgSMkL.mjs → DUhF8YOY.mjs} +2 -2
- package/chunks/{g8MIBMw92.mjs → Dqq8z1t4.mjs} +13 -13
- package/chunks/Du1PslcN.mjs +28 -0
- package/chunks/{Dluor05A.mjs → DyEYDv4B.mjs} +7 -6
- package/chunks/EAJCsX8W.mjs +32 -0
- package/chunks/ZFJ73RWd2.mjs +29 -0
- package/chunks/{D2B9Y3oT.mjs → fmIV_kHp.mjs} +2 -2
- package/chunks/h5488Kii.mjs +27 -0
- package/chunks/k3cC9SGC.mjs +27 -0
- package/chunks/{7GmKqdbC.mjs → usyXQe35.mjs} +1 -1
- package/chunks/{BpCiVuKL.mjs → v3wbYL_-.mjs} +7 -6
- package/chunks/vd9nXj8B.mjs +59 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/editable-tree/index.mjs +591 -2
- package/element-dialog/index.mjs +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/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-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- 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-row/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-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/helper/dictionary.mjs +1 -1
- package/helper/form-item.d.ts +1 -1
- package/helper/form-item.mjs +27 -2
- package/helper/input.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/index.mjs +37 -37
- package/package.json +1 -1
- package/pageable-table/index.mjs +1 -1
- package/props/cascader.d.ts +326 -0
- package/{chunks/Czz_49pC.mjs → props/cascader.mjs} +8 -58
- package/props/checkbox-group.d.ts +213 -0
- package/props/checkbox-group.mjs +83 -0
- package/props/checkbox.d.ts +202 -0
- package/props/checkbox.mjs +71 -0
- package/props/col.d.ts +74 -0
- package/props/col.mjs +32 -0
- package/props/common.d.ts +114 -0
- package/props/common.mjs +18 -0
- package/props/date.d.ts +339 -0
- package/props/date.mjs +145 -0
- package/props/form-item.d.ts +144 -0
- package/props/form-item.mjs +73 -0
- package/props/form.d.ts +157 -0
- package/props/form.mjs +89 -0
- package/props/image.d.ts +102 -0
- package/props/image.mjs +10 -0
- package/props/input-cron.d.ts +102 -0
- package/props/input-cron.mjs +16 -0
- package/props/input-number.d.ts +216 -0
- package/props/input-number.mjs +72 -0
- package/props/input-tag.d.ts +123 -0
- package/props/input-tag.mjs +33 -0
- package/props/input.d.ts +299 -0
- package/props/input.mjs +97 -0
- package/props/radio-group.d.ts +205 -0
- package/props/radio-group.mjs +84 -0
- package/props/rate.d.ts +211 -0
- package/{chunks/D0kIhzQo.mjs → props/rate.mjs} +7 -28
- package/props/select.d.ts +450 -0
- package/props/select.mjs +218 -0
- package/props/slide.d.ts +235 -0
- package/{chunks/DZrQmH9Y.mjs → props/slide.mjs} +7 -28
- package/props/switch.d.ts +229 -0
- package/{chunks/ecpQ-ODX.mjs → props/switch.mjs} +7 -33
- package/props/text.d.ts +127 -0
- package/props/text.mjs +22 -0
- package/props/textarea.d.ts +266 -0
- package/{chunks/CNK4mfga.mjs → props/textarea.mjs} +19 -31
- package/props/time-select.d.ts +216 -0
- package/props/time-select.mjs +67 -0
- package/props/time.d.ts +304 -0
- package/{chunks/C3MF_-bN.mjs → props/time.mjs} +8 -39
- package/props/tree.d.ts +76 -0
- package/props/tree.mjs +75 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +13 -13
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +2 -2
- package/year-calendar/index.mjs +1 -1
- package/chunks/6GcIyEQV.mjs +0 -95
- package/chunks/8c9TEVNY.mjs +0 -36
- package/chunks/AAZfNtly.mjs +0 -119
- package/chunks/BKlMENhV.mjs +0 -57
- package/chunks/BNVYEWWW.mjs +0 -57
- package/chunks/BTuzBfTA.mjs +0 -141
- package/chunks/C6Dq9Dgb.mjs +0 -17
- package/chunks/C6u76g6o.mjs +0 -158
- package/chunks/CLO5X9Lb.mjs +0 -176
- package/chunks/CdoiMj7L2.mjs +0 -39
- package/chunks/DTVTvvq-.mjs +0 -189
- package/chunks/DWE67l1f.mjs +0 -317
- package/chunks/DWMePN6q.mjs +0 -660
- package/chunks/D_L1p3vm2.mjs +0 -90
- package/chunks/Dy_5vPdP.mjs +0 -101
- package/chunks/Goee5Y-H.mjs +0 -198
- /package/chunks/{BlxLaWcU.mjs → 6av50rJm.mjs} +0 -0
- /package/chunks/{CkOD-_VV.mjs → B1MSrc6f.mjs} +0 -0
- /package/chunks/{BNqVEHk_.mjs → C-0zqLII.mjs} +0 -0
- /package/chunks/{xq_LR6R2.mjs → CI1ehQi5.mjs} +0 -0
- /package/chunks/{DcTVYqeJ.mjs → DuOxL6xh.mjs} +0 -0
- /package/chunks/{CXsoKP22.mjs → mekxD3ef.mjs} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { n as e, o as t } from "./DEC2O0q-.mjs";
|
|
2
|
+
import { allProps as n, predicate as r } from "../props/time-select.mjs";
|
|
3
|
+
import { createVNode as i, mergeProps as a } from "vue";
|
|
4
|
+
import { ElTimeSelect as o } from "element-plus/es";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/form/FormTimeSelect.vue
|
|
7
|
+
var s = {
|
|
8
|
+
name: "FormTimeSelect",
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
props: { ...n },
|
|
11
|
+
emits: { ...e },
|
|
12
|
+
setup(e, { emit: n, slots: s, attrs: c }) {
|
|
13
|
+
let { emitInput: l, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
14
|
+
emit: n,
|
|
15
|
+
slots: s,
|
|
16
|
+
attrs: c,
|
|
17
|
+
predicate: r
|
|
18
|
+
});
|
|
19
|
+
return () => u({ vNodes: i(o, a(p.value, m.value, {
|
|
20
|
+
style: "width: 100%",
|
|
21
|
+
modelValue: e.modelValue,
|
|
22
|
+
disabled: f.value,
|
|
23
|
+
"onUpdate:modelValue": l,
|
|
24
|
+
placeholder: d.value
|
|
25
|
+
}), null) });
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { s as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as e, f as t } from "./
|
|
1
|
+
import { a as e, f as t } from "./DuOxL6xh.mjs";
|
|
2
2
|
import { t as n } from "./DOZRzqlo.mjs";
|
|
3
3
|
import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
|
|
4
|
-
import { n as i, t as a } from "./
|
|
4
|
+
import { n as i, t as a } from "./CI1ehQi5.mjs";
|
|
5
5
|
import { createVNode as o, inject as s, mergeProps as c } from "vue";
|
|
6
6
|
import { ElTableColumn as l } from "element-plus/es";
|
|
7
7
|
//#region src/components/table/TableColumn.vue?vue&type=script&lang.jsx
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as e, o as t } from "./DEC2O0q-.mjs";
|
|
2
|
+
import { allProps as n, predicate as r } from "../props/rate.mjs";
|
|
3
|
+
import { createVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
|
+
import { ElRate as s } from "element-plus/es";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/form/FormRate.vue
|
|
7
|
+
var c = {
|
|
8
|
+
name: "FormRate",
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
props: { ...n },
|
|
11
|
+
emits: { ...e },
|
|
12
|
+
setup(e, { emit: n, slots: c, attrs: l }) {
|
|
13
|
+
let u = o(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
14
|
+
emit: n,
|
|
15
|
+
slots: c,
|
|
16
|
+
attrs: l,
|
|
17
|
+
predicate: r
|
|
18
|
+
});
|
|
19
|
+
return () => d({ vNodes: i(s, a(p.value, m.value, {
|
|
20
|
+
modelValue: u.value,
|
|
21
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
22
|
+
disabled: f.value
|
|
23
|
+
}), null) });
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { c as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as e, o as t } from "./DEC2O0q-.mjs";
|
|
2
|
+
import { allProps as n, predicate as r } from "../props/slide.mjs";
|
|
3
|
+
import { createVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
|
+
import { ElSlider as s } from "element-plus/es";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/form/FormSlider.vue
|
|
7
|
+
var c = {
|
|
8
|
+
name: "FormSlider",
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
props: { ...n },
|
|
11
|
+
emits: { ...e },
|
|
12
|
+
setup(e, { emit: n, slots: c, attrs: l }) {
|
|
13
|
+
let u = o(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
|
|
14
|
+
emit: n,
|
|
15
|
+
slots: c,
|
|
16
|
+
predicate: r,
|
|
17
|
+
attrs: l
|
|
18
|
+
});
|
|
19
|
+
return () => d({ vNodes: i(s, a(p.value, m.value, {
|
|
20
|
+
modelValue: u.value,
|
|
21
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
22
|
+
disabled: f.value
|
|
23
|
+
}), null) });
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { c as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e } from "./
|
|
1
|
+
import { f as e } from "./DuOxL6xh.mjs";
|
|
2
2
|
import { hasAuthority as t } from "../api/index.mjs";
|
|
3
3
|
import { toolbarContextKey as n } from "../constants/index.mjs";
|
|
4
4
|
import { isArray as r, isFunction as i } from "@web-utils/core";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import {
|
|
1
|
+
import { n as e } from "./DEC2O0q-.mjs";
|
|
2
|
+
import { t } from "./BWoKh6f6.mjs";
|
|
3
|
+
import { allProps as n } from "../props/input.mjs";
|
|
3
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
5
|
//#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
|
|
5
6
|
function s(e) {
|
|
@@ -10,15 +11,15 @@ function s(e) {
|
|
|
10
11
|
var c = {
|
|
11
12
|
name: "FormInputIdCard",
|
|
12
13
|
inheritAttrs: !1,
|
|
13
|
-
props: { ...
|
|
14
|
+
props: { ...n },
|
|
14
15
|
emits: { ...e },
|
|
15
|
-
setup(e, { slots:
|
|
16
|
+
setup(e, { slots: n, attrs: i }) {
|
|
16
17
|
let c = o(e, "modelValue");
|
|
17
|
-
return () => r(
|
|
18
|
+
return () => r(t, a(e, i, {
|
|
18
19
|
modelValue: c.value,
|
|
19
20
|
"onUpdate:modelValue": (e) => c.value = e,
|
|
20
21
|
type: "idcard"
|
|
21
|
-
}), s(
|
|
22
|
+
}), s(n) ? n : { default: () => [n] });
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
25
|
//#endregion
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { n as e, o as t } from "./DEC2O0q-.mjs";
|
|
2
|
+
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
|
+
import { allProps as r, predicate as i } from "../props/radio-group.mjs";
|
|
4
|
+
import { computed as a, createVNode as o, isVNode as s, mergeProps as c, useModel as l } from "vue";
|
|
5
|
+
import { ElRadio as u, ElRadioButton as d, ElRadioGroup as f } from "element-plus/es";
|
|
6
|
+
//#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
|
|
7
|
+
function p(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormRadioGroup.vue
|
|
12
|
+
var m = {
|
|
13
|
+
name: "FormRadioGroup",
|
|
14
|
+
inheritAttrs: !1,
|
|
15
|
+
props: { ...r },
|
|
16
|
+
emits: { ...e },
|
|
17
|
+
setup(e, { slots: r, attrs: s, emit: m }) {
|
|
18
|
+
let h = l(e, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = t(e, {
|
|
19
|
+
emit: m,
|
|
20
|
+
slots: r,
|
|
21
|
+
attrs: s,
|
|
22
|
+
predicate: i,
|
|
23
|
+
messagePrefix: "请选择"
|
|
24
|
+
}), b = a(() => e.classic ? "label" : e.labelProp), x = a(() => e.classic ? "value" : e.valueProp), { dictItems: S } = n(e), C = a(() => e.dictType ? S.value : e.gender ? [{
|
|
25
|
+
[b.value]: "男",
|
|
26
|
+
[x.value]: e.chinese ? "男" : e.typing ? 1 : "1"
|
|
27
|
+
}, {
|
|
28
|
+
[b.value]: "女",
|
|
29
|
+
[x.value]: e.chinese ? "女" : e.typing ? 2 : "2"
|
|
30
|
+
}] : e.confirm ? [{
|
|
31
|
+
[b.value]: "是",
|
|
32
|
+
[x.value]: e.chinese ? "是" : e.english ? "Y" : e.typing ? 1 : "1"
|
|
33
|
+
}, {
|
|
34
|
+
[b.value]: "否",
|
|
35
|
+
[x.value]: e.chinese ? "否" : e.english ? "N" : e.typing ? 0 : "0"
|
|
36
|
+
}] : e.options);
|
|
37
|
+
return () => g({ vNodes: o(f, c(v.value, y.value, {
|
|
38
|
+
modelValue: h.value,
|
|
39
|
+
"onUpdate:modelValue": (e) => h.value = e,
|
|
40
|
+
disabled: _.value
|
|
41
|
+
}), {
|
|
42
|
+
...r,
|
|
43
|
+
default: r.default || (() => {
|
|
44
|
+
var t;
|
|
45
|
+
return (t = C.value) == null ? void 0 : t.map(({ value: t, label: n, disabled: r }) => e.type === "button" || e.radioType === "button" ? o(d, {
|
|
46
|
+
key: t,
|
|
47
|
+
value: t,
|
|
48
|
+
disabled: r
|
|
49
|
+
}, p(n) ? n : { default: () => [n] }) : o(u, {
|
|
50
|
+
key: t,
|
|
51
|
+
value: t,
|
|
52
|
+
disabled: r
|
|
53
|
+
}, p(n) ? n : { default: () => [n] }));
|
|
54
|
+
})
|
|
55
|
+
}) });
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { m as t };
|
package/confirm-button/index.mjs
CHANGED
package/confirmable/index.mjs
CHANGED