@web-utils/form-ui 1.0.0-beta4 → 1.0.0-beta41
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 +60 -0
- package/api/index.mjs +42 -0
- package/awesome-button/index.d.ts +60 -0
- package/awesome-button/index.mjs +49 -0
- package/base.css +1 -0
- package/chunks/4GMuTlFS.mjs +25 -0
- package/chunks/B-YO6Py8.mjs +145 -0
- package/chunks/B1MSrc6f.mjs +8 -0
- package/chunks/B40JZqF5.mjs +60 -0
- package/chunks/BLNpMvUQ.mjs +95 -0
- package/chunks/BNQD6fKI.mjs +40 -0
- package/chunks/BROfNO6c.mjs +17 -0
- package/chunks/BiF8cEVB.mjs +102 -0
- package/chunks/Bm5eiSmT.mjs +79 -0
- package/chunks/C5BjmbyR.mjs +91 -0
- package/chunks/CBHZpxPE.mjs +108 -0
- package/chunks/CD2WYSl1.mjs +188 -0
- package/chunks/CE0MejA6.mjs +200 -0
- package/chunks/CSf0Lu3w.mjs +102 -0
- package/chunks/CXSIP67a.mjs +234 -0
- package/chunks/ChmDDqoZ2.mjs +478 -0
- package/chunks/ClpNoMQe.mjs +37 -0
- package/chunks/Csa9EgOO.mjs +152 -0
- package/chunks/CuBH-6_y.mjs +25 -0
- package/chunks/CybmpSN8.mjs +664 -0
- package/chunks/CzvmkGvn.mjs +89 -0
- package/chunks/DASUt7ot.mjs +166 -0
- package/chunks/DBNqhkDl.mjs +174 -0
- package/chunks/DMcUruCK2.mjs +207 -0
- package/chunks/DUjgfS7g.mjs +95 -0
- package/chunks/DWLv8UUC.mjs +612 -0
- package/chunks/Ds_Tpa_M.mjs +83 -0
- package/chunks/MeM8FGzA.mjs +200 -0
- package/chunks/_90XRi0U.mjs +105 -0
- package/chunks/_Uzl3uMy.mjs +109 -0
- package/chunks/b5HOxD60.mjs +1369 -0
- package/chunks/cmuHpsX6.mjs +109 -0
- package/chunks/ePSxkHli.mjs +95 -0
- package/chunks/jHrYQI1Q.mjs +320 -0
- package/chunks/kKoMKOYH.mjs +180 -0
- package/chunks/lPLJkGiz.mjs +25 -0
- package/chunks/mbLUSXcZ.mjs +56 -0
- package/chunks/y-DmM31a.mjs +168 -0
- package/confirm-button/index.d.ts +113 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +84 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +53 -0
- package/constants/index.mjs +4 -0
- package/editable-tree/index.d.ts +254 -0
- package/editable-tree/index.mjs +2 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +337 -16
- package/element-dialog/index.mjs +2 -91
- package/empty-view/index.d.ts +2 -2
- package/empty-view/index.mjs +1 -1
- package/flex-scroll-area/index.d.ts +1 -1
- package/flex-scroll-area/index.mjs +1 -1
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +114 -0
- package/form-button/index.mjs +36 -0
- package/form-card/index.d.ts +14 -0
- package/form-card/index.mjs +18 -0
- package/form-cascader/index.d.ts +472 -0
- package/form-cascader/index.mjs +2 -0
- package/form-check-box-group/index.d.ts +289 -18
- package/form-check-box-group/index.mjs +1 -1
- package/form-check-box-group/style.css +1 -0
- package/form-checkbox/index.d.ts +236 -16
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +390 -19
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +87 -20
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +145 -13
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +301 -20
- package/form-input/index.mjs +1 -1
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +217 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +307 -16
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +307 -16
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +246 -18
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +307 -16
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +263 -1
- package/form-input-tag/index.mjs +1 -3
- package/form-input-time/index.d.ts +434 -1
- package/form-input-time/index.mjs +1 -3
- package/form-item-config-provider/index.d.ts +22 -0
- package/form-item-config-provider/index.mjs +24 -0
- package/form-item-group/index.d.ts +91 -17
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +141 -11
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +303 -16
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +254 -14
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +2 -2
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +537 -18
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +283 -16
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +272 -14
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +165 -13
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.mjs +2 -0
- package/form-time-select/index.d.ts +319 -0
- package/form-time-select/index.mjs +2 -0
- package/form-view/index.mjs +1 -1
- package/helper/dictionary.d.ts +15 -0
- package/helper/dictionary.mjs +97 -0
- package/hook/useDictionary.d.ts +60 -0
- package/hook/useDictionary.mjs +15 -0
- package/hook/useVisibilityChange.d.ts +4 -0
- package/hook/useVisibilityChange.mjs +14 -0
- package/iframe-window/index.d.ts +9 -0
- package/iframe-window/index.mjs +37 -0
- package/iframe-window/style.css +1 -0
- package/index.d.ts +52 -36
- package/index.mjs +54 -61
- package/package.json +10 -5
- package/pageable-table/index.d.ts +398 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/resize-observer/index.d.ts +8 -0
- package/resize-observer/index.mjs +40 -0
- package/resize-observer/style.css +1 -0
- package/resolver/index.mjs +29 -0
- package/table-column/index.d.ts +160 -0
- package/table-column/index.mjs +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +85 -0
- package/table-column-def/index.mjs +11 -0
- package/table-view/index.d.ts +340 -1
- package/table-view/index.mjs +459 -6
- package/table-view/style.css +1 -0
- package/toolbar/index.d.ts +128 -1
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +188 -1
- package/toolbar-button/index.mjs +1 -8
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.mjs +232 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
- package/constants.d.ts +0 -1
- package/constants.mjs +0 -4
- package/input/style.css +0 -1
- package/resolver.mjs +0 -79
- package/utils/style.css +0 -1
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { n as e } from "./CXSIP67a.mjs";
|
|
2
|
+
import { n as t, t as n } from "./Csa9EgOO.mjs";
|
|
3
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
|
+
//#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
|
|
5
|
+
function s(e) {
|
|
6
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/form/FormInputEmail.vue
|
|
10
|
+
var c = {
|
|
11
|
+
name: "FormInputEmail",
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
props: { ...t },
|
|
14
|
+
emits: { ...e },
|
|
15
|
+
setup(e, { slots: t, attrs: i }) {
|
|
16
|
+
let c = o(e, "modelValue");
|
|
17
|
+
return () => r(n, a(e, i, {
|
|
18
|
+
modelValue: c.value,
|
|
19
|
+
"onUpdate:modelValue": (e) => c.value = e,
|
|
20
|
+
type: "email"
|
|
21
|
+
}), s(t) ? t : { default: () => [t] });
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { c as t };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CXSIP67a.mjs";
|
|
2
|
+
import { n, t as r } from "./BROfNO6c.mjs";
|
|
3
|
+
import i from "../x-input-tag/index.mjs";
|
|
4
|
+
import { createVNode as a, mergeProps as o } from "vue";
|
|
5
|
+
//#region src/components/form/props/input-tag.ts
|
|
6
|
+
var s = {
|
|
7
|
+
...n,
|
|
8
|
+
...r,
|
|
9
|
+
modelValue: [Array, String],
|
|
10
|
+
arrayMode: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
objectMode: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !0
|
|
17
|
+
},
|
|
18
|
+
separator: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ","
|
|
21
|
+
},
|
|
22
|
+
boundarySelector: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ".form-scroller"
|
|
25
|
+
},
|
|
26
|
+
query: Function,
|
|
27
|
+
type: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "标签"
|
|
30
|
+
}
|
|
31
|
+
}, c = {
|
|
32
|
+
disabled: !0,
|
|
33
|
+
modelValue: !0
|
|
34
|
+
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
35
|
+
name: "FormInputTag",
|
|
36
|
+
inheritAttrs: !1,
|
|
37
|
+
props: { ...s },
|
|
38
|
+
emits: { ...t },
|
|
39
|
+
setup(t, { emit: n, slots: r, attrs: s }) {
|
|
40
|
+
let { emitInput: c, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = e(t, {
|
|
41
|
+
emit: n,
|
|
42
|
+
slots: r,
|
|
43
|
+
attrs: s,
|
|
44
|
+
predicate: l
|
|
45
|
+
});
|
|
46
|
+
return () => u({ vNodes: a(i, o(p.value, m.value, {
|
|
47
|
+
style: "width: 100%",
|
|
48
|
+
modelValue: t.modelValue,
|
|
49
|
+
disabled: f.value,
|
|
50
|
+
"onUpdate:modelValue": c,
|
|
51
|
+
placeholder: d.value
|
|
52
|
+
}), null) });
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
export { u as t };
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { d as e } from "./cmuHpsX6.mjs";
|
|
2
|
+
import { hasAuthority as t } from "../api/index.mjs";
|
|
3
|
+
import { toolbarContextKey as n } from "../constants/index.mjs";
|
|
4
|
+
import { isArray as r, isFunction as i } from "@web-utils/core";
|
|
5
|
+
import { computed as a, createVNode as o, defineComponent as s, getCurrentInstance as c, inject as l, mergeProps as u, ref as d } from "vue";
|
|
6
|
+
import { ElMessage as f, ElMessageBox as p } from "element-plus";
|
|
7
|
+
import { ElButton as m } from "element-plus/es";
|
|
8
|
+
import "element-plus/es/components/base/style/css";
|
|
9
|
+
import "element-plus/es/components/button/style/css";
|
|
10
|
+
//#region src/components/toolbar/button.ts
|
|
11
|
+
var h = {
|
|
12
|
+
size: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "default"
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "default"
|
|
19
|
+
},
|
|
20
|
+
plain: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
text: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
bg: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
link: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
round: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !1
|
|
39
|
+
},
|
|
40
|
+
circle: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
dashed: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
loading: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !1
|
|
51
|
+
},
|
|
52
|
+
loadingIcon: [String, Object],
|
|
53
|
+
disabled: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: !1
|
|
56
|
+
},
|
|
57
|
+
icon: [String, Object],
|
|
58
|
+
autofocus: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
nativeType: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "button"
|
|
65
|
+
},
|
|
66
|
+
autoInsertSpace: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
color: String,
|
|
71
|
+
dark: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: !1
|
|
74
|
+
},
|
|
75
|
+
tag: [String, Object],
|
|
76
|
+
label: String,
|
|
77
|
+
loadable: Boolean,
|
|
78
|
+
footer: Boolean,
|
|
79
|
+
primary: Boolean,
|
|
80
|
+
warning: Boolean,
|
|
81
|
+
privilege: String,
|
|
82
|
+
condition: { type: [
|
|
83
|
+
Array,
|
|
84
|
+
Function,
|
|
85
|
+
Boolean
|
|
86
|
+
] },
|
|
87
|
+
conditionTips: String,
|
|
88
|
+
confirm: Boolean,
|
|
89
|
+
confirmTips: String,
|
|
90
|
+
beforeExecute: Function,
|
|
91
|
+
afterExecute: Function,
|
|
92
|
+
route: [String, Object],
|
|
93
|
+
title: String,
|
|
94
|
+
cancelButtonText: String,
|
|
95
|
+
confirmButtonText: String
|
|
96
|
+
}, g = {
|
|
97
|
+
icon: !0,
|
|
98
|
+
type: !0,
|
|
99
|
+
text: !0,
|
|
100
|
+
title: !0,
|
|
101
|
+
disabled: !0,
|
|
102
|
+
loading: !0
|
|
103
|
+
}, _ = (e) => g[e] !== !0, v = /* @__PURE__ */ s({
|
|
104
|
+
name: "ToolbarButton",
|
|
105
|
+
inheritAttrs: !1,
|
|
106
|
+
props: { ...h },
|
|
107
|
+
setup(s, { attrs: h, slots: g }) {
|
|
108
|
+
let v = c(), y = l(n, null), b = d(!1), x = a(() => s.privilege ? t(s.privilege) : !0), S = async (e) => {
|
|
109
|
+
try {
|
|
110
|
+
if (i(s.beforeExecute) && await s.beforeExecute() === !1) return;
|
|
111
|
+
if (s.conditionTips) {
|
|
112
|
+
let e;
|
|
113
|
+
if (e = r(s.condition) ? s.condition.length <= 0 : i(s.condition) ? !s.condition() : !s.condition, e) {
|
|
114
|
+
f.warning(s.conditionTips);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (s.confirm || s.confirmTips) try {
|
|
119
|
+
await p.confirm(s.confirmTips || "你确定要删除该记录吗?", "系统提示", {
|
|
120
|
+
type: "warning",
|
|
121
|
+
distinguishCancelAndClose: !0,
|
|
122
|
+
cancelButtonText: s.cancelButtonText,
|
|
123
|
+
confirmButtonText: s.confirmButtonText
|
|
124
|
+
});
|
|
125
|
+
} catch (e) {
|
|
126
|
+
if (e === "cancel") {
|
|
127
|
+
let { onCancel: t } = h;
|
|
128
|
+
i(t) && await t(e);
|
|
129
|
+
} else if (e === "close") {
|
|
130
|
+
let { onClose: t } = h;
|
|
131
|
+
i(t) && await t(e);
|
|
132
|
+
}
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
b.value = !0;
|
|
136
|
+
let n;
|
|
137
|
+
if (s.route) {
|
|
138
|
+
var t;
|
|
139
|
+
await ((t = v.proxy.$router) == null ? void 0 : t.push(s.route));
|
|
140
|
+
} else {
|
|
141
|
+
let { onClick: t } = h;
|
|
142
|
+
if (i(t)) try {
|
|
143
|
+
n = await t(e);
|
|
144
|
+
} catch {}
|
|
145
|
+
}
|
|
146
|
+
b.value = !1, i(s.afterExecute) && await s.afterExecute(n);
|
|
147
|
+
} catch {}
|
|
148
|
+
}, C = a(() => s.text ? !0 : s.type === "text"), w = a(() => {
|
|
149
|
+
if (!C.value) return s.primary ? "primary" : s.warning ? "warning" : s.type;
|
|
150
|
+
}), T = e(s, _);
|
|
151
|
+
return () => x.value ? o(m, u(T.value, {
|
|
152
|
+
title: s.footer || y != null && y.footer ? null : s.title,
|
|
153
|
+
disabled: s.disabled || b.value,
|
|
154
|
+
loading: s.loadable ? b.value : !1,
|
|
155
|
+
type: w.value,
|
|
156
|
+
text: C.value,
|
|
157
|
+
class: h.class,
|
|
158
|
+
style: h.style,
|
|
159
|
+
onClick: S
|
|
160
|
+
}), {
|
|
161
|
+
default: !s.circle && (s.label || g.default) ? () => g.default ? g.default() : s.label : null,
|
|
162
|
+
loading: g.loading,
|
|
163
|
+
icon: g.icon ? g.icon : s.icon ? () => o("i", { class: s.icon }, null) : null
|
|
164
|
+
}) : null;
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
//#endregion
|
|
168
|
+
export { v as t };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
stop: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
prevent: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
text: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
message: StringConstructor;
|
|
15
|
+
confirmable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
confirmText: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
confirmType: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
confirmTitle: StringConstructor;
|
|
28
|
+
loadable: BooleanConstructor;
|
|
29
|
+
loadingText: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
tag: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
38
|
+
stop: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
prevent: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
text: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
message: StringConstructor;
|
|
51
|
+
confirmable: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
confirmText: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
confirmType: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
confirmTitle: StringConstructor;
|
|
64
|
+
loadable: BooleanConstructor;
|
|
65
|
+
loadingText: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
tag: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
}>> & Readonly<{}>, {
|
|
74
|
+
text: string;
|
|
75
|
+
stop: boolean;
|
|
76
|
+
prevent: boolean;
|
|
77
|
+
loadable: boolean;
|
|
78
|
+
loadingText: string;
|
|
79
|
+
confirmable: boolean;
|
|
80
|
+
confirmType: string;
|
|
81
|
+
confirmText: string;
|
|
82
|
+
tag: string;
|
|
83
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | {
|
|
84
|
+
props: {
|
|
85
|
+
type: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
size: StringConstructor;
|
|
90
|
+
icon: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
nativeType: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
loading: BooleanConstructor;
|
|
99
|
+
disabled: BooleanConstructor;
|
|
100
|
+
plain: BooleanConstructor;
|
|
101
|
+
autofocus: BooleanConstructor;
|
|
102
|
+
round: BooleanConstructor;
|
|
103
|
+
text: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
tag: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
113
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as e } from "../chunks/Bm5eiSmT.mjs";
|
|
2
|
+
//#region src/components/button/ConfirmButton.vue
|
|
3
|
+
var t = {
|
|
4
|
+
name: "ConfirmButton",
|
|
5
|
+
mixins: [e, { props: {
|
|
6
|
+
type: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "danger"
|
|
9
|
+
},
|
|
10
|
+
size: String,
|
|
11
|
+
icon: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
nativeType: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "button"
|
|
18
|
+
},
|
|
19
|
+
loading: Boolean,
|
|
20
|
+
disabled: Boolean,
|
|
21
|
+
plain: Boolean,
|
|
22
|
+
autofocus: Boolean,
|
|
23
|
+
round: Boolean,
|
|
24
|
+
text: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "删除"
|
|
27
|
+
},
|
|
28
|
+
tag: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "ElButton"
|
|
31
|
+
}
|
|
32
|
+
} }]
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { t as default };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
stop: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
prevent: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
text: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
message: StringConstructor;
|
|
15
|
+
confirmable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
confirmText: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
confirmType: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
confirmTitle: StringConstructor;
|
|
28
|
+
loadable: BooleanConstructor;
|
|
29
|
+
loadingText: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
tag: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
38
|
+
stop: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
prevent: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
text: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
message: StringConstructor;
|
|
51
|
+
confirmable: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
confirmText: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
confirmType: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
confirmTitle: StringConstructor;
|
|
64
|
+
loadable: BooleanConstructor;
|
|
65
|
+
loadingText: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
tag: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
}>> & Readonly<{}>, {
|
|
74
|
+
text: string;
|
|
75
|
+
stop: boolean;
|
|
76
|
+
prevent: boolean;
|
|
77
|
+
loadable: boolean;
|
|
78
|
+
loadingText: string;
|
|
79
|
+
confirmable: boolean;
|
|
80
|
+
confirmType: string;
|
|
81
|
+
confirmText: string;
|
|
82
|
+
tag: string;
|
|
83
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { InjectionKey, ComputedRef } from 'vue';
|
|
2
|
+
export declare const formHolderContextKey: InjectionKey<{
|
|
3
|
+
tableForm: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
enabledFields: string[];
|
|
6
|
+
requiredFields: string[];
|
|
7
|
+
enabledFieldsMap: Record<string, boolean | undefined>;
|
|
8
|
+
disabledFieldsMap: Record<string, boolean | undefined>;
|
|
9
|
+
requiredFieldsMap: Record<string, boolean | undefined>;
|
|
10
|
+
disabledFields: string[];
|
|
11
|
+
scrollIntoRequiredField: () => Promise<void> | any;
|
|
12
|
+
formRef: unknown;
|
|
13
|
+
validate: () => Promise<void> | any;
|
|
14
|
+
validateField: () => any;
|
|
15
|
+
resetFields: () => any;
|
|
16
|
+
scrollToField: () => any;
|
|
17
|
+
clearValidate: () => any;
|
|
18
|
+
getField: () => any;
|
|
19
|
+
setInitialValues: () => any;
|
|
20
|
+
getFields: () => any;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const formItemGroupContextKey: InjectionKey<{
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
isDisabled: boolean;
|
|
26
|
+
size: string;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const formItemConfigProviderContextKey: InjectionKey<{
|
|
29
|
+
reactive: boolean;
|
|
30
|
+
block: boolean;
|
|
31
|
+
wrapCol: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const formViewContextKey: InjectionKey<{
|
|
34
|
+
formCardStyle: object;
|
|
35
|
+
addGroup: (group: any) => void;
|
|
36
|
+
removeGroup: (group: any) => void;
|
|
37
|
+
tableForm: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const formEntityContextKey: unique symbol;
|
|
40
|
+
export declare const formItemConfigContextKey: unique symbol;
|
|
41
|
+
export declare const flowContextKey: InjectionKey<{
|
|
42
|
+
formComments: object[];
|
|
43
|
+
}>;
|
|
44
|
+
export declare const toolbarContextKey: InjectionKey<{
|
|
45
|
+
footer: boolean;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const tableViewContextKey: unique symbol;
|
|
48
|
+
export declare const pageableTableContextKey: InjectionKey<{
|
|
49
|
+
records: ComputedRef<object[]>;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const columnSizeContextKey: unique symbol;
|
|
52
|
+
export declare const columnsContextKey: unique symbol;
|
|
53
|
+
export declare const setColumnSizeContextKey: unique symbol;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/constants/index.ts
|
|
2
|
+
var e = Symbol("formHolder"), t = Symbol("formItemGroup"), n = Symbol("formItemConfigProvider"), r = Symbol("formView"), i = Symbol("formEntity"), a = Symbol("formItemConfig"), o = Symbol("flowContext"), s = Symbol("toolbar"), c = Symbol("tableView"), l = Symbol("pageableTable"), u = Symbol("columnSize"), d = Symbol("columns"), f = Symbol("setColumnSize");
|
|
3
|
+
//#endregion
|
|
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 };
|