@web-utils/form-ui 1.0.0-beta83 → 1.0.0-beta85
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/{BiY3yiiP2.mjs → 3nLaRSbR2.mjs} +1 -1
- package/chunks/{DpspbJVm2.mjs → 61ccpSFj2.mjs} +9 -9
- package/chunks/{BtNMd8g52.mjs → 8zYlq-t92.mjs} +3 -3
- package/chunks/{LivIWUWt.mjs → BIy6bO4j.mjs} +1 -1
- package/chunks/{BOHHK03q2.mjs → BMei9UHN2.mjs} +9 -9
- package/chunks/{FZqu01np2.mjs → BTGrh7dw2.mjs} +107 -107
- package/chunks/{CnkvV3PU2.mjs → BYu4QaK72.mjs} +2 -2
- package/chunks/BhHMGhJ8.mjs +109 -0
- package/chunks/{DNaB9zOb2.mjs → BxcsELcB2.mjs} +2 -2
- package/chunks/BxuM-fgJ.mjs +61 -0
- package/chunks/{B9JhKxrE2.mjs → By-W0XXn2.mjs} +1 -1
- package/chunks/{CrFP0Lhs.mjs → C28bnMcw.mjs} +1 -1
- package/chunks/{fh36J3y1.mjs → CCpKg0cM.mjs} +2 -2
- package/chunks/{D3SYExuc.mjs → CET31mBi.mjs} +1 -1
- package/chunks/{ZCIAKVNm2.mjs → CTFV8OFH2.mjs} +2 -2
- package/chunks/{CI0pkCeM.mjs → CjCNtCWd.mjs} +1 -1
- package/chunks/{DLOrxYRD2.mjs → CkHQY4ME2.mjs} +1 -1
- package/chunks/{DgH_4qOn2.mjs → CpsHWpwH2.mjs} +43 -23
- package/chunks/{CaY7oZQ3.mjs → DJlgX5ty.mjs} +1 -1
- package/chunks/{CvncYLo32.mjs → DSTNXl142.mjs} +2 -2
- package/chunks/{D3xCUp_E.mjs → DVF9q3oX.mjs} +2 -2
- package/chunks/{CDZvVLNL.mjs → Dst9_BmZ.mjs} +2 -2
- package/chunks/{B7vR8-_Y2.mjs → SWO35fS42.mjs} +1 -1
- package/chunks/{DIMxdcyy2.mjs → Tq3_dajC2.mjs} +1 -1
- package/chunks/{mm9J6HEd2.mjs → XQwnPkab2.mjs} +1 -1
- package/chunks/{DzCIClcZ.mjs → b0ve2YgF.mjs} +1 -1
- package/chunks/{BK88Er_k.mjs → ofu8wJKp.mjs} +1 -1
- package/chunks/{BXnK2ccC.mjs → saZ_qJOT.mjs} +1 -1
- package/chunks/{CHdaMU5-.mjs → vHsAJZRT.mjs} +2 -2
- package/chunks/{BQ7zKN-6.mjs → vebd58-O.mjs} +1 -1
- package/chunks/{DK4GzYEk2.mjs → y1Q66LEa2.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/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-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/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/index.mjs +31 -31
- package/package.json +1 -1
- package/resolver/components.d.ts +2 -0
- package/resolver/components.mjs +2 -2
- package/resolver/vite-optimize-deps-plugin.d.ts +9 -0
- package/resolver/vite-optimize-deps-plugin.mjs +13 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-view/index.mjs +2 -2
- package/toolbar/index.d.ts +6 -1
- package/toolbar/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/web-types.json +1 -1
- package/chunks/Bsu6--Di.mjs +0 -63
- package/chunks/CumZF9e-.mjs +0 -111
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { m as e } from "./ClVh1Lek.mjs";
|
|
2
|
+
import { formHolderContextKey as t, formViewContextKey as n } from "../constants/index.mjs";
|
|
3
|
+
import { allProps as r, predicate as i } from "../props/form.mjs";
|
|
4
|
+
import a from "../form-advice/index.mjs";
|
|
5
|
+
import o from "../form-red-table/index.mjs";
|
|
6
|
+
import { ElForm as s, ElRow as c } from "element-plus/es";
|
|
7
|
+
import "element-plus/es/components/base/style/css";
|
|
8
|
+
import { computed as l, createVNode as u, inject as d, mergeProps as f, nextTick as p, provide as m, reactive as h, toRef as g, useTemplateRef as _ } from "vue";
|
|
9
|
+
import { animate as v } from "@web-utils/core";
|
|
10
|
+
import "element-plus/es/components/row/style/css";
|
|
11
|
+
import "element-plus/es/components/form/style/css";
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/form/FormHolder.vue
|
|
14
|
+
var y = {
|
|
15
|
+
name: "FormHolder",
|
|
16
|
+
inheritAttrs: !1,
|
|
17
|
+
props: { ...r },
|
|
18
|
+
emits: {},
|
|
19
|
+
setup(r, { slots: y, expose: b, attrs: x }) {
|
|
20
|
+
let { autoBindProps: S, listeners: C } = e(r, { predicate: i }), w = d(n, null), T = _("form"), E = l(() => r.notTableForm === void 0 ? (w == null ? void 0 : w.tableForm) === void 0 ? !1 : w == null ? void 0 : w.tableForm : !r.notTableForm), D = l(() => E.value ? !1 : r.showMessage), O = l(() => {
|
|
21
|
+
let e = {};
|
|
22
|
+
return r.disabledFields && r.disabledFields.forEach((t) => {
|
|
23
|
+
e[t] = !0;
|
|
24
|
+
}), e;
|
|
25
|
+
}), k = l(() => {
|
|
26
|
+
let e = {};
|
|
27
|
+
return r.enabledFields && r.enabledFields.length && r.enabledFields.forEach((t) => {
|
|
28
|
+
e[t] = !0;
|
|
29
|
+
}), e;
|
|
30
|
+
}), A = l(() => {
|
|
31
|
+
let e = {};
|
|
32
|
+
return r.requiredFields && r.requiredFields.length && r.requiredFields.forEach((t) => {
|
|
33
|
+
e[t] = !0;
|
|
34
|
+
}), e;
|
|
35
|
+
}), j = l(() => r.disabled === !0 ? !0 : r.disabled), M = g(() => r.enabledFields), N = g(() => r.requiredFields), P = g(() => r.disabledFields), F = async () => {
|
|
36
|
+
await p();
|
|
37
|
+
let e = T.value.$el.querySelector(".el-form-item.is-error");
|
|
38
|
+
e && e.scrollIntoView({
|
|
39
|
+
block: "center",
|
|
40
|
+
inline: "center",
|
|
41
|
+
behavior: "smooth"
|
|
42
|
+
});
|
|
43
|
+
}, I = h({
|
|
44
|
+
tableForm: E,
|
|
45
|
+
disabled: j,
|
|
46
|
+
enabledFields: M,
|
|
47
|
+
requiredFields: N,
|
|
48
|
+
enabledFieldsMap: k,
|
|
49
|
+
disabledFieldsMap: O,
|
|
50
|
+
requiredFieldsMap: A,
|
|
51
|
+
disabledFields: P,
|
|
52
|
+
scrollIntoRequiredField: F,
|
|
53
|
+
formRef: T,
|
|
54
|
+
validate: async () => {
|
|
55
|
+
try {
|
|
56
|
+
return await T.value.validate();
|
|
57
|
+
} catch {
|
|
58
|
+
throw await F(), T.value.$el.querySelectorAll(".el-form-item.is-error .el-form-item__content > :first-child").forEach((e) => {
|
|
59
|
+
v(e, "breathe-animation");
|
|
60
|
+
}), Error("表单验证不通过!");
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
validateField: (e) => T.value.validateField(e),
|
|
64
|
+
resetFields: (e) => T.value.resetFields(e),
|
|
65
|
+
scrollToField: (e) => T.value.scrollToField(e),
|
|
66
|
+
clearValidate: (e) => T.value.clearValidate(e),
|
|
67
|
+
getField: () => T.value.getField(),
|
|
68
|
+
setInitialValues: (e) => T.value.setInitialValues(e),
|
|
69
|
+
getFields: () => T.value.fields
|
|
70
|
+
});
|
|
71
|
+
return m(t, I), b(I), () => u(s, f(C.value, S.value, x, {
|
|
72
|
+
ref: "form",
|
|
73
|
+
class: [
|
|
74
|
+
"form-holder",
|
|
75
|
+
"clear-fix",
|
|
76
|
+
{ "red-form": E }
|
|
77
|
+
],
|
|
78
|
+
"show-message": D.value
|
|
79
|
+
}), { default: () => {
|
|
80
|
+
if (E.value) {
|
|
81
|
+
var e, t, n;
|
|
82
|
+
return [
|
|
83
|
+
(e = y.top) == null ? void 0 : e.call(y),
|
|
84
|
+
u(o, {
|
|
85
|
+
class: { "hide-error-message": E.value },
|
|
86
|
+
columns: r.columns,
|
|
87
|
+
"col-count": r.colCount
|
|
88
|
+
}, { default: () => {
|
|
89
|
+
var e;
|
|
90
|
+
return [(e = y.default) == null ? void 0 : e.call(y), r.showAdvice ? u(a, {
|
|
91
|
+
"label-colspan": r.commentLabelColspan,
|
|
92
|
+
"value-colspan": r.commentValueColspan
|
|
93
|
+
}, null) : null];
|
|
94
|
+
} }),
|
|
95
|
+
(t = y.bottom) == null ? void 0 : t.call(y),
|
|
96
|
+
u("div", { class: "red-form-footer" }, [(n = y.footer) == null ? void 0 : n.call(y)])
|
|
97
|
+
];
|
|
98
|
+
} else {
|
|
99
|
+
var i;
|
|
100
|
+
return r.wrapRow ? u(c, null, { default: () => {
|
|
101
|
+
var e;
|
|
102
|
+
return [(e = y.default) == null ? void 0 : e.call(y)];
|
|
103
|
+
} }) : (i = y.default) == null ? void 0 : i.call(y);
|
|
104
|
+
}
|
|
105
|
+
} });
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
//#endregion
|
|
109
|
+
export { y as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t } from "./C28bnMcw.mjs";
|
|
3
3
|
import { allProps as n } from "../props/textarea.mjs";
|
|
4
4
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
5
|
//#region src/components/form/FormTextarea.vue?vue&type=script&lang.jsx
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { allProps as e, predicate as t } from "../props/date.mjs";
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
|
+
import { ElDatePicker as i } from "element-plus/es";
|
|
4
|
+
import "element-plus/es/components/base/style/css";
|
|
5
|
+
import { computed as a, createVNode as o, mergeProps as s } from "vue";
|
|
6
|
+
import "element-plus/es/components/date-picker/style/css";
|
|
7
|
+
import { toDate as c } from "@web-utils/integrations/dayjs";
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/form/FormDatePicker.vue
|
|
10
|
+
var l = {
|
|
11
|
+
name: "FormDatePicker",
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
props: { ...e },
|
|
14
|
+
emits: {
|
|
15
|
+
...n,
|
|
16
|
+
"update:startDate": null,
|
|
17
|
+
"update:endDate": null
|
|
18
|
+
},
|
|
19
|
+
setup(e, { emit: n, slots: l, attrs: u }) {
|
|
20
|
+
let { emitInput: d, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = r(e, {
|
|
21
|
+
emit: n,
|
|
22
|
+
slots: l,
|
|
23
|
+
attrs: u,
|
|
24
|
+
predicate: t,
|
|
25
|
+
messagePrefix: "请选择"
|
|
26
|
+
}), _ = a(() => e.dateTimeRange || e.dateRange || e.monthRange), v = a(() => e.year ? "YYYY" : e.month || e.monthRange ? "YYYY-MM" : e.week ? "YYYY 第 WW 周" : e.dateTime || e.dateTimeRange ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"), y = a(() => e.year ? "year" : e.month ? "month" : e.dates ? "dates" : e.week ? "week" : e.dateTime ? "datetime" : e.dateTimeRange ? "datetimerange" : e.dateRange ? "daterange" : e.monthRange ? "monthrange" : "date"), b = a(() => {
|
|
27
|
+
if (e.miniDate) {
|
|
28
|
+
let t = c(e.miniDate);
|
|
29
|
+
return t.setDate(t.getDate() - 1), t;
|
|
30
|
+
} else return null;
|
|
31
|
+
}), x = a(() => e.maxDate ? c(e.maxDate) : null), S = (e) => {
|
|
32
|
+
if (!b.value && !x.value) return !1;
|
|
33
|
+
let t = e.getTime();
|
|
34
|
+
return b.value && !x.value ? t <= b.value.getTime() : !b.value && x.value ? t >= x.value.getTime() : b.value && x.value ? !(t > b.value.getTime() && t <= x.value.getTime()) : !1;
|
|
35
|
+
}, C = (e, t) => {
|
|
36
|
+
n("update:startDate", e), n("update:endDate", t);
|
|
37
|
+
}, w = (t) => {
|
|
38
|
+
_.value && e.split ? t ? C(t[0], t[1]) : C(null, null) : d(t);
|
|
39
|
+
}, T = a(() => _.value && e.split ? [e.startDate, e.endDate] : e.modelValue), E = a(() => e.week ? "YYYY-MM-DD" : e.valueFormat || v.value), D = a(() => e.format || v.value);
|
|
40
|
+
return () => f({ vNodes: o(i, s(h.value, g.value, {
|
|
41
|
+
style: "width: 100%",
|
|
42
|
+
type: y.value,
|
|
43
|
+
modelValue: T.value,
|
|
44
|
+
disabled: m.value,
|
|
45
|
+
placeholder: p.value,
|
|
46
|
+
format: D.value,
|
|
47
|
+
disabledDate: S,
|
|
48
|
+
"value-format": E.value,
|
|
49
|
+
"onUpdate:modelValue": w
|
|
50
|
+
}), {
|
|
51
|
+
default: l.default,
|
|
52
|
+
"range-separator": l["range-separator"],
|
|
53
|
+
"pre-month": l["pre-month"],
|
|
54
|
+
"next-month": l["next-month"],
|
|
55
|
+
"pre-year": l["pre-year"],
|
|
56
|
+
"next-year": l["next-year"]
|
|
57
|
+
}) });
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { l as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { useDictionary as n } from "../hook/useDictionary.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/radio-group.mjs";
|
|
4
4
|
import { ElRadio as a, ElRadioButton as o, ElRadioGroup as s } from "element-plus/es";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, t as n } from "./
|
|
1
|
+
import { n as e, o as t, t as n } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as r, predicate as i } from "../props/input.mjs";
|
|
3
3
|
import { ElInput as a } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t } from "./C28bnMcw.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/time.mjs";
|
|
3
3
|
import { ElTimePicker as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commonAutoBindProps as e, commonManualBindProps as t } from "../props/common.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
3
|
-
import { n as i, t as a } from "./
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
|
+
import { n as i, t as a } from "./61ccpSFj2.mjs";
|
|
4
4
|
import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
|
|
5
5
|
//#region src/components/table/form-table.ts
|
|
6
6
|
var u = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { allProps as e, predicate as t } from "../props/cascader.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
3
|
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
4
|
import { ElCascader as a } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { s as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { goBack as t, hasAuthority as n } from "../api/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import "element-plus/es";
|
|
3
|
+
import { tableViewContextKey as r, toolbarContextKey as i } from "../constants/index.mjs";
|
|
4
|
+
import { t as a } from "./mnqSaATq.mjs";
|
|
5
|
+
import { ElMessage as o } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
|
-
import { Comment as
|
|
8
|
-
import { NOOP as
|
|
7
|
+
import { Comment as s, createVNode as c } from "vue";
|
|
8
|
+
import { NOOP as l, capitalize as u, copy as d } from "@web-utils/core";
|
|
9
9
|
import "element-plus/es/components/message/style/css";
|
|
10
10
|
//#region src/components/toolbar/Toolbar.vue?vue&type=script&lang.jsx
|
|
11
|
-
var
|
|
11
|
+
var f = {
|
|
12
12
|
back: {
|
|
13
13
|
label: "返回",
|
|
14
14
|
type: "primary",
|
|
@@ -117,11 +117,15 @@ var l = {
|
|
|
117
117
|
separateLine: !1,
|
|
118
118
|
circle: !0
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, p = {
|
|
121
121
|
name: "Toolbar",
|
|
122
122
|
provide() {
|
|
123
|
-
return { [
|
|
123
|
+
return { [i]: this };
|
|
124
124
|
},
|
|
125
|
+
inject: { tableView: {
|
|
126
|
+
from: r,
|
|
127
|
+
default: null
|
|
128
|
+
} },
|
|
125
129
|
props: {
|
|
126
130
|
searchable: Boolean,
|
|
127
131
|
refreshable: Boolean,
|
|
@@ -143,20 +147,20 @@ var l = {
|
|
|
143
147
|
goBack() {
|
|
144
148
|
t(this.$route.path);
|
|
145
149
|
},
|
|
146
|
-
createButton(t, { label: n, icon: r, type:
|
|
150
|
+
createButton(t, { label: n, icon: r, type: i, separateLine: o = !0, loadable: s, circle: d, onClick: f, title: p }) {
|
|
147
151
|
var m;
|
|
148
152
|
let h, g = ((m = this.label) == null ? void 0 : m[t]) || n;
|
|
149
153
|
return h = f || (["back", "cancel"].includes(t) ? this.goBack : (n) => {
|
|
150
|
-
(e(this.$attrs, { withOn: !0 })[`on${
|
|
151
|
-
}),
|
|
152
|
-
"separate-line":
|
|
154
|
+
(e(this.$attrs, { withOn: !0 })[`on${u(t)}`] || l)(n);
|
|
155
|
+
}), c(a, {
|
|
156
|
+
"separate-line": o,
|
|
153
157
|
icon: r,
|
|
154
158
|
title: p,
|
|
155
159
|
label: g,
|
|
156
|
-
loadable:
|
|
160
|
+
loadable: s,
|
|
157
161
|
circle: d,
|
|
158
162
|
footer: this.footer,
|
|
159
|
-
type:
|
|
163
|
+
type: i,
|
|
160
164
|
onClick: h
|
|
161
165
|
}, null);
|
|
162
166
|
},
|
|
@@ -164,19 +168,19 @@ var l = {
|
|
|
164
168
|
var e, t, r;
|
|
165
169
|
let { createButton: i } = this;
|
|
166
170
|
return (r = (((e = (t = this.$slots)["toolbar-left"]) == null ? void 0 : e.call(t)) || this.buttons.flatMap((e) => {
|
|
167
|
-
let t =
|
|
171
|
+
let t = f[e];
|
|
168
172
|
if (t) {
|
|
169
173
|
var n, r;
|
|
170
174
|
return ((n = (r = this.$slots)[e]) == null ? void 0 : n.call(r)) || i(e, t);
|
|
171
175
|
} else if (e === "slot") {
|
|
172
|
-
var
|
|
173
|
-
let e = ((
|
|
176
|
+
var a, o;
|
|
177
|
+
let e = ((a = (o = this.$slots).default) == null ? void 0 : a.call(o, {
|
|
174
178
|
buttons: this.buttons,
|
|
175
179
|
footer: this.footer
|
|
176
180
|
})) ?? null;
|
|
177
181
|
if (e && e.length === 1) {
|
|
178
182
|
var c;
|
|
179
|
-
return e == null || (c = e[0]) == null || (c = c.children) == null ? void 0 : c.filter((e) => e.type !==
|
|
183
|
+
return e == null || (c = e[0]) == null || (c = c.children) == null ? void 0 : c.filter((e) => e.type !== s);
|
|
180
184
|
}
|
|
181
185
|
return e || [];
|
|
182
186
|
} else return null;
|
|
@@ -190,21 +194,37 @@ var l = {
|
|
|
190
194
|
this.getSettingsButton(),
|
|
191
195
|
this.getSearchButton()
|
|
192
196
|
];
|
|
197
|
+
if (process.env.NODE_ENV === "development") {
|
|
198
|
+
var s;
|
|
199
|
+
(s = this.tableView) != null && s.toggleSearch && a.push(this.createButton("copyColumnWidth", {
|
|
200
|
+
label: "复制列宽",
|
|
201
|
+
title: "复制列宽",
|
|
202
|
+
icon: "el-icon-document-copy",
|
|
203
|
+
separateLine: !1,
|
|
204
|
+
circle: !0,
|
|
205
|
+
onClick: () => {
|
|
206
|
+
let e = Array.from(this.$el.parentNode.querySelectorAll(".el-table__header > colgroup > col"));
|
|
207
|
+
e = e.filter((t, n) => n > 1 && n < e.length - 1).map((e) => `width="${e.getAttribute("width")}"`).join("\n"), d(e, () => {
|
|
208
|
+
o.success("复制成功");
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
193
213
|
return i || a;
|
|
194
214
|
},
|
|
195
215
|
getSearchButton() {
|
|
196
|
-
return this.searchable ? this.createButton("search",
|
|
216
|
+
return this.searchable ? this.createButton("search", f.search) : null;
|
|
197
217
|
},
|
|
198
218
|
getRefreshButton() {
|
|
199
|
-
return this.refreshable ? this.createButton("reload",
|
|
219
|
+
return this.refreshable ? this.createButton("reload", f.reload) : null;
|
|
200
220
|
},
|
|
201
221
|
getSettingsButton() {
|
|
202
|
-
return this.refreshable ? this.createButton("settings",
|
|
222
|
+
return this.refreshable ? this.createButton("settings", f.settings) : null;
|
|
203
223
|
}
|
|
204
224
|
},
|
|
205
225
|
render() {
|
|
206
|
-
return this.footer ?
|
|
226
|
+
return this.footer ? c("div", { class: "footer-bar" }, [this.getLeftButtons()]) : c("div", { class: "toolbar" }, [c("div", { class: "toolbar-left" }, [this.getLeftButtons()]), c("div", { class: "toolbar-right" }, [this.getRightButtons()])]);
|
|
207
227
|
}
|
|
208
228
|
};
|
|
209
229
|
//#endregion
|
|
210
|
-
export {
|
|
230
|
+
export { p as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { useFormItemProps as t } from "../helper/form-item.mjs";
|
|
3
|
-
import { r as n } from "./
|
|
3
|
+
import { r as n } from "./b0ve2YgF.mjs";
|
|
4
4
|
import { allProps as r, predicate as i } from "../props/image.mjs";
|
|
5
5
|
import { ElImage as a } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
2
|
-
import { t as n } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t as n } from "./BTGrh7dw2.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/tree-select.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
5
5
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t } from "./C28bnMcw.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { allProps as e, predicate as t } from "../props/checkbox-group.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
3
|
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
|
-
import { t as a } from "./
|
|
4
|
+
import { t as a } from "./C28bnMcw.mjs";
|
|
5
5
|
import { ElCheckbox as o, ElCheckboxButton as s, ElCheckboxGroup as c } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
7
|
import { computed as l, createVNode as u, defineComponent as d, isVNode as f, mergeProps as p, useModel as m } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/time-select.mjs";
|
|
3
3
|
import { ElTimeSelect as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./ClVh1Lek.mjs";
|
|
2
2
|
import { useFormItemProps as t } from "../helper/form-item.mjs";
|
|
3
|
-
import { r as n } from "./
|
|
3
|
+
import { r as n } from "./b0ve2YgF.mjs";
|
|
4
4
|
import { allProps as r, predicate as i } from "../props/text.mjs";
|
|
5
5
|
import { ElText as a } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/switch.mjs";
|
|
3
3
|
import { ElSwitch as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -123,7 +123,7 @@ var E = {
|
|
|
123
123
|
tips: r.tips,
|
|
124
124
|
below: r.below
|
|
125
125
|
}) : t, M = (r, { emit: i, slots: a, events: o, predicate: s, removeOn: c = !1, attrs: l, block: u, class: d, rules: m, messagePrefix: g = "请输入", extraFormItemProps: _ }) => {
|
|
126
|
-
let v = O(r), b = S(f, null), C = y(() => v.value || r.placeholder === !1 ? "" : r.placeholder === !0 ? `${g}${r.label}` : r.placeholder || `${g}${r.label}`), E = p(r, {
|
|
126
|
+
let v = O(r), b = S(f, null), C = y(() => v.value || r.placeholder === !1 ? "" : r.placeholder === !0 ? `${g}${r.label}` : r.placeholder || `${g ?? ""}${r.label ?? ""}`), E = p(r, {
|
|
127
127
|
rules: m,
|
|
128
128
|
block: w(() => u === void 0 ? r.type === "textarea" && r.block === void 0 ? !0 : r.block : u),
|
|
129
129
|
attrs: l,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import n from "../x-input-tag/index.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/input-tag.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { allProps as e, predicate as t } from "../props/checkbox.mjs";
|
|
2
|
-
import { n, o as r } from "./
|
|
2
|
+
import { n, o as r } from "./b0ve2YgF.mjs";
|
|
3
3
|
import { ElCheckbox as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
5
5
|
import { createVNode as a, mergeProps as o, useModel as s } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { n as e } from "./b0ve2YgF.mjs";
|
|
2
|
+
import { t } from "./C28bnMcw.mjs";
|
|
3
3
|
import { allProps as n } from "../props/input.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/input-number.mjs";
|
|
3
3
|
import { ElInputNumber as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t } from "./
|
|
1
|
+
import { n as e, o as t } from "./b0ve2YgF.mjs";
|
|
2
2
|
import { allProps as n, predicate as r } from "../props/slide.mjs";
|
|
3
3
|
import { ElSlider as i } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
package/form-cascader/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CjCNtCWd.mjs";
|
|
2
2
|
export { e as default };
|
package/form-checkbox/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/saZ_qJOT.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/Dst9_BmZ.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/BxuM-fgJ.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/BhHMGhJ8.mjs";
|
|
2
2
|
export { e as default };
|
package/form-image/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DJlgX5ty.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/C28bnMcw.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/BIy6bO4j.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/DVF9q3oX.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/vHsAJZRT.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/vebd58-O.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/CCpKg0cM.mjs";
|
|
2
2
|
export { e as default };
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/ofu8wJKp.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/CET31mBi.mjs";
|
|
2
2
|
export { e as default };
|
package/form-item/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { s as e } from "../chunks/
|
|
1
|
+
import { s as e } from "../chunks/b0ve2YgF.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/By-W0XXn2.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/CkHQY4ME2.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/3nLaRSbR2.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/y1Q66LEa2.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/XQwnPkab2.mjs";
|
|
2
2
|
export { e as default };
|
package/form-table/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CTFV8OFH2.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/8zYlq-t92.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/Tq3_dajC2.mjs";
|
|
2
2
|
export { e as default };
|
package/form-textarea/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BxcsELcB2.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/SWO35fS42.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/DSTNXl142.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/BYu4QaK72.mjs";
|
|
2
2
|
export { e as default };
|