@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
|
@@ -25,7 +25,7 @@ var c = {
|
|
|
25
25
|
size: String,
|
|
26
26
|
clearable: {
|
|
27
27
|
type: Boolean,
|
|
28
|
-
default: !
|
|
28
|
+
default: !0
|
|
29
29
|
},
|
|
30
30
|
collapseTags: {
|
|
31
31
|
type: Boolean,
|
|
@@ -169,7 +169,11 @@ var c = {
|
|
|
169
169
|
default: !0
|
|
170
170
|
},
|
|
171
171
|
tabindex: [String, Number]
|
|
172
|
-
}, l = {
|
|
172
|
+
}, l = {
|
|
173
|
+
modelValue: !0,
|
|
174
|
+
emptyValues: !0,
|
|
175
|
+
valueOnClear: !0
|
|
176
|
+
}, u = [
|
|
173
177
|
"change",
|
|
174
178
|
"visible-change",
|
|
175
179
|
"remove-tag",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e, n as t } from "./C1DlzLpD.mjs";
|
|
2
2
|
import { n, t as r } from "./DynLjTwi.mjs";
|
|
3
|
-
import { n as i, r as a } from "./
|
|
3
|
+
import { n as i, r as a } from "./B3DY36vM.mjs";
|
|
4
4
|
import { t as o } from "./wfL1FAwc.mjs";
|
|
5
5
|
import { ElInput as s, ElPopover as c } from "element-plus/es";
|
|
6
6
|
import { createVNode as l, mergeProps as u, ref as d } from "vue";
|
|
@@ -35,16 +35,22 @@ var s = {
|
|
|
35
35
|
type: String,
|
|
36
36
|
default: ""
|
|
37
37
|
},
|
|
38
|
-
activeValue:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
activeValue: {
|
|
39
|
+
type: [
|
|
40
|
+
Boolean,
|
|
41
|
+
String,
|
|
42
|
+
Number
|
|
43
|
+
],
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
inactiveValue: {
|
|
47
|
+
type: [
|
|
48
|
+
Boolean,
|
|
49
|
+
String,
|
|
50
|
+
Number
|
|
51
|
+
],
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
48
54
|
name: {
|
|
49
55
|
type: String,
|
|
50
56
|
default: ""
|
|
@@ -115,7 +115,12 @@ var s = {
|
|
|
115
115
|
split: Boolean,
|
|
116
116
|
startDate: String,
|
|
117
117
|
endDate: String
|
|
118
|
-
}, c = {
|
|
118
|
+
}, c = {
|
|
119
|
+
modelValue: !0,
|
|
120
|
+
name: !0,
|
|
121
|
+
emptyValues: !0,
|
|
122
|
+
valueOnClear: !0
|
|
123
|
+
}, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
119
124
|
name: "FormDatePicker",
|
|
120
125
|
inheritAttrs: !1,
|
|
121
126
|
props: { ...s },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e, n as t, t as n } from "./C1DlzLpD.mjs";
|
|
2
|
-
import { n as r, r as i, t as a } from "./
|
|
2
|
+
import { n as r, r as i, t as a } from "./B3DY36vM.mjs";
|
|
3
3
|
import { ElInput as o } from "element-plus/es";
|
|
4
4
|
import { computed as s, createVNode as c, mergeProps as l, useModel as u } from "vue";
|
|
5
5
|
import { validatePhoneNum as d } from "@web-utils/core";
|
|
@@ -0,0 +1,106 @@
|
|
|
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, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, vShow as g, watchEffect as _, withDirectives as v } from "vue";
|
|
5
|
+
import { ElCol as y, ElCollapseTransition as b } from "element-plus";
|
|
6
|
+
//#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
|
|
7
|
+
function x(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormItemGroup.vue
|
|
12
|
+
var S = {
|
|
13
|
+
name: "FormItemGroup",
|
|
14
|
+
props: {
|
|
15
|
+
blockTitle: String,
|
|
16
|
+
size: String,
|
|
17
|
+
tips: String,
|
|
18
|
+
active: Boolean,
|
|
19
|
+
enabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
tag: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "ElCol"
|
|
30
|
+
},
|
|
31
|
+
span: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 24
|
|
34
|
+
},
|
|
35
|
+
block: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
wrapRow: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !0
|
|
42
|
+
},
|
|
43
|
+
gutter: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 20
|
|
46
|
+
},
|
|
47
|
+
collapse: Boolean,
|
|
48
|
+
showTitle: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !0
|
|
51
|
+
},
|
|
52
|
+
notDispatch: Boolean
|
|
53
|
+
},
|
|
54
|
+
setup(l, { expose: S, slots: C }) {
|
|
55
|
+
let w = c("formView", null), T = m(!0), E = h(() => l.enabled), D = h(() => l.disabled), O = i(() => l.enabled === !0 ? !1 : l.disabled === !0), k = () => T.value = !T.value, A = p({
|
|
56
|
+
disabled: D,
|
|
57
|
+
enabled: E,
|
|
58
|
+
isDisabled: O,
|
|
59
|
+
size: h(() => l.size)
|
|
60
|
+
});
|
|
61
|
+
return _(() => {
|
|
62
|
+
T.value = !l.collapse;
|
|
63
|
+
}), f(e, A), d(() => {
|
|
64
|
+
if (!l.notDispatch) {
|
|
65
|
+
var e;
|
|
66
|
+
w == null || (e = w.addGroup) == null || e.call(w, this);
|
|
67
|
+
}
|
|
68
|
+
}), u(() => {
|
|
69
|
+
if (!l.notDispatch) {
|
|
70
|
+
var e;
|
|
71
|
+
w == null || (e = w.removeGroup) == null || e.call(w, this);
|
|
72
|
+
}
|
|
73
|
+
}), S(A), () => {
|
|
74
|
+
let e = () => {
|
|
75
|
+
var e;
|
|
76
|
+
return o(r, null, [v(o("div", {
|
|
77
|
+
class: "form-item-group-title",
|
|
78
|
+
onClick: k
|
|
79
|
+
}, [o("span", {
|
|
80
|
+
class: "flex-item",
|
|
81
|
+
style: "flex: 1"
|
|
82
|
+
}, [
|
|
83
|
+
C.title ? C.title() : l.blockTitle,
|
|
84
|
+
C.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
|
|
85
|
+
a("("),
|
|
86
|
+
C.tips ? C.tips() : l.tips,
|
|
87
|
+
a(")")
|
|
88
|
+
]) : null,
|
|
89
|
+
(e = C["title-right"]) == null ? void 0 : e.call(C)
|
|
90
|
+
]), o("i", { class: T.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[g, l.showTitle]]), o(b, null, { default: () => {
|
|
91
|
+
let e;
|
|
92
|
+
return C.default ? l.wrapRow ? v(o(n, { gutter: l.gutter }, x(e = C.default()) ? e : { default: () => [e] }), [[g, T.value]]) : v(o("div", null, [C.default()]), [[g, T.value]]) : v(o(t, {
|
|
93
|
+
"font-size": "14px",
|
|
94
|
+
"empty-tips": "暂无信息"
|
|
95
|
+
}, null), [[g, T.value]]);
|
|
96
|
+
} })]);
|
|
97
|
+
}, i = { class: ["form-item-group", {
|
|
98
|
+
"default-active": l.active,
|
|
99
|
+
"is-disabled": O.value
|
|
100
|
+
}] };
|
|
101
|
+
return l.tag !== "div" && (i.span = l.block ? 24 : l.span), s(l.tag === "div" ? "div" : y, i, e);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
export { S as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./C1DlzLpD.mjs";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
2
|
+
import { t } from "./CJeq96R0.mjs";
|
|
3
|
+
import { t as n } from "./B3DY36vM.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
6
6
|
function s(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./C1DlzLpD.mjs";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
2
|
+
import { t } from "./CJeq96R0.mjs";
|
|
3
|
+
import { t as n } from "./B3DY36vM.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
|
|
6
6
|
function s(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./C1DlzLpD.mjs";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
2
|
+
import { t } from "./CJeq96R0.mjs";
|
|
3
|
+
import { t as n } from "./B3DY36vM.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
|
|
6
6
|
function s(e) {
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { formHolderContextKey as e } from "../constants.mjs";
|
|
2
|
+
import { n as t } from "./Bh_CMUlo.mjs";
|
|
3
|
+
import n from "../form-advice/index.mjs";
|
|
4
|
+
import r from "../form-red-table/index.mjs";
|
|
5
|
+
import { ElForm as i, ElRow as a } from "element-plus/es";
|
|
6
|
+
import { computed as o, createVNode as s, inject as c, mergeProps as l, nextTick as u, provide as d, reactive as f, toRef as p, useTemplateRef as m } from "vue";
|
|
7
|
+
import { animate as h } from "@web-utils/core";
|
|
8
|
+
//#region src/components/form/props/form.js
|
|
9
|
+
var g = {
|
|
10
|
+
model: Object,
|
|
11
|
+
rules: Object,
|
|
12
|
+
inline: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
labelPosition: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "right"
|
|
19
|
+
},
|
|
20
|
+
labelWidth: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default: "auto"
|
|
23
|
+
},
|
|
24
|
+
labelSuffix: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
hideRequiredAsterisk: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
requireAsteriskPosition: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "left"
|
|
35
|
+
},
|
|
36
|
+
showMessage: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !0
|
|
39
|
+
},
|
|
40
|
+
inlineMessage: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
statusIcon: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
validateOnRuleChange: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !0
|
|
51
|
+
},
|
|
52
|
+
size: String,
|
|
53
|
+
disabled: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: void 0
|
|
56
|
+
},
|
|
57
|
+
scrollToError: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !1
|
|
60
|
+
},
|
|
61
|
+
scrollIntoViewOptions: [Object, Boolean],
|
|
62
|
+
requiredFields: Array,
|
|
63
|
+
disabledFields: Array,
|
|
64
|
+
enabledFields: Array,
|
|
65
|
+
showAdvice: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: !0
|
|
68
|
+
},
|
|
69
|
+
columns: [Array, Object],
|
|
70
|
+
colCount: Number,
|
|
71
|
+
notTableForm: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: void 0
|
|
74
|
+
},
|
|
75
|
+
commentValueColspan: Number,
|
|
76
|
+
commentLabelColspan: Number,
|
|
77
|
+
wrapRow: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !0
|
|
80
|
+
}
|
|
81
|
+
}, _ = {
|
|
82
|
+
showMessage: !0,
|
|
83
|
+
required: !0,
|
|
84
|
+
requiredFields: !0,
|
|
85
|
+
disabledFields: !0,
|
|
86
|
+
enabledFields: !0,
|
|
87
|
+
showAdvice: !0,
|
|
88
|
+
columns: !0,
|
|
89
|
+
colCount: !0,
|
|
90
|
+
notTableForm: !0,
|
|
91
|
+
commentValueColspan: !0,
|
|
92
|
+
commentLabelColspan: !0,
|
|
93
|
+
wrapRow: !0
|
|
94
|
+
}, v = ["validate"], y = (e) => _[e] !== !0, b = {
|
|
95
|
+
name: "FormHolder",
|
|
96
|
+
inheritAttrs: !1,
|
|
97
|
+
props: { ...g },
|
|
98
|
+
emits: { validate: null },
|
|
99
|
+
setup(g, { slots: _, expose: b, emit: x }) {
|
|
100
|
+
let S = t(g, {
|
|
101
|
+
emit: x,
|
|
102
|
+
events: v,
|
|
103
|
+
predicate: y
|
|
104
|
+
}), C = c("formView", null), w = m("form"), T = o(() => g.notTableForm === void 0 ? (C == null ? void 0 : C.tableForm) === void 0 ? !1 : C == null ? void 0 : C.tableForm : !g.notTableForm), E = o(() => T.value ? !1 : g.showMessage), D = o(() => {
|
|
105
|
+
let e = {};
|
|
106
|
+
return g.disabledFields && g.disabledFields.forEach((t) => {
|
|
107
|
+
e[t] = !0;
|
|
108
|
+
}), e;
|
|
109
|
+
}), O = o(() => {
|
|
110
|
+
let e = {};
|
|
111
|
+
return g.enabledFields && g.enabledFields.length && g.enabledFields.forEach((t) => {
|
|
112
|
+
e[t] = !0;
|
|
113
|
+
}), e;
|
|
114
|
+
}), k = o(() => {
|
|
115
|
+
let e = {};
|
|
116
|
+
return g.requiredFields && g.requiredFields.length && g.requiredFields.forEach((t) => {
|
|
117
|
+
e[t] = !0;
|
|
118
|
+
}), e;
|
|
119
|
+
}), A = o(() => g.disabled === !0 ? !0 : g.disabled), j = p(() => g.enabledFields), M = p(() => g.requiredFields), N = p(() => g.disabledFields), P = async () => {
|
|
120
|
+
await u();
|
|
121
|
+
let e = w.value.$el.querySelector(".el-form-item.is-error");
|
|
122
|
+
e && e.scrollIntoView({
|
|
123
|
+
block: "center",
|
|
124
|
+
inline: "center",
|
|
125
|
+
behavior: "smooth"
|
|
126
|
+
});
|
|
127
|
+
}, F = f({
|
|
128
|
+
tableForm: T,
|
|
129
|
+
disabled: A,
|
|
130
|
+
enabledFields: j,
|
|
131
|
+
requiredFields: M,
|
|
132
|
+
enabledFieldsMap: O,
|
|
133
|
+
disabledFieldsMap: D,
|
|
134
|
+
requiredFieldsMap: k,
|
|
135
|
+
disabledFields: N,
|
|
136
|
+
scrollIntoRequiredField: P,
|
|
137
|
+
formRef: w,
|
|
138
|
+
validate: async () => {
|
|
139
|
+
try {
|
|
140
|
+
return await w.value.validate();
|
|
141
|
+
} catch {
|
|
142
|
+
throw await P(), w.value.$el.querySelectorAll(".el-form-item.is-error .el-form-item__content > :first-child").forEach((e) => {
|
|
143
|
+
h(e, "breathe-animation");
|
|
144
|
+
}), Error("表单验证不通过!");
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
validateField: (e) => w.value.validateField(e),
|
|
148
|
+
resetFields: (e) => w.value.resetFields(e),
|
|
149
|
+
scrollToField: (e) => w.value.scrollToField(e),
|
|
150
|
+
clearValidate: (e) => w.value.clearValidate(e),
|
|
151
|
+
getField: () => w.value.getField(),
|
|
152
|
+
setInitialValues: (e) => w.value.setInitialValues(e),
|
|
153
|
+
getFields: () => w.value.fields
|
|
154
|
+
});
|
|
155
|
+
return d(e, F), b(F), () => s(i, l({
|
|
156
|
+
ref: "form",
|
|
157
|
+
class: "form-holder",
|
|
158
|
+
"show-message": E.value
|
|
159
|
+
}, S.value), { default: () => {
|
|
160
|
+
if (T.value) {
|
|
161
|
+
var e, t, i;
|
|
162
|
+
return [
|
|
163
|
+
(e = _.top) == null ? void 0 : e.call(_),
|
|
164
|
+
s(r, {
|
|
165
|
+
class: { "hide-error-message": T.value },
|
|
166
|
+
columns: g.columns,
|
|
167
|
+
"col-count": g.colCount
|
|
168
|
+
}, { default: () => {
|
|
169
|
+
var e;
|
|
170
|
+
return [(e = _.default) == null ? void 0 : e.call(_), g.showAdvice ? s(n, {
|
|
171
|
+
"label-colspan": g.commentLabelColspan,
|
|
172
|
+
"value-colspan": g.commentValueColspan
|
|
173
|
+
}, null) : null];
|
|
174
|
+
} }),
|
|
175
|
+
(t = _.bottom) == null ? void 0 : t.call(_),
|
|
176
|
+
s("div", { class: "red-form-footer" }, [(i = _.footer) == null ? void 0 : i.call(_)])
|
|
177
|
+
];
|
|
178
|
+
} else {
|
|
179
|
+
var o;
|
|
180
|
+
return g.wrapRow ? s(a, null, { default: () => {
|
|
181
|
+
var e;
|
|
182
|
+
return [(e = _.default) == null ? void 0 : e.call(_)];
|
|
183
|
+
} }) : (o = _.default) == null ? void 0 : o.call(_);
|
|
184
|
+
}
|
|
185
|
+
} });
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
//#endregion
|
|
189
|
+
export { b as t };
|
package/constants.d.ts
CHANGED
|
@@ -30,3 +30,13 @@ export declare const formItemConfigProviderContextKey: InjectionKey<{
|
|
|
30
30
|
block: boolean;
|
|
31
31
|
wrapCol: boolean;
|
|
32
32
|
}>;
|
|
33
|
+
export declare const formViewContextKey: unique symbol;
|
|
34
|
+
export declare const formEntityContextKey: unique symbol;
|
|
35
|
+
export declare const formItemConfigContextKey: unique symbol;
|
|
36
|
+
export declare const flowContextKey: unique symbol;
|
|
37
|
+
export declare const toolbarContextKey: unique symbol;
|
|
38
|
+
export declare const tableViewContextKey: unique symbol;
|
|
39
|
+
export declare const pageableTableContextKey: unique symbol;
|
|
40
|
+
export declare const columnSizeContextKey: unique symbol;
|
|
41
|
+
export declare const columnsContextKey: unique symbol;
|
|
42
|
+
export declare const setColumnSizeContextKey: unique symbol;
|
package/constants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/components/constants.ts
|
|
2
|
-
var e = Symbol("formHolder"), t = Symbol("formItemGroup"), n = Symbol("formItemConfigProvider");
|
|
2
|
+
var e = Symbol("formHolder"), t = Symbol("formItemGroup"), n = Symbol("formItemConfigProvider"), r = Symbol("formView"), i = Symbol("formEntity"), a = Symbol("formItemConfig"), o = Symbol("flow"), s = Symbol("toolbar"), c = Symbol("tableView"), l = Symbol("pageableTable"), u = Symbol("columnSize"), d = Symbol("columns"), f = Symbol("setColumnSize");
|
|
3
3
|
//#endregion
|
|
4
|
-
export { e as formHolderContextKey, n as formItemConfigProviderContextKey, t as formItemGroupContextKey };
|
|
4
|
+
export { u as columnSizeContextKey, d as columnsContextKey, o as flowContextKey, i as formEntityContextKey, e as formHolderContextKey, a as formItemConfigContextKey, n as formItemConfigProviderContextKey, t as formItemGroupContextKey, r as formViewContextKey, l as pageableTableContextKey, f as setColumnSizeContextKey, c as tableViewContextKey, s as toolbarContextKey };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Bk3PtIYo.mjs";
|
|
2
2
|
export { e as default };
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/nJ1-P9vh.mjs";
|
|
2
2
|
export { e as default };
|
package/form-input/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CJeq96R0.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/BSriw1Qr.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/D_Xobj10.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/DAS1h_Ei.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/DgCwGit4.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/CPE8fqJc.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { formItemConfigProviderContextKey as e } from "../constants.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { provide as t, reactive as n, toRef as r } from "vue";
|
|
3
3
|
//#region src/components/form/FormItemConfigProvider.vue
|
|
4
4
|
var i = {
|
|
5
5
|
name: "FormItemConfigProvider",
|
|
@@ -12,12 +12,12 @@ var i = {
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
setup(i, { expose: a, slots: o }) {
|
|
15
|
-
let s =
|
|
16
|
-
reactive:
|
|
17
|
-
block:
|
|
18
|
-
wrapCol:
|
|
15
|
+
let s = n({
|
|
16
|
+
reactive: r(() => i.reactive),
|
|
17
|
+
block: r(() => i.block),
|
|
18
|
+
wrapCol: r(() => i.wrapCol)
|
|
19
19
|
});
|
|
20
|
-
return
|
|
20
|
+
return t(e, s), a(s), () => o.default(s);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
@@ -1,18 +1,92 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
blockTitle: StringConstructor;
|
|
3
|
+
size: StringConstructor;
|
|
4
|
+
tips: StringConstructor;
|
|
5
|
+
active: BooleanConstructor;
|
|
6
|
+
enabled: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
tag: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
span: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
block: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
wrapRow: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
gutter: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
collapse: BooleanConstructor;
|
|
35
|
+
showTitle: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
notDispatch: BooleanConstructor;
|
|
40
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
|
+
blockTitle: StringConstructor;
|
|
42
|
+
size: StringConstructor;
|
|
43
|
+
tips: StringConstructor;
|
|
44
|
+
active: BooleanConstructor;
|
|
45
|
+
enabled: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
tag: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
span: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
block: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
wrapRow: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
gutter: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
collapse: BooleanConstructor;
|
|
74
|
+
showTitle: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
notDispatch: BooleanConstructor;
|
|
79
|
+
}>> & Readonly<{}>, {
|
|
80
|
+
span: number;
|
|
81
|
+
tag: string;
|
|
82
|
+
block: boolean;
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
wrapRow: boolean;
|
|
85
|
+
active: boolean;
|
|
86
|
+
collapse: boolean;
|
|
87
|
+
notDispatch: boolean;
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
gutter: number;
|
|
90
|
+
showTitle: boolean;
|
|
91
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
92
|
export default _default;
|
|
3
|
-
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
-
$slots: S;
|
|
5
|
-
});
|
|
6
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
7
|
-
type __VLS_TemplateResult = {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
|
-
slots: {
|
|
10
|
-
title?(_: {}): any;
|
|
11
|
-
tips?(_: {}): any;
|
|
12
|
-
'title-right'?(_: {}): any;
|
|
13
|
-
default?(_: {}): any;
|
|
14
|
-
default?(_: {}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
rootEl: HTMLDivElement;
|
|
18
|
-
};
|