@web-utils/component 3.0.6 → 3.1.0
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 +20 -57
- package/affix/index.mjs +26 -47
- package/aside-menu/index.mjs +18 -43
- package/avatar/index.mjs +27 -49
- package/awesome-button/index.mjs +35 -43
- package/capsule-tab/index.mjs +16 -34
- package/card/index.mjs +21 -76
- package/carousel/index.mjs +14 -49
- package/chat/index.mjs +104 -414
- package/chunk-file-uploader/index.mjs +21 -38
- package/chunks/FormTemp.aa57efb4.mjs +125 -0
- package/code-mirror-editor/index.mjs +69 -79
- package/color-picker/index.mjs +29 -60
- package/comment/index.mjs +17 -48
- package/confirm-button/index.mjs +11 -19
- package/confirmable/index.mjs +12 -20
- package/context-menu/index.mjs +42 -144
- package/count-up/index.mjs +18 -25
- package/custom-scrollbar/index.mjs +13 -22
- package/data-box/index.mjs +15 -66
- package/data-card/index.mjs +16 -65
- package/data-cardtext/index.mjs +16 -52
- package/data-display/index.mjs +18 -62
- package/data-icons/index.mjs +16 -68
- package/data-imgtext/index.mjs +18 -79
- package/data-operatext/index.mjs +18 -75
- package/data-panel/index.mjs +16 -63
- package/data-pay/index.mjs +20 -122
- package/data-price/index.mjs +18 -60
- package/data-progress/index.mjs +16 -67
- package/data-rotate/index.mjs +16 -66
- package/data-table-picker/index.mjs +25 -88
- package/data-tabs/index.mjs +16 -64
- package/dialog-form/index.mjs +48 -94
- package/dynamic-table/index.mjs +43 -127
- package/e-charts/index.mjs +21 -34
- package/easy-popup/index.mjs +35 -61
- package/editable-progress/index.mjs +22 -77
- package/editable-tree/index.mjs +235 -546
- package/egd-collapse/index.mjs +13 -26
- package/egd-collapse-item/index.mjs +27 -87
- package/element-dialog/index.mjs +69 -133
- package/empty-view/index.mjs +13 -33
- package/error-view/index.mjs +14 -34
- package/flex-column/index.mjs +15 -23
- package/flex-item/index.mjs +18 -26
- package/flex-row/index.mjs +23 -31
- package/flex-scroller/index.mjs +16 -27
- package/flow/index.mjs +70 -110
- package/flow-designer/index.mjs +1215 -4804
- package/flow-node/index.mjs +15 -51
- package/flow-viewer/index.mjs +64 -89
- package/form-block/index.mjs +43 -62
- package/form-button/index.mjs +10 -18
- package/form-cascader/index.mjs +49 -100
- package/form-checkbox-group/index.mjs +43 -110
- package/form-date-picker/index.mjs +51 -97
- package/form-holder/index.mjs +25 -42
- package/form-input/index.mjs +40 -90
- package/form-input-email/index.mjs +35 -79
- package/form-input-id-card/index.mjs +40 -87
- package/form-input-number/index.mjs +42 -102
- package/form-input-phone-number/index.mjs +34 -75
- package/form-input-tag/index.mjs +31 -73
- package/form-input-time/index.mjs +42 -87
- package/form-item/index.mjs +70 -89
- package/form-item-config-provider/index.mjs +12 -20
- package/form-item-group/index.mjs +46 -65
- package/form-radio-group/index.mjs +50 -108
- package/form-select/index.mjs +44 -95
- package/form-switch/index.mjs +38 -85
- package/form-textarea/index.mjs +31 -75
- package/form-view/index.mjs +112 -260
- package/fy-array/index.mjs +35 -121
- package/fy-article/index.mjs +12 -43
- package/fy-cascader/index.mjs +26 -67
- package/fy-checkbox/index.mjs +27 -77
- package/fy-code/index.mjs +19 -33
- package/fy-curd/index.mjs +810 -2017
- package/fy-date/index.mjs +18 -59
- package/fy-draggable/index.mjs +81 -140
- package/fy-dynamic/index.mjs +85 -204
- package/fy-empty/index.mjs +14 -35
- package/fy-form/index.mjs +254 -571
- package/fy-form-design/index.mjs +1489 -6084
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +34 -104
- package/fy-input-color/index.mjs +22 -67
- package/fy-input-icon/index.mjs +37 -122
- package/fy-input-map/index.mjs +57 -149
- package/fy-input-number/index.mjs +18 -53
- package/fy-input-table/index.mjs +36 -102
- package/fy-input-tree/index.mjs +51 -138
- package/fy-progress/index.mjs +12 -31
- package/fy-radio/index.mjs +20 -51
- package/fy-rate/index.mjs +18 -51
- package/fy-select/index.mjs +49 -134
- package/fy-slider/index.mjs +19 -52
- package/fy-switch/index.mjs +18 -48
- package/fy-tabs/index.mjs +19 -51
- package/fy-time/index.mjs +22 -62
- package/fy-title/index.mjs +14 -25
- package/fy-tree/index.mjs +74 -216
- package/fy-u-editor/index.mjs +50 -64
- package/fy-upload/index.mjs +167 -338
- package/guide-steps/index.mjs +33 -53
- package/highlight-j-s/index.mjs +13 -27
- package/icon-card/index.mjs +12 -36
- package/icon-temp/index.mjs +12 -34
- package/iframe-window/index.mjs +13 -40
- package/image-cropper/index.mjs +46 -171
- package/image-preview/index.mjs +54 -168
- package/image-viewer/index.mjs +24 -50
- package/index.css +1 -0
- package/index.mjs +3973 -501
- package/input-number/index.mjs +84 -173
- package/input-number-range/index.mjs +20 -70
- package/j-s-x-component/index.mjs +3 -3
- package/keep-view-alive/index.mjs +47 -55
- package/keyboard/index.mjs +100 -113
- package/license/index.mjs +34 -51
- package/loading-view/index.mjs +14 -34
- package/login/index.mjs +33 -161
- package/monaco-editor/index.mjs +13 -21
- package/name-avatar/index.mjs +13 -32
- package/nav-bar/index.mjs +12 -31
- package/not-implement/index.mjs +14 -25
- package/notice/index.mjs +32 -80
- package/package.json +1 -1
- package/page/index.mjs +11 -23
- package/page-header/index.mjs +16 -37
- package/page-index/index.mjs +42 -93
- package/page-index-top/index.mjs +42 -84
- package/page-skeleton/index.mjs +24 -39
- package/page-skeleton-new/index.mjs +21 -68
- package/pageable-table/index.mjs +105 -227
- package/pageable-view/index.mjs +30 -83
- package/photo-swipe/index.mjs +62 -87
- package/present-view/index.mjs +114 -267
- package/queue/index.mjs +14 -29
- package/record-video/index.mjs +29 -66
- package/resize-observer/index.mjs +18 -30
- package/search/index.mjs +47 -81
- package/search-popover/index.mjs +57 -329
- package/sign/index.mjs +43 -60
- package/sign-panel/index.mjs +40 -151
- package/skeleton/index.mjs +18 -44
- package/split-pane/index.mjs +45 -129
- package/stateful/index.mjs +18 -26
- package/static-pageable-table/index.mjs +18 -44
- package/swiper/index.mjs +53 -94
- package/tab/index.mjs +13 -39
- package/tab-item/index.mjs +23 -37
- package/table-column/index.mjs +27 -35
- package/table-view/index.mjs +89 -209
- package/tag-render/index.mjs +34 -69
- package/text-ellipsis/index.mjs +22 -47
- package/tinymce-editor/index.mjs +174 -285
- package/toolbar/index.mjs +21 -42
- package/toolbar-button/index.mjs +25 -54
- package/verify/index.mjs +16 -29
- package/vue-cron/index.mjs +272 -1089
- package/vue-qr-code/index.mjs +19 -27
- package/vue-quill-editor/index.mjs +15 -27
- package/vue-tags-input/index.mjs +104 -224
- package/vue-tree-select/index.mjs +595 -742
- package/vue-video-player/index.mjs +42 -57
- package/watermark/index.mjs +27 -35
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +50 -112
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
package/form-cascader/index.mjs
CHANGED
|
@@ -1,82 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
2
|
var n = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var o = (
|
|
5
|
-
for (var r in
|
|
6
|
-
|
|
3
|
+
var p = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var o = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, l = (t, e) => {
|
|
5
|
+
for (var r in e || (e = {}))
|
|
6
|
+
p.call(e, r) && o(t, r, e[r]);
|
|
7
7
|
if (n)
|
|
8
|
-
for (var r of n(
|
|
9
|
-
|
|
10
|
-
return
|
|
8
|
+
for (var r of n(e))
|
|
9
|
+
u.call(e, r) && o(t, r, e[r]);
|
|
10
|
+
return t;
|
|
11
11
|
};
|
|
12
|
-
import { f as
|
|
13
|
-
import { f } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
12
|
+
import { f as c } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { f as d } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
14
|
import s from "element-ui/lib/cascader";
|
|
15
|
-
import { d as
|
|
16
|
-
import { findTreeChildren as
|
|
17
|
-
import { cloneDeep as
|
|
18
|
-
import { n as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
attrs: {
|
|
23
|
-
rules: e.computeRules,
|
|
24
|
-
disabled: e.inputDisabled
|
|
25
|
-
},
|
|
26
|
-
scopedSlots: e._u([{
|
|
27
|
-
key: "default",
|
|
28
|
-
fn: function() {
|
|
29
|
-
return [e._t("default", function() {
|
|
30
|
-
return [r("ElCascader", e._g(e._b({
|
|
31
|
-
class: {
|
|
32
|
-
"is-readonly": e.readonly
|
|
33
|
-
},
|
|
34
|
-
staticStyle: {
|
|
35
|
-
width: "100%"
|
|
36
|
-
},
|
|
37
|
-
attrs: {
|
|
38
|
-
value: e.inputVal,
|
|
39
|
-
"show-all-levels": e.showAllLevels,
|
|
40
|
-
separator: e.separator,
|
|
41
|
-
readonly: e.readonly,
|
|
42
|
-
options: e.innerOptions,
|
|
43
|
-
props: {
|
|
44
|
-
checkStrictly: e.checkStrictly,
|
|
45
|
-
label: e.labelKey,
|
|
46
|
-
value: e.valueKey
|
|
47
|
-
},
|
|
48
|
-
disabled: e.inputDisabled,
|
|
49
|
-
placeholder: e.computePlaceholder
|
|
50
|
-
},
|
|
51
|
-
on: {
|
|
52
|
-
input: e.emitInput
|
|
53
|
-
}
|
|
54
|
-
}, "ElCascader", e.inputProps, !1), e.listeners))];
|
|
55
|
-
})];
|
|
56
|
-
},
|
|
57
|
-
proxy: !0
|
|
58
|
-
}, {
|
|
59
|
-
key: "error",
|
|
60
|
-
fn: function(i) {
|
|
61
|
-
var p = i.error;
|
|
62
|
-
return [e._t("error", null, {
|
|
63
|
-
error: p
|
|
64
|
-
})];
|
|
65
|
-
}
|
|
66
|
-
}, {
|
|
67
|
-
key: "label",
|
|
68
|
-
fn: function() {
|
|
69
|
-
return [e._t("label")];
|
|
70
|
-
},
|
|
71
|
-
proxy: !0
|
|
72
|
-
}], null, !0)
|
|
73
|
-
}, "FormItem", e.formItemProps, !1));
|
|
74
|
-
}, x = [];
|
|
75
|
-
const P = Object.keys(s.props || s.default.props).filter(
|
|
76
|
-
(e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)
|
|
77
|
-
), w = {
|
|
15
|
+
import { d as m, n as f } from "../chunks/index.57f871af.mjs";
|
|
16
|
+
import { findTreeChildren as h, setParent as y } from "@web-utils/core";
|
|
17
|
+
import { cloneDeep as v } from "@web-utils/integrations/lodash";
|
|
18
|
+
import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
19
|
+
const b = Object.keys(s.props || s.default.props).filter(
|
|
20
|
+
(t) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(t)
|
|
21
|
+
), S = {
|
|
78
22
|
name: "FormCascader",
|
|
79
|
-
mixins: [
|
|
23
|
+
mixins: [c, d],
|
|
80
24
|
props: {
|
|
81
25
|
value: {
|
|
82
26
|
type: [String, Number]
|
|
@@ -114,52 +58,57 @@ const P = Object.keys(s.props || s.default.props).filter(
|
|
|
114
58
|
},
|
|
115
59
|
computed: {
|
|
116
60
|
inputProps() {
|
|
117
|
-
return
|
|
61
|
+
return m(l(l({}, f(this.$attrs)), this.$props), b);
|
|
118
62
|
},
|
|
119
63
|
inputVal() {
|
|
120
|
-
let [
|
|
121
|
-
const
|
|
122
|
-
for (;
|
|
123
|
-
|
|
124
|
-
return
|
|
64
|
+
let [t] = h(this.innerOptions, (r) => r[this.valueKey] === this.value);
|
|
65
|
+
const e = [];
|
|
66
|
+
for (; t; )
|
|
67
|
+
e.push(t[this.valueKey]), t = t.parent;
|
|
68
|
+
return e.reverse();
|
|
125
69
|
}
|
|
126
70
|
},
|
|
127
71
|
watch: {
|
|
128
72
|
options: {
|
|
129
73
|
immediate: !0,
|
|
130
|
-
handler(
|
|
131
|
-
if (
|
|
132
|
-
const
|
|
133
|
-
|
|
74
|
+
handler(t) {
|
|
75
|
+
if (t) {
|
|
76
|
+
const e = v(t);
|
|
77
|
+
y(e), this.innerOptions = e;
|
|
134
78
|
} else
|
|
135
79
|
this.innerOptions = [];
|
|
136
80
|
}
|
|
137
81
|
}
|
|
138
82
|
},
|
|
139
83
|
methods: {
|
|
140
|
-
emitInput(
|
|
141
|
-
const
|
|
142
|
-
this.$emit("input",
|
|
84
|
+
emitInput(t) {
|
|
85
|
+
const e = this.last ? t[t.length - 1] : t;
|
|
86
|
+
this.$emit("input", e);
|
|
143
87
|
}
|
|
144
88
|
}
|
|
145
|
-
}
|
|
146
|
-
var
|
|
147
|
-
|
|
89
|
+
};
|
|
90
|
+
var k = function() {
|
|
91
|
+
var e = this, r = e._self._c;
|
|
92
|
+
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
93
|
+
return [e._t("default", function() {
|
|
94
|
+
return [r("ElCascader", e._g(e._b({ class: { "is-readonly": e.readonly }, staticStyle: { width: "100%" }, attrs: { value: e.inputVal, "show-all-levels": e.showAllLevels, separator: e.separator, readonly: e.readonly, options: e.innerOptions, props: { checkStrictly: e.checkStrictly, label: e.labelKey, value: e.valueKey }, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCascader", e.inputProps, !1), e.listeners))];
|
|
95
|
+
})];
|
|
96
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: a }) {
|
|
97
|
+
return [e._t("error", null, { error: a })];
|
|
98
|
+
} }, { key: "label", fn: function() {
|
|
99
|
+
return [e._t("label")];
|
|
100
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
101
|
+
}, P = [], w = /* @__PURE__ */ _(
|
|
102
|
+
S,
|
|
148
103
|
k,
|
|
149
|
-
|
|
104
|
+
P,
|
|
150
105
|
!1,
|
|
151
|
-
|
|
106
|
+
null,
|
|
152
107
|
null,
|
|
153
108
|
null,
|
|
154
109
|
null
|
|
155
110
|
);
|
|
156
|
-
|
|
157
|
-
for (let t in a)
|
|
158
|
-
this[t] = a[t];
|
|
159
|
-
}
|
|
160
|
-
const E = /* @__PURE__ */ function() {
|
|
161
|
-
return C.exports;
|
|
162
|
-
}();
|
|
111
|
+
const B = w.exports;
|
|
163
112
|
export {
|
|
164
|
-
|
|
113
|
+
B as default
|
|
165
114
|
};
|
|
@@ -1,102 +1,24 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
2
|
var i = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var s = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, l = (r, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
u.call(e, t) && s(r, t, e[t]);
|
|
7
7
|
if (i)
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
8
|
+
for (var t of i(e))
|
|
9
|
+
p.call(e, t) && s(r, t, e[t]);
|
|
10
|
+
return r;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
-
import { f as
|
|
14
|
-
import { d, n as
|
|
15
|
-
import
|
|
16
|
-
import { n as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class: ["form-checkbox-group", {
|
|
21
|
-
"form-checkbox-group-row": e.fillRow
|
|
22
|
-
}, e.ellipsis ? "form-checkbox-group-row-ellipsis" : e.fillRow ? "form-checkbox-group-row-break-word" : ""],
|
|
23
|
-
attrs: {
|
|
24
|
-
rules: e.computeRules,
|
|
25
|
-
disabled: e.inputDisabled
|
|
26
|
-
},
|
|
27
|
-
scopedSlots: e._u([{
|
|
28
|
-
key: "default",
|
|
29
|
-
fn: function() {
|
|
30
|
-
return [r("ElCheckboxGroup", e._g(e._b({
|
|
31
|
-
attrs: {
|
|
32
|
-
disabled: e.inputDisabled,
|
|
33
|
-
value: e.computeVal,
|
|
34
|
-
placeholder: e.computePlaceholder
|
|
35
|
-
},
|
|
36
|
-
on: {
|
|
37
|
-
input: e.emitInput
|
|
38
|
-
}
|
|
39
|
-
}, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(o) {
|
|
40
|
-
return r("ElCheckbox", {
|
|
41
|
-
key: o[e.valueKey],
|
|
42
|
-
attrs: {
|
|
43
|
-
label: o[e.valueKey]
|
|
44
|
-
}
|
|
45
|
-
}, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
|
|
46
|
-
}), 1), e.computeVal.includes(e.otherVal) ? r("FormInput", {
|
|
47
|
-
staticClass: "form-checkbox-group-other",
|
|
48
|
-
style: e.otherLabel ? {
|
|
49
|
-
width: e.otherWidth
|
|
50
|
-
} : {
|
|
51
|
-
marginBottom: 0,
|
|
52
|
-
width: e.otherWidth
|
|
53
|
-
},
|
|
54
|
-
attrs: {
|
|
55
|
-
"wrap-col": !1,
|
|
56
|
-
"label-width": "0",
|
|
57
|
-
prop: e.otherProp,
|
|
58
|
-
required: !!e.otherProp,
|
|
59
|
-
placeholder: e.otherPlaceholder,
|
|
60
|
-
label: e.otherLabel,
|
|
61
|
-
"show-message": !!e.otherLabel,
|
|
62
|
-
value: e.other
|
|
63
|
-
},
|
|
64
|
-
on: {
|
|
65
|
-
input: function(o) {
|
|
66
|
-
return e.$emit("update:other", o);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}) : e._e()];
|
|
70
|
-
},
|
|
71
|
-
proxy: !0
|
|
72
|
-
}, {
|
|
73
|
-
key: "error",
|
|
74
|
-
fn: function(o) {
|
|
75
|
-
var u = o.error;
|
|
76
|
-
return [e._t("error", null, {
|
|
77
|
-
error: u
|
|
78
|
-
})];
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
|
-
key: "label",
|
|
82
|
-
fn: function() {
|
|
83
|
-
return [e._t("label")];
|
|
84
|
-
},
|
|
85
|
-
proxy: !0
|
|
86
|
-
}, {
|
|
87
|
-
key: "below",
|
|
88
|
-
fn: function() {
|
|
89
|
-
return [e._t("below")];
|
|
90
|
-
},
|
|
91
|
-
proxy: !0
|
|
92
|
-
}], null, !0)
|
|
93
|
-
}, "FormItem", e.formItemProps, !1));
|
|
94
|
-
}, v = [];
|
|
95
|
-
const x = Object.keys(s.props || s.default.props).filter(
|
|
96
|
-
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
97
|
-
), g = {
|
|
12
|
+
import { f as h } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { f as c } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
+
import { d as f, n as m } from "../chunks/index.57f871af.mjs";
|
|
15
|
+
import n from "element-ui/lib/checkbox-group";
|
|
16
|
+
import { n as d } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
17
|
+
const b = Object.keys(n.props || n.default.props).filter(
|
|
18
|
+
(r) => !["value", "placeholder", "disabled"].includes(r)
|
|
19
|
+
), y = {
|
|
98
20
|
name: "FormCheckboxGroup",
|
|
99
|
-
mixins: [
|
|
21
|
+
mixins: [h, c],
|
|
100
22
|
props: {
|
|
101
23
|
options: {
|
|
102
24
|
type: Array,
|
|
@@ -150,7 +72,7 @@ const x = Object.keys(s.props || s.default.props).filter(
|
|
|
150
72
|
return this.classic ? "value" : this.valueProp;
|
|
151
73
|
},
|
|
152
74
|
inputProps() {
|
|
153
|
-
return
|
|
75
|
+
return f(l(l({}, m(this.$attrs)), this.$props), b);
|
|
154
76
|
},
|
|
155
77
|
innerOptions() {
|
|
156
78
|
return this.gender ? [
|
|
@@ -178,28 +100,39 @@ const x = Object.keys(s.props || s.default.props).filter(
|
|
|
178
100
|
}
|
|
179
101
|
},
|
|
180
102
|
methods: {
|
|
181
|
-
emitInput(
|
|
182
|
-
this.split ? this.$emit("input",
|
|
103
|
+
emitInput(r) {
|
|
104
|
+
this.split ? this.$emit("input", r.join(",")) : this.$emit("input", r);
|
|
183
105
|
}
|
|
184
106
|
}
|
|
185
|
-
}
|
|
186
|
-
var
|
|
187
|
-
|
|
107
|
+
};
|
|
108
|
+
var _ = function() {
|
|
109
|
+
var e = this, t = e._self._c;
|
|
110
|
+
return t("FormItem", e._b({ class: [
|
|
111
|
+
"form-checkbox-group",
|
|
112
|
+
{ "form-checkbox-group-row": e.fillRow },
|
|
113
|
+
e.ellipsis ? "form-checkbox-group-row-ellipsis" : e.fillRow ? "form-checkbox-group-row-break-word" : ""
|
|
114
|
+
], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
115
|
+
return [t("ElCheckboxGroup", e._g(e._b({ attrs: { disabled: e.inputDisabled, value: e.computeVal, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(o) {
|
|
116
|
+
return t("ElCheckbox", { key: o[e.valueKey], attrs: { label: o[e.valueKey] } }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
|
|
117
|
+
}), 1), e.computeVal.includes(e.otherVal) ? t("FormInput", { staticClass: "form-checkbox-group-other", style: e.otherLabel ? { width: e.otherWidth } : { marginBottom: 0, width: e.otherWidth }, attrs: { "wrap-col": !1, "label-width": "0", prop: e.otherProp, required: !!e.otherProp, placeholder: e.otherPlaceholder, label: e.otherLabel, "show-message": !!e.otherLabel, value: e.other }, on: { input: (o) => e.$emit("update:other", o) } }) : e._e()];
|
|
118
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: o }) {
|
|
119
|
+
return [e._t("error", null, { error: o })];
|
|
120
|
+
} }, { key: "label", fn: function() {
|
|
121
|
+
return [e._t("label")];
|
|
122
|
+
}, proxy: !0 }, { key: "below", fn: function() {
|
|
123
|
+
return [e._t("below")];
|
|
124
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
125
|
+
}, v = [], x = /* @__PURE__ */ d(
|
|
126
|
+
y,
|
|
188
127
|
_,
|
|
189
128
|
v,
|
|
190
129
|
!1,
|
|
191
|
-
|
|
130
|
+
null,
|
|
192
131
|
null,
|
|
193
132
|
null,
|
|
194
133
|
null
|
|
195
134
|
);
|
|
196
|
-
|
|
197
|
-
for (let t in a)
|
|
198
|
-
this[t] = a[t];
|
|
199
|
-
}
|
|
200
|
-
const I = /* @__PURE__ */ function() {
|
|
201
|
-
return k.exports;
|
|
202
|
-
}();
|
|
135
|
+
const C = x.exports;
|
|
203
136
|
export {
|
|
204
|
-
|
|
137
|
+
C as default
|
|
205
138
|
};
|
|
@@ -1,72 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var s = (
|
|
6
|
-
for (var r in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
import { f
|
|
14
|
-
import { f as
|
|
15
|
-
import { toDate as
|
|
16
|
-
import { d as
|
|
17
|
-
import { n as
|
|
18
|
-
|
|
19
|
-
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
20
|
-
return r("FormItem", e._b({
|
|
21
|
-
attrs: {
|
|
22
|
-
rules: e.computeRules,
|
|
23
|
-
disabled: e.inputDisabled
|
|
24
|
-
},
|
|
25
|
-
scopedSlots: e._u([{
|
|
26
|
-
key: "default",
|
|
27
|
-
fn: function() {
|
|
28
|
-
return [r("ElDatePicker", e._g(e._b({
|
|
29
|
-
staticStyle: {
|
|
30
|
-
width: "100%"
|
|
31
|
-
},
|
|
32
|
-
attrs: {
|
|
33
|
-
"picker-options": e.pickerOption,
|
|
34
|
-
value: e.innerVal,
|
|
35
|
-
size: "mini",
|
|
36
|
-
placeholder: e.computePlaceholder,
|
|
37
|
-
type: e.type,
|
|
38
|
-
disabled: e.inputDisabled
|
|
39
|
-
},
|
|
40
|
-
on: {
|
|
41
|
-
input: e.emitInput
|
|
42
|
-
}
|
|
43
|
-
}, "ElDatePicker", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", {
|
|
44
|
-
staticClass: "el-form-item__warn"
|
|
45
|
-
}, [e._t("warn")], 2) : e._e()];
|
|
46
|
-
},
|
|
47
|
-
proxy: !0
|
|
48
|
-
}, {
|
|
49
|
-
key: "error",
|
|
50
|
-
fn: function(u) {
|
|
51
|
-
var n = u.error;
|
|
52
|
-
return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", {
|
|
53
|
-
staticClass: "el-form-item__error"
|
|
54
|
-
}, [e._t("error", function() {
|
|
55
|
-
return [e._v(" " + e._s(n) + " ")];
|
|
56
|
-
}, {
|
|
57
|
-
error: n
|
|
58
|
-
})], 2) : e._e()];
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
key: "label",
|
|
62
|
-
fn: function() {
|
|
63
|
-
return [e._t("label")];
|
|
64
|
-
},
|
|
65
|
-
proxy: !0
|
|
66
|
-
}], null, !0)
|
|
67
|
-
}, "FormItem", e.formItemProps, !1));
|
|
68
|
-
}, P = [];
|
|
69
|
-
const S = [
|
|
1
|
+
var m = Object.defineProperty, u = Object.defineProperties;
|
|
2
|
+
var p = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var n = Object.getOwnPropertySymbols;
|
|
4
|
+
var d = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var s = (t, e, r) => e in t ? m(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, i = (t, e) => {
|
|
6
|
+
for (var r in e || (e = {}))
|
|
7
|
+
d.call(e, r) && s(t, r, e[r]);
|
|
8
|
+
if (n)
|
|
9
|
+
for (var r of n(e))
|
|
10
|
+
h.call(e, r) && s(t, r, e[r]);
|
|
11
|
+
return t;
|
|
12
|
+
}, l = (t, e) => u(t, p(e));
|
|
13
|
+
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
14
|
+
import { f as c } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
15
|
+
import { toDate as o } from "@web-utils/integrations/dayjs";
|
|
16
|
+
import { d as y, n as g } from "../chunks/index.57f871af.mjs";
|
|
17
|
+
import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
18
|
+
const k = [
|
|
70
19
|
"type",
|
|
71
20
|
"timeArrowControl",
|
|
72
21
|
"size",
|
|
@@ -92,9 +41,9 @@ const S = [
|
|
|
92
41
|
"pickerOptions",
|
|
93
42
|
"unlinkPanels",
|
|
94
43
|
"validateEvent"
|
|
95
|
-
].filter((
|
|
44
|
+
].filter((t) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(t)), P = {
|
|
96
45
|
name: "FormDatePicker",
|
|
97
|
-
mixins: [
|
|
46
|
+
mixins: [f, c],
|
|
98
47
|
props: {
|
|
99
48
|
format: {
|
|
100
49
|
type: String
|
|
@@ -145,28 +94,28 @@ const S = [
|
|
|
145
94
|
},
|
|
146
95
|
mini() {
|
|
147
96
|
if (this.miniDate) {
|
|
148
|
-
const
|
|
149
|
-
return
|
|
97
|
+
const t = o(this.miniDate);
|
|
98
|
+
return t.setDate(t.getDate() - 1), t;
|
|
150
99
|
} else
|
|
151
100
|
return null;
|
|
152
101
|
},
|
|
153
102
|
max() {
|
|
154
|
-
return this.maxDate ?
|
|
103
|
+
return this.maxDate ? o(this.maxDate) : null;
|
|
155
104
|
},
|
|
156
105
|
pickerOption() {
|
|
157
106
|
return i({
|
|
158
|
-
disabledDate: (
|
|
107
|
+
disabledDate: (t) => {
|
|
159
108
|
if (!this.mini && !this.max)
|
|
160
109
|
return !1;
|
|
161
|
-
const
|
|
162
|
-
return this.mini && !this.max ?
|
|
110
|
+
const e = t.getTime();
|
|
111
|
+
return this.mini && !this.max ? e <= this.mini.getTime() : !this.mini && this.max ? e >= this.max.getTime() : this.mini && this.max ? e <= this.mini.getTime() && e >= this.max.getTime() : !1;
|
|
163
112
|
}
|
|
164
113
|
}, this.pickerOptions);
|
|
165
114
|
},
|
|
166
115
|
innerVal() {
|
|
167
116
|
if (this.range && this.split) {
|
|
168
|
-
const
|
|
169
|
-
return
|
|
117
|
+
const t = [];
|
|
118
|
+
return t.push(this.start || ""), t.push(this.end || ""), t;
|
|
170
119
|
} else
|
|
171
120
|
return this.value;
|
|
172
121
|
},
|
|
@@ -174,15 +123,15 @@ const S = [
|
|
|
174
123
|
return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
|
|
175
124
|
},
|
|
176
125
|
inputProps() {
|
|
177
|
-
return
|
|
178
|
-
|
|
126
|
+
return y(
|
|
127
|
+
l(i(i({}, g(this.$attrs)), this.$props), {
|
|
179
128
|
valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
|
|
180
129
|
format: this.format || this.fat,
|
|
181
130
|
rangeSeparator: this.rangeSeparator || "至",
|
|
182
131
|
startPlaceholder: this.startPlaceholder || "开始日期",
|
|
183
132
|
endPlaceholder: this.endPlaceholder || "结束日期"
|
|
184
133
|
}),
|
|
185
|
-
|
|
134
|
+
k
|
|
186
135
|
);
|
|
187
136
|
},
|
|
188
137
|
range() {
|
|
@@ -193,28 +142,33 @@ const S = [
|
|
|
193
142
|
}
|
|
194
143
|
},
|
|
195
144
|
methods: {
|
|
196
|
-
emitInput(
|
|
197
|
-
this.range && this.split ?
|
|
145
|
+
emitInput(t) {
|
|
146
|
+
this.range && this.split ? t ? (this.$emit("update:start", t[0]), this.$emit("update:end", t[1])) : (this.$emit("update:start", null), this.$emit("update:end", null)) : this.$emit("input", t);
|
|
198
147
|
}
|
|
199
148
|
}
|
|
200
|
-
}
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
|
|
149
|
+
};
|
|
150
|
+
var x = function() {
|
|
151
|
+
var e = this, r = e._self._c;
|
|
152
|
+
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
153
|
+
return [r("ElDatePicker", e._g(e._b({ staticStyle: { width: "100%" }, attrs: { "picker-options": e.pickerOption, value: e.innerVal, size: "mini", placeholder: e.computePlaceholder, type: e.type, disabled: e.inputDisabled }, on: { input: e.emitInput } }, "ElDatePicker", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
|
|
154
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: a }) {
|
|
155
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(a) ? r("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
156
|
+
return [e._v(" " + e._s(a) + " ")];
|
|
157
|
+
}, { error: a })], 2) : e._e()];
|
|
158
|
+
} }, { key: "label", fn: function() {
|
|
159
|
+
return [e._t("label")];
|
|
160
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
161
|
+
}, S = [], v = /* @__PURE__ */ _(
|
|
204
162
|
P,
|
|
163
|
+
x,
|
|
164
|
+
S,
|
|
205
165
|
!1,
|
|
206
|
-
|
|
166
|
+
null,
|
|
207
167
|
null,
|
|
208
168
|
null,
|
|
209
169
|
null
|
|
210
170
|
);
|
|
211
|
-
|
|
212
|
-
for (let t in m)
|
|
213
|
-
this[t] = m[t];
|
|
214
|
-
}
|
|
215
|
-
const I = /* @__PURE__ */ function() {
|
|
216
|
-
return b.exports;
|
|
217
|
-
}();
|
|
171
|
+
const M = v.exports;
|
|
218
172
|
export {
|
|
219
|
-
|
|
173
|
+
M as default
|
|
220
174
|
};
|