@web-utils/component 4.0.13 → 4.0.15
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/address-input/index.mjs +15 -13
- package/card/index.mjs +20 -18
- package/carousel/index.mjs +12 -10
- package/chat/index.mjs +56 -45
- package/chunk-file-uploader/index.mjs +378 -36
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
- package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
- package/chunks/FyForm.DriwCJ7b.mjs +765 -0
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
- package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
- package/chunks/TableColumn.BzivvXMF.mjs +337 -0
- package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
- package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
- package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
- package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
- package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
- package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
- package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
- package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
- package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
- package/color-picker/index.mjs +101 -22
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +15 -12
- package/data-card/index.mjs +12 -10
- package/data-card-text/index.mjs +12 -10
- package/data-display/index.mjs +17 -15
- package/data-icons/index.mjs +16 -13
- package/data-imgtext/index.mjs +18 -15
- package/data-operatext/index.mjs +16 -14
- package/data-panel/index.mjs +16 -13
- package/data-pay/index.mjs +20 -16
- package/data-price/index.mjs +16 -14
- package/data-progress/index.mjs +17 -13
- package/data-rotate/index.mjs +15 -12
- package/data-table-picker/index.mjs +18 -15
- package/data-tabs/index.mjs +15 -12
- package/dialog-form/index.mjs +18 -16
- package/dynamic-table/index.mjs +30 -25
- package/editable-progress/index.mjs +11 -9
- package/editable-tree/index.mjs +56 -52
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +23 -22
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +11 -10
- package/flow-designer/index.mjs +1973 -699
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +34 -32
- package/form-cascader/index.mjs +24 -23
- package/form-checkbox/index.mjs +17 -16
- package/form-checkbox-group/index.mjs +23 -20
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +20 -18
- package/form-holder/index.mjs +14 -13
- package/form-input/index.mjs +15 -14
- package/form-input-cron-expression/index.mjs +22 -19
- package/form-input-email/index.mjs +16 -15
- package/form-input-id-card/index.mjs +13 -12
- package/form-input-number/index.mjs +17 -16
- package/form-input-phone-number/index.mjs +22 -21
- package/form-input-tag/index.mjs +15 -14
- package/form-input-time/index.mjs +15 -14
- package/form-item/index.mjs +3 -140
- package/form-item-group/index.mjs +31 -28
- package/form-radio-group/index.mjs +28 -27
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +23 -21
- package/form-switch/index.mjs +17 -16
- package/form-table/index.mjs +17 -16
- package/form-table-plus/index.mjs +22 -21
- package/form-textarea/index.mjs +16 -15
- package/form-tree-select/index.mjs +15 -14
- package/form-tree-select-multiple/index.mjs +15 -14
- package/form-view/index.mjs +39 -35
- package/fy-array/index.mjs +37 -33
- package/fy-cascader/index.mjs +17 -16
- package/fy-checkbox/index.mjs +13 -11
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1147 -1123
- package/fy-date/index.mjs +11 -10
- package/fy-draggable/index.mjs +10 -9
- package/fy-dynamic/index.mjs +25 -22
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +15 -638
- package/fy-form-design/index.mjs +1165 -1127
- package/fy-input/index.mjs +14 -12
- package/fy-input-color/index.mjs +15 -13
- package/fy-input-icon/index.mjs +23 -20
- package/fy-input-map/index.mjs +31 -28
- package/fy-input-number/index.mjs +10 -9
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +37 -33
- package/fy-progress/index.mjs +10 -9
- package/fy-radio/index.mjs +16 -15
- package/fy-rate/index.mjs +11 -10
- package/fy-select/index.mjs +29 -25
- package/fy-slider/index.mjs +12 -11
- package/fy-switch/index.mjs +10 -9
- package/fy-tabs/index.mjs +17 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +24 -18
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +13 -11
- package/iframe-window/index.mjs +10 -9
- package/image-cropper/index.mjs +30 -28
- package/image-preview/index.mjs +14 -12
- package/index.mjs +72 -72
- package/input-number/index.mjs +14 -13
- package/input-number-range/index.mjs +12 -11
- package/license/index.mjs +1 -1
- package/login/index.mjs +26 -21
- package/nav-bar/index.mjs +10 -9
- package/notice/index.mjs +10 -9
- package/package.json +1 -1
- package/page-index/index.mjs +13 -12
- package/page-index-top/index.mjs +28 -23
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +9 -8
- package/pageable-table/index.mjs +182 -172
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +16 -15
- package/picker-table-view/index.mjs +58 -49
- package/present-view/index.mjs +39 -35
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +22 -20
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +10 -9
- package/split-pane/index.mjs +37 -36
- package/static-pageable-table/index.mjs +13 -11
- package/sub-table/index.mjs +49 -36
- package/sub-table-plus/index.mjs +18 -229
- package/swiper/index.mjs +12 -11
- package/table-column/index.mjs +3 -223
- package/table-view/index.mjs +60 -52
- package/tabs-view/index.mjs +19 -17
- package/tag-render/index.mjs +18 -16
- package/text-ellipsis/index.mjs +10 -9
- package/toolbar/index.mjs +14 -13
- package/toolbar-button/index.mjs +14 -13
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +267 -259
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +24 -21
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
package/form-item/index.mjs
CHANGED
|
@@ -1,142 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { hasOwn as I, isDef as D } from "@web-utils/core";
|
|
4
|
-
import { n as L } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
const N = {
|
|
6
|
-
name: "FormItem",
|
|
7
|
-
mixins: [B],
|
|
8
|
-
inject: {
|
|
9
|
-
formHolder: {
|
|
10
|
-
default: {}
|
|
11
|
-
},
|
|
12
|
-
formItemConfig: {
|
|
13
|
-
default: null
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
computed: {
|
|
17
|
-
gutter() {
|
|
18
|
-
let e = this.$parent;
|
|
19
|
-
for (; e && e.$options.componentName !== "ElRow"; )
|
|
20
|
-
e = e.$parent;
|
|
21
|
-
return (e == null ? void 0 : e.gutter) ?? 0;
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
methods: {
|
|
25
|
-
renderFormItem() {
|
|
26
|
-
var x, k, R, y, E, T, H;
|
|
27
|
-
const {
|
|
28
|
-
hideLabel: e,
|
|
29
|
-
label: l,
|
|
30
|
-
labelWidth: u,
|
|
31
|
-
prop: t,
|
|
32
|
-
rules: p,
|
|
33
|
-
$scopedSlots: r,
|
|
34
|
-
elFormItemProps: i,
|
|
35
|
-
elForm: n,
|
|
36
|
-
formHolder: a,
|
|
37
|
-
formItemClass: c,
|
|
38
|
-
required: f,
|
|
39
|
-
block: h,
|
|
40
|
-
half: w,
|
|
41
|
-
wrapCol: W,
|
|
42
|
-
wrapFormItem: P,
|
|
43
|
-
disabled: V,
|
|
44
|
-
formItemConfig: s,
|
|
45
|
-
getRequireRule: j
|
|
46
|
-
} = this;
|
|
47
|
-
let o = p, d = f, b = f, v = h, g = W;
|
|
48
|
-
s && (I(s, "block") && (v = s.block), I(s, "wrapCol") && (g = s.wrapCol));
|
|
49
|
-
const z = a.tableForm ? "" : v && w && g ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
50
|
-
(x = a.requiredFields) != null && x.includes(t) && (d = !0), (V || n != null && n.disabled) && !((k = a.requiredFields) != null && k.includes(t)) ? (o = [], !a.required && !((R = a.requiredFields) != null && R.includes(t)) && (b = !1)) : (!a.required && !((y = a.requiredFields) != null && y.includes(t)) && (d = !1), d && !(o != null && o.length) && t ? o = [j()] : d || (b = !1, o && (o = o.filter((C) => !C.required))));
|
|
51
|
-
const F = (E = r.tips) == null ? void 0 : E.call(r), q = F || this.tips, _ = q ? m("ElTooltip", {
|
|
52
|
-
attrs: {
|
|
53
|
-
effect: "light",
|
|
54
|
-
content: this.tips
|
|
55
|
-
}
|
|
56
|
-
}, [F ? m("div", {
|
|
57
|
-
slot: "content"
|
|
58
|
-
}, [F]) : null, m("i", {
|
|
59
|
-
class: "el-icon-info form-item-input-info"
|
|
60
|
-
})]) : null;
|
|
61
|
-
return P ? m("ElFormItem", {
|
|
62
|
-
style: {
|
|
63
|
-
width: z
|
|
64
|
-
},
|
|
65
|
-
key: `${t}-${d}`,
|
|
66
|
-
class: ["form-item", c, {
|
|
67
|
-
required: b,
|
|
68
|
-
"form-item-hide-label": e
|
|
69
|
-
}],
|
|
70
|
-
scopedSlots: {
|
|
71
|
-
...r,
|
|
72
|
-
default: q ? () => {
|
|
73
|
-
var C;
|
|
74
|
-
return m("div", {
|
|
75
|
-
class: "form-item-input-wrapper"
|
|
76
|
-
}, [(C = r.default) == null ? void 0 : C.call(r), _]);
|
|
77
|
-
} : r.default
|
|
78
|
-
},
|
|
79
|
-
props: {
|
|
80
|
-
...i
|
|
81
|
-
},
|
|
82
|
-
attrs: {
|
|
83
|
-
label: l,
|
|
84
|
-
"label-width": e ? "0" : u,
|
|
85
|
-
prop: t,
|
|
86
|
-
rules: o
|
|
87
|
-
},
|
|
88
|
-
ref: "formItem"
|
|
89
|
-
}) : q ? m("div", {
|
|
90
|
-
class: "form-item-input-wrapper"
|
|
91
|
-
}, [(T = r.default) == null ? void 0 : T.call(r), _]) : m("div", [(H = r.default) == null ? void 0 : H.call(r)]);
|
|
92
|
-
},
|
|
93
|
-
async clearValidate() {
|
|
94
|
-
var e, l;
|
|
95
|
-
await this.$nextTick(), (l = (e = this.$refs.formItem).clearValidate) == null || l.call(e);
|
|
96
|
-
},
|
|
97
|
-
async validate() {
|
|
98
|
-
var e, l;
|
|
99
|
-
await this.$nextTick(), (l = (e = this.$refs.formItem).validate) == null || l.call(e);
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
render() {
|
|
103
|
-
var h, w;
|
|
104
|
-
const {
|
|
105
|
-
computeSpan: e,
|
|
106
|
-
wrapCol: l,
|
|
107
|
-
fixedSpan: u,
|
|
108
|
-
formItemConfig: t,
|
|
109
|
-
renderFormItem: p,
|
|
110
|
-
elColProps: r,
|
|
111
|
-
$scopedSlots: i,
|
|
112
|
-
unwrap: n,
|
|
113
|
-
formHolder: a
|
|
114
|
-
} = this;
|
|
115
|
-
let c = !a.tableForm && l, f = !1;
|
|
116
|
-
return t && (I(t, "wrapCol") && (c = t.wrapCol), I(t, "reactive") && (f = t.reactive)), n ? m("div", [(h = i.default) == null ? void 0 : h.call(i)]) : c ? m("ElCol", {
|
|
117
|
-
props: {
|
|
118
|
-
...r,
|
|
119
|
-
span: u || e,
|
|
120
|
-
...!D(u) && f ? {
|
|
121
|
-
xs: 24,
|
|
122
|
-
sm: 12,
|
|
123
|
-
md: 12,
|
|
124
|
-
lg: 8,
|
|
125
|
-
xl: 6
|
|
126
|
-
} : {}
|
|
127
|
-
}
|
|
128
|
-
}, [p(), (w = i == null ? void 0 : i.below) == null ? void 0 : w.call(i)]) : p();
|
|
129
|
-
}
|
|
130
|
-
}, O = null, A = null;
|
|
131
|
-
var G = /* @__PURE__ */ L(
|
|
132
|
-
N,
|
|
133
|
-
O,
|
|
134
|
-
A,
|
|
135
|
-
!1,
|
|
136
|
-
null,
|
|
137
|
-
null
|
|
138
|
-
);
|
|
139
|
-
const U = G.exports;
|
|
1
|
+
import { F as a } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
2
|
+
import "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
140
3
|
export {
|
|
141
|
-
|
|
4
|
+
a as default
|
|
142
5
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import a from "element-ui/lib/transitions/collapse-transition";
|
|
2
|
+
import d from "../empty-view/index.mjs";
|
|
3
|
+
import n from "element-ui/lib/row";
|
|
1
4
|
import { h as s } from "vue";
|
|
2
|
-
import { n as
|
|
3
|
-
const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"],
|
|
5
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], p = ["$emit", "validate", "clearValidate"], m = {
|
|
4
7
|
name: "FormItemGroup",
|
|
5
8
|
inject: {
|
|
6
9
|
elForm: {
|
|
@@ -39,23 +42,23 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
39
42
|
notDispatch: Boolean
|
|
40
43
|
},
|
|
41
44
|
data() {
|
|
42
|
-
const
|
|
43
|
-
return r.forEach((
|
|
44
|
-
e
|
|
45
|
+
const t = {};
|
|
46
|
+
return r.forEach((e) => {
|
|
47
|
+
t[e] = null;
|
|
45
48
|
}), {
|
|
46
49
|
expand: !0,
|
|
47
|
-
proxyForm:
|
|
50
|
+
proxyForm: t
|
|
48
51
|
};
|
|
49
52
|
},
|
|
50
53
|
computed: {
|
|
51
54
|
formCfg() {
|
|
52
|
-
const
|
|
55
|
+
const t = {
|
|
53
56
|
enabled: this.enabled,
|
|
54
57
|
forbidden: this.disabled
|
|
55
58
|
};
|
|
56
|
-
return r.forEach((
|
|
57
|
-
e
|
|
58
|
-
}),
|
|
59
|
+
return r.forEach((e) => {
|
|
60
|
+
t[e] = this.elForm[e];
|
|
61
|
+
}), t;
|
|
59
62
|
},
|
|
60
63
|
isDisabled() {
|
|
61
64
|
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
@@ -64,16 +67,16 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
64
67
|
watch: {
|
|
65
68
|
collapse: {
|
|
66
69
|
immediate: !0,
|
|
67
|
-
handler(
|
|
68
|
-
this.expand = !
|
|
70
|
+
handler(t) {
|
|
71
|
+
this.expand = !t;
|
|
69
72
|
}
|
|
70
73
|
},
|
|
71
74
|
formCfg: {
|
|
72
75
|
immediate: !0,
|
|
73
76
|
handler() {
|
|
74
|
-
this.proxyForm.disabled = this.isDisabled, r.forEach((
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
+
this.proxyForm.disabled = this.isDisabled, r.forEach((t) => {
|
|
78
|
+
var e;
|
|
79
|
+
t !== "disabled" && (p.includes(t) ? this.proxyForm[t] = (e = this.elForm[t]) == null ? void 0 : e.bind(this.elForm) : this.proxyForm[t] = this.elForm[t]);
|
|
77
80
|
}), this.size && (this.proxyForm.size = this.size);
|
|
78
81
|
}
|
|
79
82
|
}
|
|
@@ -85,14 +88,14 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
85
88
|
this.notDispatch || this.dispatch("FormView", "FormView.removeGroup", [this]);
|
|
86
89
|
},
|
|
87
90
|
methods: {
|
|
88
|
-
dispatch(
|
|
91
|
+
dispatch(t, e, l) {
|
|
89
92
|
let i = this.$parent || this.$root, o = i.$options.name;
|
|
90
|
-
for (; i && (!o || o !==
|
|
93
|
+
for (; i && (!o || o !== t); )
|
|
91
94
|
i = i.$parent, i && (o = i.$options.name);
|
|
92
|
-
i && i.$emit.apply(i, [
|
|
95
|
+
i && i.$emit.apply(i, [e].concat(l));
|
|
93
96
|
},
|
|
94
97
|
renderDefault() {
|
|
95
|
-
return this.$scopedSlots.default ? !this.formHolder.tableForm && this.wrapRow ? s(
|
|
98
|
+
return this.$scopedSlots.default ? !this.formHolder.tableForm && this.wrapRow ? s(n, {
|
|
96
99
|
attrs: {
|
|
97
100
|
gutter: this.gutter
|
|
98
101
|
}
|
|
@@ -100,7 +103,7 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
100
103
|
disabled: this.proxyForm.disabled
|
|
101
104
|
})]) : this.$scopedSlots.default({
|
|
102
105
|
disabled: this.proxyForm.disabled
|
|
103
|
-
}) : s(
|
|
106
|
+
}) : s(d, {
|
|
104
107
|
attrs: {
|
|
105
108
|
"font-size": "14px",
|
|
106
109
|
"empty-tips": "暂无信息"
|
|
@@ -135,23 +138,23 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
135
138
|
style: "color:#ff0000;font-size:14px;"
|
|
136
139
|
}, [" (", this.tips, ")"]) : null, this.$scopedSlots["title-right"] ? this.$scopedSlots["title-right"]() : null]), " ", s("i", {
|
|
137
140
|
class: this.expand ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
138
|
-
})]), s(
|
|
141
|
+
})]), s(a, [s("div", {
|
|
139
142
|
directives: [{
|
|
140
143
|
name: "show",
|
|
141
144
|
value: this.expand
|
|
142
145
|
}]
|
|
143
146
|
}, [this.renderDefault()])])]);
|
|
144
147
|
}
|
|
145
|
-
},
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
}, c = null, u = null;
|
|
149
|
+
var f = /* @__PURE__ */ h(
|
|
150
|
+
m,
|
|
151
|
+
c,
|
|
152
|
+
u,
|
|
150
153
|
!1,
|
|
151
154
|
null,
|
|
152
155
|
null
|
|
153
156
|
);
|
|
154
|
-
const
|
|
157
|
+
const v = f.exports;
|
|
155
158
|
export {
|
|
156
|
-
|
|
159
|
+
v as default
|
|
157
160
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import i from "element-ui/lib/radio-group";
|
|
2
|
+
import { F as l } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as s } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { f as a } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
5
|
+
import { e as u, h as p, n as f } from "../chunks/index.Cn7aq-Et.mjs";
|
|
6
|
+
import { d as c } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
7
|
+
import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
+
const h = u(i).filter((o) => !["value", "placeholder", "disabled"].includes(o)), m = {
|
|
8
9
|
name: "FormRadioGroup",
|
|
9
|
-
mixins: [
|
|
10
|
+
mixins: [s, a, c],
|
|
10
11
|
props: {
|
|
11
12
|
options: {
|
|
12
13
|
type: Array,
|
|
@@ -52,7 +53,7 @@ const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
52
53
|
return "请选择";
|
|
53
54
|
},
|
|
54
55
|
inputProps() {
|
|
55
|
-
return
|
|
56
|
+
return p({ ...f(this.$attrs), ...this.$props }, h);
|
|
56
57
|
},
|
|
57
58
|
labelKey() {
|
|
58
59
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -83,40 +84,40 @@ const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
86
|
methods: {
|
|
86
|
-
emitInput(
|
|
87
|
-
this.$emit("input",
|
|
87
|
+
emitInput(o) {
|
|
88
|
+
this.$emit("input", o);
|
|
88
89
|
},
|
|
89
|
-
toggle(
|
|
90
|
-
this.value ===
|
|
90
|
+
toggle(o) {
|
|
91
|
+
this.value === o[this.valueKey] ? this.emitInput(null) : this.emitInput(o[this.valueKey]);
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
};
|
|
94
|
-
var
|
|
95
|
+
var y = function() {
|
|
95
96
|
var e = this, r = e._self._c;
|
|
96
|
-
return r(
|
|
97
|
-
return [r(
|
|
98
|
-
return r(e.component, { key:
|
|
99
|
-
return
|
|
100
|
-
} } }, [e._v(" " + e._s(
|
|
101
|
-
}) : e._l(e.innerOptions, function(
|
|
102
|
-
return r(e.component, { key:
|
|
97
|
+
return r(l, e._b({ class: ["form-radio-group", { "form-radio-group-row": e.fillRow, inline: e.inline }, e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
98
|
+
return [r(i, e._g(e._b({ class: { "over-flow": e.overFlow }, attrs: { value: e.value, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (t) => e.$emit("input", t) } }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(t) {
|
|
99
|
+
return r(e.component, { key: t[e.valueKey], tag: "Component", attrs: { border: e.border, label: t[e.valueKey] }, nativeOn: { click: function(n) {
|
|
100
|
+
return n.preventDefault(), n.stopPropagation(), e.toggle(t);
|
|
101
|
+
} } }, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
|
|
102
|
+
}) : e._l(e.innerOptions, function(t) {
|
|
103
|
+
return r(e.component, { key: t[e.valueKey], tag: "Component", attrs: { border: e.border, label: t[e.valueKey] } }, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
|
|
103
104
|
})], 2), e._t("append")];
|
|
104
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
105
|
-
return [e._t("error", null, { error:
|
|
105
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: t }) {
|
|
106
|
+
return [e._t("error", null, { error: t })];
|
|
106
107
|
} }, { key: "label", fn: function() {
|
|
107
108
|
return [e._t("label")];
|
|
108
109
|
}, proxy: !0 }, { key: "below", fn: function() {
|
|
109
110
|
return [e._t("below")];
|
|
110
111
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
111
|
-
},
|
|
112
|
-
h,
|
|
112
|
+
}, _ = [], g = /* @__PURE__ */ d(
|
|
113
113
|
m,
|
|
114
114
|
y,
|
|
115
|
+
_,
|
|
115
116
|
!1,
|
|
116
117
|
null,
|
|
117
118
|
null
|
|
118
119
|
);
|
|
119
|
-
const
|
|
120
|
+
const R = g.exports;
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
+
R as default
|
|
122
123
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-radio-group.inline{display:inline}.form-radio-group.inline .el-radio{float:left;margin-right:10px}.form-radio-group .el-form-item__content{flex-direction:row;align-items:end;line-height:normal;display:flex}.form-radio-group.form-radio-group-row.form-radio-group-row-ellipsis .el-radio-group{overflow:hidden}.form-radio-group.form-radio-group-row.form-radio-group-row-ellipsis .el-radio__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.form-radio-group.form-radio-group-row.form-radio-group-row-break-word .el-radio__label{word-wrap:break-word;word-break:break-all}.form-radio-group.form-radio-group-row .el-radio-group{display:block}.form-radio-group.form-radio-group-row .el-radio{flex-flow:row;width:100%;display:flex}.form-radio-group.form-radio-group-row .el-radio__input{flex-shrink:0;top:3px}.form-radio-group.form-radio-group-row .el-radio__label{vertical-align:sub;flex:auto;margin-bottom:6px;padding-left:4px;display:block}.form-radio-group .el-radio-group{line-height:1}.form-radio-group .el-radio{vertical-align:middle;margin-right:10px}.form-radio-group .el-radio__label{padding-left:0;line-height:19px}
|
|
1
|
+
.form-radio-group.inline{display:inline}.form-radio-group.inline .el-radio{float:left;margin-right:10px}.form-radio-group .el-form-item__content{flex-direction:row;align-items:end;line-height:normal;display:flex}.form-radio-group.form-radio-group-row.form-radio-group-row-ellipsis .el-radio-group{overflow:hidden}.form-radio-group.form-radio-group-row.form-radio-group-row-ellipsis .el-radio__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.form-radio-group.form-radio-group-row.form-radio-group-row-break-word .el-radio__label{white-space:normal;word-wrap:break-word;word-break:break-all}.form-radio-group.form-radio-group-row .el-radio-group{display:block}.form-radio-group.form-radio-group-row .el-radio{flex-flow:row;width:100%;display:flex}.form-radio-group.form-radio-group-row .el-radio__input{flex-shrink:0;top:3px}.form-radio-group.form-radio-group-row .el-radio__label{vertical-align:sub;flex:auto;margin-bottom:6px;padding-left:4px;display:block}.form-radio-group .el-radio-group{line-height:1}.form-radio-group .el-radio{vertical-align:middle;margin-right:10px}.form-radio-group .el-radio__label{padding-left:0;line-height:19px}
|
package/form-select/index.mjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import a from "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
|
|
1
|
+
import l from "element-ui/lib/option";
|
|
2
|
+
import o from "element-ui/lib/select";
|
|
3
|
+
import { F as n } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
4
|
+
import { f as a } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
5
|
+
import { f as p } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
6
|
+
import { d as u } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
7
|
+
import { e as h, h as m, n as f } from "../chunks/index.Cn7aq-Et.mjs";
|
|
8
|
+
import { isString as c, isPlainObject as d, isNumber as b } from "@web-utils/core";
|
|
9
|
+
import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
10
|
+
const y = h(o).filter((e) => !["value", "placeholder", "disabled"].includes(e)), g = {
|
|
9
11
|
name: "FormSelect",
|
|
10
|
-
mixins: [
|
|
12
|
+
mixins: [a, p, u],
|
|
11
13
|
props: {
|
|
12
14
|
options: {
|
|
13
15
|
type: Array,
|
|
@@ -59,7 +61,7 @@ const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)),
|
|
|
59
61
|
return "请选择";
|
|
60
62
|
},
|
|
61
63
|
inputProps() {
|
|
62
|
-
return
|
|
64
|
+
return m({ ...f(this.$attrs), ...this.$props }, y);
|
|
63
65
|
},
|
|
64
66
|
innerOptions() {
|
|
65
67
|
if (this.dictType)
|
|
@@ -98,7 +100,7 @@ const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)),
|
|
|
98
100
|
if (this.year) {
|
|
99
101
|
const e = (/* @__PURE__ */ new Date()).getFullYear(), t = [];
|
|
100
102
|
let i = 10;
|
|
101
|
-
|
|
103
|
+
b(this.year) && (i = this.year);
|
|
102
104
|
for (let r = -i; r <= i; r++) {
|
|
103
105
|
const s = e + r;
|
|
104
106
|
t.push({
|
|
@@ -131,7 +133,7 @@ const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)),
|
|
|
131
133
|
try {
|
|
132
134
|
this.loading = !0;
|
|
133
135
|
const i = await this.remoteMethod(e, this.prop);
|
|
134
|
-
((t = i.data.data) == null ? void 0 : t.length) >= 0 ?
|
|
136
|
+
((t = i.data.data) == null ? void 0 : t.length) >= 0 ? c(i.data.data[0]) ? this.remoteOptions = i.data.data.map((r) => ({ [this.props.value]: r, [this.props.label]: r })) : d(i.data.data[0]) && (this.remoteOptions = i.data.data) : this.remoteOptions = [];
|
|
135
137
|
} catch {
|
|
136
138
|
}
|
|
137
139
|
this.loading = !1;
|
|
@@ -144,13 +146,13 @@ const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)),
|
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
};
|
|
147
|
-
var
|
|
149
|
+
var v = function() {
|
|
148
150
|
var t = this, i = t._self._c;
|
|
149
|
-
return i(
|
|
150
|
-
return [i(
|
|
151
|
+
return i(n, t._b({ attrs: { rules: t.computeRules, disabled: t.inputDisabled }, scopedSlots: t._u([{ key: "default", fn: function() {
|
|
152
|
+
return [i(o, t._g(t._b({ attrs: { value: t.innerValue, filterable: t.filterable || !!t.year, placeholder: t.inputDisabled ? "--" : t.computePlaceholder, "allow-create": t.allowCreate || !!t.year, disabled: t.inputDisabled, multiple: t.multiple, "multiple-limit": t.multipleLimit, loading: t.loading, remote: t.remote, "remote-method": t.fetchOptions, clearable: "" }, on: { clear: t.reloadOptions, input: t.emitInput } }, "ElSelect", t.inputProps, !1), t.listeners), [t._t("default", function() {
|
|
151
153
|
return [t._l(t.innerOptions, function(r) {
|
|
152
154
|
return [t._t("option", function() {
|
|
153
|
-
return [i(
|
|
155
|
+
return [i(l, { key: r[t.props.value], attrs: { value: r[t.props.value], label: r[t.props.label] } })];
|
|
154
156
|
}, { value: r[t.props.value], label: r[t.props.label] })];
|
|
155
157
|
})];
|
|
156
158
|
})], 2), t.$slots.warn ? i("div", { staticClass: "el-form-item__warn" }, [t._t("warn")], 2) : t._e()];
|
|
@@ -165,15 +167,15 @@ var _ = function() {
|
|
|
165
167
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
166
168
|
return [t._t("tips")];
|
|
167
169
|
}, proxy: !0 }], null, !0) }, "FormItem", t.formItemProps, !1));
|
|
168
|
-
},
|
|
169
|
-
y,
|
|
170
|
-
_,
|
|
170
|
+
}, S = [], O = /* @__PURE__ */ _(
|
|
171
171
|
g,
|
|
172
|
+
v,
|
|
173
|
+
S,
|
|
172
174
|
!1,
|
|
173
175
|
null,
|
|
174
176
|
null
|
|
175
177
|
);
|
|
176
|
-
const
|
|
178
|
+
const I = O.exports;
|
|
177
179
|
export {
|
|
178
|
-
|
|
180
|
+
I as default
|
|
179
181
|
};
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { n as s } from "../chunks/
|
|
5
|
-
|
|
1
|
+
import n from "element-ui/lib/switch";
|
|
2
|
+
import { F as a } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as l } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { e as u, h as i, n as s } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const m = u(n).filter((t) => !["value", "placeholder", "disabled"].includes(t)), c = {
|
|
6
7
|
name: "FormSwitch",
|
|
7
|
-
mixins: [
|
|
8
|
+
mixins: [l],
|
|
8
9
|
props: {
|
|
9
10
|
value: [String, Number, Boolean],
|
|
10
11
|
activeValue: {
|
|
@@ -18,7 +19,7 @@ const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
18
19
|
},
|
|
19
20
|
computed: {
|
|
20
21
|
inputProps() {
|
|
21
|
-
return
|
|
22
|
+
return i({ ...s(this.$attrs), ...this.$props }, m);
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
25
|
methods: {
|
|
@@ -27,28 +28,28 @@ const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
|
-
var
|
|
31
|
+
var f = function() {
|
|
31
32
|
var e = this, r = e._self._c;
|
|
32
|
-
return r(
|
|
33
|
+
return r(a, e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
33
34
|
return [e._t("default", function() {
|
|
34
|
-
return [r(
|
|
35
|
+
return [r(n, e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { "active-value": e.activeValue, "inactive-value": e.inactiveValue, value: e.value, readonly: e.readonly, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput }, scopedSlots: e._u([{ key: "append", fn: function() {
|
|
35
36
|
return [e._t("append")];
|
|
36
37
|
}, proxy: !0 }], null, !0) }, "ElSwitch", e.inputProps, !1), e.listeners))];
|
|
37
38
|
})];
|
|
38
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
39
|
-
return [e._t("error", null, { error:
|
|
39
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: o }) {
|
|
40
|
+
return [e._t("error", null, { error: o })];
|
|
40
41
|
} }, { key: "label", fn: function() {
|
|
41
42
|
return [e._t("label")];
|
|
42
43
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
43
|
-
}, d = [],
|
|
44
|
+
}, d = [], _ = /* @__PURE__ */ p(
|
|
44
45
|
c,
|
|
45
|
-
|
|
46
|
+
f,
|
|
46
47
|
d,
|
|
47
48
|
!1,
|
|
48
49
|
null,
|
|
49
50
|
null
|
|
50
51
|
);
|
|
51
|
-
const
|
|
52
|
+
const P = _.exports;
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
P as default
|
|
54
55
|
};
|
package/form-table/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { n as c } from "../chunks/
|
|
5
|
-
|
|
1
|
+
import u from "../sub-table/index.mjs";
|
|
2
|
+
import { F as s } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as d } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { h as m, n as c } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const p = Object.keys(u.props).filter((l) => !["value", "placeholder", "disabled"].includes(l)), f = {
|
|
6
7
|
name: "FormTable",
|
|
7
|
-
mixins: [
|
|
8
|
+
mixins: [d],
|
|
8
9
|
emits: ["add-row"],
|
|
9
10
|
props: {
|
|
10
11
|
value: Array,
|
|
@@ -39,7 +40,7 @@ const i = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled
|
|
|
39
40
|
},
|
|
40
41
|
computed: {
|
|
41
42
|
inputProps() {
|
|
42
|
-
return
|
|
43
|
+
return m({ ...c(this.$attrs), ...this.$props }, p);
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
methods: {
|
|
@@ -48,12 +49,12 @@ const i = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
|
-
var
|
|
52
|
+
var y = function() {
|
|
52
53
|
var e = this, r = e._self._c;
|
|
53
|
-
return r(
|
|
54
|
-
return [r(
|
|
55
|
-
return { key: n.prop, fn: function({ row: o, column: t, index:
|
|
56
|
-
return [e._t(n.prop, null, { row: o, column: t, index:
|
|
54
|
+
return r(s, e._b({ attrs: { block: e.block, rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
55
|
+
return [r(u, e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { status: e.status, value: e.value, prop: e.prop, editable: e.editable, columns: e.columns, readonly: e.readonly, "allow-empty": e.allowEmpty, disabled: e.inputDisabled, "handle-column": e.handleColumn, "show-handle-column-add-button": e.showHandleColumnAddButton, "show-empty-add-button": e.showEmptyAddButton, placeholder: e.computePlaceholder }, on: { "selection-change": e.onSelectionChange, input: (n) => e.$emit("input", n) }, scopedSlots: e._u([e._l(e.columns, function(n) {
|
|
56
|
+
return { key: n.prop, fn: function({ row: o, column: t, index: a }) {
|
|
57
|
+
return [e._t(n.prop, null, { row: o, column: t, index: a })];
|
|
57
58
|
} };
|
|
58
59
|
}), { key: "columns", fn: function({ columns: n }) {
|
|
59
60
|
return [e._t("columns", null, { columns: n })];
|
|
@@ -71,15 +72,15 @@ var f = function() {
|
|
|
71
72
|
} }, { key: "label", fn: function() {
|
|
72
73
|
return [e._t("label")];
|
|
73
74
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
74
|
-
},
|
|
75
|
-
p,
|
|
75
|
+
}, h = [], _ = /* @__PURE__ */ i(
|
|
76
76
|
f,
|
|
77
77
|
y,
|
|
78
|
+
h,
|
|
78
79
|
!1,
|
|
79
80
|
null,
|
|
80
81
|
null
|
|
81
82
|
);
|
|
82
|
-
const
|
|
83
|
+
const x = _.exports;
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
+
x as default
|
|
85
86
|
};
|