@web-utils/form-ui 1.0.0-beta55 → 1.0.0-beta57
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/api/index.d.ts +6 -0
- package/chunks/-qKZw-3p2.mjs +23 -0
- package/chunks/{B3A-CnYr.mjs → 33G2_TH8.mjs} +4 -4
- 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/CE1uX9hJ.mjs +95 -0
- package/chunks/CGnOR2gn.mjs +59 -0
- package/chunks/CJ1-f8sg.mjs +30 -0
- package/chunks/{5KomemiE2.mjs → CUq3MOiQ2.mjs} +29 -29
- package/chunks/CdzoVG6J.mjs +47 -0
- package/chunks/{Dg4R65aG2.mjs → CqoMZ9Wo2.mjs} +2 -2
- 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/Du1PslcN.mjs +28 -0
- package/chunks/{Dluor05A.mjs → DyEYDv4B.mjs} +7 -6
- package/chunks/EAJCsX8W.mjs +32 -0
- package/chunks/{Bq62m7IR2.mjs → T4GdQtY8.mjs} +11 -11
- 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/{CauzhVSa2.mjs → rJWvEBq9.mjs} +12 -12
- package/chunks/{7GmKqdbC.mjs → usyXQe35.mjs} +1 -1
- package/chunks/{BpCiVuKL.mjs → v3wbYL_-.mjs} +7 -6
- package/chunks/vd9nXj8B.mjs +59 -0
- package/chunks/{g8MIBMw92.mjs → ztBRZQwM.mjs} +13 -13
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/constants/index.d.ts +18 -0
- package/editable-tree/index.d.ts +27 -0
- 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.d.ts +3 -0
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +6 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +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-config-provider/index.d.ts +18 -0
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/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.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.d.ts +14 -0
- package/helper/dictionary.mjs +1 -1
- package/helper/form-item.d.ts +8 -1
- package/helper/form-item.mjs +27 -2
- package/helper/input.d.ts +3 -0
- package/helper/input.mjs +1 -1
- package/helper/sub-table-plus.d.ts +60 -0
- package/iframe-window/index.mjs +1 -1
- package/index.css +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.d.ts +3 -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/year-calendar/style.css +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,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,17 +1,17 @@
|
|
|
1
1
|
import { t as e } from "./DOZRzqlo.mjs";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import { n as r } from "./
|
|
5
|
-
import { t as i } from "./
|
|
6
|
-
import { t as a } from "./
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import { t as s } from "./
|
|
9
|
-
import { t as c } from "./
|
|
10
|
-
import { t as l } from "./
|
|
11
|
-
import { t as u } from "./
|
|
12
|
-
import { t as d } from "./
|
|
2
|
+
import { t } from "./usyXQe35.mjs";
|
|
3
|
+
import { t as n } from "./B1MSrc6f.mjs";
|
|
4
|
+
import { n as r } from "./DEC2O0q-.mjs";
|
|
5
|
+
import { t as i } from "./DBUJ7Bva.mjs";
|
|
6
|
+
import { t as a } from "./BWoKh6f6.mjs";
|
|
7
|
+
import { t as o } from "./CE1uX9hJ.mjs";
|
|
8
|
+
import { t as s } from "./CGnOR2gn.mjs";
|
|
9
|
+
import { t as c } from "./B2PuSZ_F.mjs";
|
|
10
|
+
import { t as l } from "./BHT38Us-.mjs";
|
|
11
|
+
import { t as u } from "./CrQmTHMA.mjs";
|
|
12
|
+
import { t as d } from "./33G2_TH8.mjs";
|
|
13
13
|
import f from "../table-column-def/index.mjs";
|
|
14
|
-
import { t as p } from "./
|
|
14
|
+
import { t as p } from "./DB_UKPay.mjs";
|
|
15
15
|
import { findTreeChildren as m, isFunction as h } from "@web-utils/core";
|
|
16
16
|
import { Fragment as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, mergeProps as w, openBlock as T, renderList as E, renderSlot as D, resolveComponent as O, toDisplayString as k, withCtx as A, withModifiers as j } from "vue";
|
|
17
17
|
import { formContextKey as M, formItemContextKey as N } from "element-plus";
|
|
@@ -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 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { s as e } from "./
|
|
1
|
+
import { s as e } from "./DuOxL6xh.mjs";
|
|
2
2
|
import { t } from "./DOZRzqlo.mjs";
|
|
3
3
|
import { cellClickHandlerContextKey as n } from "../constants/index.mjs";
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import { t as i } from "./
|
|
6
|
-
import { n as a } from "./
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import { t as ee } from "./
|
|
9
|
-
import { t as s } from "./
|
|
10
|
-
import { t as c } from "./
|
|
11
|
-
import { t as l } from "./
|
|
12
|
-
import { t as u } from "./
|
|
13
|
-
import { t as d } from "./
|
|
14
|
-
import { t as f } from "./
|
|
15
|
-
import { t as p } from "./
|
|
4
|
+
import { t as r } from "./usyXQe35.mjs";
|
|
5
|
+
import { t as i } from "./B1MSrc6f.mjs";
|
|
6
|
+
import { n as a } from "./DEC2O0q-.mjs";
|
|
7
|
+
import { t as o } from "./DBUJ7Bva.mjs";
|
|
8
|
+
import { t as ee } from "./BZ0v5mka.mjs";
|
|
9
|
+
import { t as s } from "./BWoKh6f6.mjs";
|
|
10
|
+
import { t as c } from "./CE1uX9hJ.mjs";
|
|
11
|
+
import { t as l } from "./CGnOR2gn.mjs";
|
|
12
|
+
import { t as u } from "./B2PuSZ_F.mjs";
|
|
13
|
+
import { t as d } from "./BHT38Us-.mjs";
|
|
14
|
+
import { t as f } from "./CrQmTHMA.mjs";
|
|
15
|
+
import { t as p } from "./33G2_TH8.mjs";
|
|
16
16
|
import m from "../table-column-def/index.mjs";
|
|
17
17
|
import { findTreeChildren as h, isFunction as g } from "@web-utils/core";
|
|
18
18
|
import { Fragment as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, mergeProps as T, normalizeClass as E, openBlock as D, renderList as O, renderSlot as k, resolveComponent as A, toDisplayString as j, toHandlers as M, withCtx as N, withModifiers as P } from "vue";
|
package/confirm-button/index.mjs
CHANGED
package/confirmable/index.mjs
CHANGED
package/constants/index.d.ts
CHANGED
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
import { InjectionKey, ComputedRef } from 'vue';
|
|
2
2
|
export declare const formHolderContextKey: InjectionKey<{
|
|
3
|
+
/** 表单实例的响应式引用 */
|
|
3
4
|
tableForm: boolean;
|
|
5
|
+
/** 是否禁用整个表单的响应式引用 */
|
|
4
6
|
disabled: boolean;
|
|
7
|
+
/** 启用的字段列表的响应式引用 */
|
|
5
8
|
enabledFields: string[];
|
|
9
|
+
/** 必填字段列表的响应式引用 */
|
|
6
10
|
requiredFields: string[];
|
|
11
|
+
/** 启用字段的映射表的响应式引用,用于快速查找字段状态 */
|
|
7
12
|
enabledFieldsMap: Record<string, boolean | undefined>;
|
|
13
|
+
/** 禁用字段的映射表的响应式引用,用于快速查找字段状态 */
|
|
8
14
|
disabledFieldsMap: Record<string, boolean | undefined>;
|
|
15
|
+
/** 必填字段的映射表的响应式引用,用于快速查找字段状态 */
|
|
9
16
|
requiredFieldsMap: Record<string, boolean | undefined>;
|
|
17
|
+
/** 禁用字段列表的响应式引用 */
|
|
10
18
|
disabledFields: string[];
|
|
19
|
+
/** 滚动到第一个必填字段的方法 */
|
|
11
20
|
scrollIntoRequiredField: () => Promise<void> | any;
|
|
21
|
+
/** 表单的模板引用,用于直接访问DOM元素或组件实例 */
|
|
12
22
|
formRef: unknown;
|
|
23
|
+
/** 验证整个表单的方法,返回Promise以便支持异步验证 */
|
|
13
24
|
validate: () => Promise<void> | any;
|
|
25
|
+
/** 验证指定字段的方法 */
|
|
14
26
|
validateField: () => any;
|
|
27
|
+
/** 重置所有表单字段到初始值的方法 */
|
|
15
28
|
resetFields: () => any;
|
|
29
|
+
/** 滚动到指定字段的方法 */
|
|
16
30
|
scrollToField: () => any;
|
|
31
|
+
/** 清除所有验证错误信息的方法 */
|
|
17
32
|
clearValidate: () => any;
|
|
33
|
+
/** 获取指定字段实例的方法 */
|
|
18
34
|
getField: () => any;
|
|
35
|
+
/** 设置表单初始值的方法 */
|
|
19
36
|
setInitialValues: () => any;
|
|
37
|
+
/** 获取所有字段实例的方法 */
|
|
20
38
|
getFields: () => any;
|
|
21
39
|
}>;
|
|
22
40
|
export declare const formItemGroupContextKey: InjectionKey<{
|
package/editable-tree/index.d.ts
CHANGED
|
@@ -140,14 +140,41 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
140
140
|
registerNode(node: any): void;
|
|
141
141
|
reloadTree(): Promise<void>;
|
|
142
142
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
143
|
+
/**
|
|
144
|
+
* 移除新增节点事件
|
|
145
|
+
*/
|
|
143
146
|
'remove-new-node': null;
|
|
147
|
+
/**
|
|
148
|
+
* 节点加载完成事件
|
|
149
|
+
*/
|
|
144
150
|
'node-loaded': null;
|
|
151
|
+
/**
|
|
152
|
+
* 根节点加载完成事件
|
|
153
|
+
*/
|
|
145
154
|
'root-node-loaded': null;
|
|
155
|
+
/**
|
|
156
|
+
* 节点删除事件
|
|
157
|
+
*/
|
|
146
158
|
'node-deleted': null;
|
|
159
|
+
/**
|
|
160
|
+
* 节点更新事件
|
|
161
|
+
*/
|
|
147
162
|
'node-updated': null;
|
|
163
|
+
/**
|
|
164
|
+
* 节点添加事件
|
|
165
|
+
*/
|
|
148
166
|
'node-added': null;
|
|
167
|
+
/**
|
|
168
|
+
* 节点点击事件
|
|
169
|
+
*/
|
|
149
170
|
'on-node-click': null;
|
|
171
|
+
/**
|
|
172
|
+
* 添加根节点事件
|
|
173
|
+
*/
|
|
150
174
|
'add-root-node': null;
|
|
175
|
+
/**
|
|
176
|
+
* 创建新节点事件
|
|
177
|
+
*/
|
|
151
178
|
'create-new-node': null;
|
|
152
179
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
153
180
|
label: {
|