@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-item/index.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var k = Object.getOwnPropertySymbols;
|
|
3
|
+
var V = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var x = (e, r, t) => r in e ? T(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, h = (e, r) => {
|
|
5
5
|
for (var t in r || (r = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
6
|
+
V.call(r, t) && x(e, t, r[t]);
|
|
7
|
+
if (k)
|
|
8
|
+
for (var t of k(r))
|
|
9
|
+
j.call(r, t) && x(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
12
|
+
var w = (e, r, t) => new Promise((n, a) => {
|
|
13
|
+
var o = (i) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
15
|
+
l(t.next(i));
|
|
16
|
+
} catch (m) {
|
|
17
|
+
a(m);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, s = (i) => {
|
|
20
20
|
try {
|
|
21
|
-
|
|
22
|
-
} catch (
|
|
23
|
-
|
|
21
|
+
l(t.throw(i));
|
|
22
|
+
} catch (m) {
|
|
23
|
+
a(m);
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
|
|
25
|
+
}, l = (i) => i.done ? n(i.value) : Promise.resolve(i.value).then(o, s);
|
|
26
|
+
l((t = t.apply(e, r)).next());
|
|
27
27
|
});
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
const
|
|
28
|
+
import { h as p } from "vue";
|
|
29
|
+
import { f as B } from "../chunks/form-item-mixin.ad148e7b.mjs";
|
|
30
|
+
import { hasOwn as I } from "@web-utils/core";
|
|
31
|
+
const A = {
|
|
32
32
|
name: "FormItem",
|
|
33
|
-
mixins: [
|
|
33
|
+
mixins: [B],
|
|
34
34
|
inject: {
|
|
35
35
|
formHolder: {
|
|
36
36
|
default: ""
|
|
@@ -50,104 +50,85 @@ const B = {
|
|
|
50
50
|
},
|
|
51
51
|
methods: {
|
|
52
52
|
renderFormItem() {
|
|
53
|
-
var
|
|
54
|
-
const
|
|
55
|
-
label:
|
|
56
|
-
labelWidth:
|
|
57
|
-
prop:
|
|
58
|
-
rules:
|
|
59
|
-
$scopedSlots:
|
|
53
|
+
var q, g, F;
|
|
54
|
+
const {
|
|
55
|
+
label: e,
|
|
56
|
+
labelWidth: r,
|
|
57
|
+
prop: t,
|
|
58
|
+
rules: n,
|
|
59
|
+
$scopedSlots: a,
|
|
60
60
|
elFormItemProps: o,
|
|
61
|
-
elForm:
|
|
61
|
+
elForm: s,
|
|
62
62
|
formHolder: l,
|
|
63
|
-
formItemClass:
|
|
64
|
-
required:
|
|
65
|
-
block:
|
|
66
|
-
half:
|
|
67
|
-
wrapCol:
|
|
63
|
+
formItemClass: i,
|
|
64
|
+
required: m,
|
|
65
|
+
block: $,
|
|
66
|
+
half: v,
|
|
67
|
+
wrapCol: y,
|
|
68
68
|
wrapFormItem: R,
|
|
69
69
|
disabled: E,
|
|
70
70
|
formItemConfig: d,
|
|
71
71
|
getRequireRule: W
|
|
72
72
|
} = this;
|
|
73
|
-
let
|
|
74
|
-
d && (
|
|
75
|
-
const
|
|
76
|
-
return E ||
|
|
73
|
+
let f = n, u = m, c = m, C = $, b = y;
|
|
74
|
+
d && (I(d, "block") && (C = d.block), I(d, "wrapCol") && (b = d.wrapCol));
|
|
75
|
+
const H = C && v && b ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
76
|
+
return E || s != null && s.disabled ? (f = [], l && !l.required && !((q = l.requiredFields) != null && q.includes(t)) && (c = !1)) : (l && !l.required && !((g = l.requiredFields) != null && g.includes(t)) && (u = !1), u && !(f != null && f.length) && t ? f = [W()] : u || (c = !1, f && (f = f.filter((P) => !P.required)))), R ? (
|
|
77
77
|
// eslint-disable-next-line no-undef
|
|
78
|
-
|
|
78
|
+
p("ElFormItem", {
|
|
79
79
|
style: {
|
|
80
|
-
width:
|
|
80
|
+
width: H
|
|
81
81
|
},
|
|
82
|
-
key: `${
|
|
83
|
-
class:
|
|
84
|
-
scopedSlots:
|
|
85
|
-
props:
|
|
82
|
+
key: `${t}-${u}`,
|
|
83
|
+
class: c ? `form-item required ${i || ""}` : `${i || ""}`,
|
|
84
|
+
scopedSlots: a,
|
|
85
|
+
props: h({}, o),
|
|
86
86
|
attrs: {
|
|
87
|
-
label:
|
|
88
|
-
"label-width":
|
|
89
|
-
prop:
|
|
90
|
-
rules:
|
|
87
|
+
label: e,
|
|
88
|
+
"label-width": r,
|
|
89
|
+
prop: t,
|
|
90
|
+
rules: f
|
|
91
91
|
},
|
|
92
92
|
ref: "formItem"
|
|
93
93
|
})
|
|
94
|
-
) :
|
|
94
|
+
) : p("div", [(F = a.default) == null ? void 0 : F.call(a)]);
|
|
95
95
|
},
|
|
96
96
|
clearValidate() {
|
|
97
|
-
return
|
|
97
|
+
return w(this, null, function* () {
|
|
98
98
|
var e, r;
|
|
99
99
|
yield this.$nextTick(), (r = (e = this.$refs.formItem).clearValidate) == null || r.call(e);
|
|
100
100
|
});
|
|
101
101
|
},
|
|
102
102
|
validate() {
|
|
103
|
-
return
|
|
103
|
+
return w(this, null, function* () {
|
|
104
104
|
var e, r;
|
|
105
105
|
yield this.$nextTick(), (r = (e = this.$refs.formItem).validate) == null || r.call(e);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
render() {
|
|
110
|
-
var
|
|
111
|
-
const
|
|
112
|
-
computeSpan:
|
|
113
|
-
wrapCol:
|
|
114
|
-
formItemConfig:
|
|
115
|
-
renderFormItem:
|
|
116
|
-
elColProps:
|
|
110
|
+
var i, m;
|
|
111
|
+
const {
|
|
112
|
+
computeSpan: e,
|
|
113
|
+
wrapCol: r,
|
|
114
|
+
formItemConfig: t,
|
|
115
|
+
renderFormItem: n,
|
|
116
|
+
elColProps: a,
|
|
117
117
|
$scopedSlots: o,
|
|
118
|
-
unwrap:
|
|
118
|
+
unwrap: s
|
|
119
119
|
} = this;
|
|
120
|
-
let l =
|
|
121
|
-
return
|
|
120
|
+
let l = r;
|
|
121
|
+
return t && I(t, "wrapCol") && (l = t.wrapCol), s ? p("div", [(i = o.default) == null ? void 0 : i.call(o)]) : l ? (
|
|
122
122
|
// eslint-disable-next-line no-undef
|
|
123
|
-
|
|
124
|
-
props:
|
|
123
|
+
p("ElCol", {
|
|
124
|
+
props: h({}, a),
|
|
125
125
|
attrs: {
|
|
126
|
-
span:
|
|
126
|
+
span: e
|
|
127
127
|
}
|
|
128
|
-
}, [
|
|
129
|
-
) :
|
|
128
|
+
}, [n(), (m = o == null ? void 0 : o.below) == null ? void 0 : m.call(o)])
|
|
129
|
+
) : n();
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
-
let N, O;
|
|
133
|
-
const x = {};
|
|
134
|
-
var A = /* @__PURE__ */ z(
|
|
135
|
-
B,
|
|
136
|
-
N,
|
|
137
|
-
O,
|
|
138
|
-
!1,
|
|
139
|
-
D,
|
|
140
|
-
null,
|
|
141
|
-
null,
|
|
142
|
-
null
|
|
143
|
-
);
|
|
144
|
-
function D(e) {
|
|
145
|
-
for (let r in x)
|
|
146
|
-
this[r] = x[r];
|
|
147
|
-
}
|
|
148
|
-
const Q = /* @__PURE__ */ function() {
|
|
149
|
-
return A.exports;
|
|
150
|
-
}();
|
|
151
132
|
export {
|
|
152
|
-
|
|
133
|
+
A as default
|
|
153
134
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as e } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
2
|
const n = {
|
|
3
3
|
name: "FormItemConfigProvider",
|
|
4
4
|
provide() {
|
|
@@ -24,40 +24,32 @@ const n = {
|
|
|
24
24
|
watch: {
|
|
25
25
|
block: {
|
|
26
26
|
immediate: !0,
|
|
27
|
-
handler(
|
|
28
|
-
this.config.block =
|
|
27
|
+
handler(o) {
|
|
28
|
+
this.config.block = o;
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
wrapCol: {
|
|
32
32
|
immediate: !0,
|
|
33
|
-
handler(
|
|
34
|
-
this.config.wrapCol =
|
|
33
|
+
handler(o) {
|
|
34
|
+
this.config.wrapCol = o;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
render() {
|
|
39
39
|
return this.$scopedSlots.default();
|
|
40
40
|
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const t = {};
|
|
44
|
-
var a = /* @__PURE__ */ r(
|
|
41
|
+
}, r = null, t = null;
|
|
42
|
+
var l = /* @__PURE__ */ e(
|
|
45
43
|
n,
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
r,
|
|
45
|
+
t,
|
|
48
46
|
!1,
|
|
49
|
-
|
|
47
|
+
null,
|
|
50
48
|
null,
|
|
51
49
|
null,
|
|
52
50
|
null
|
|
53
51
|
);
|
|
54
|
-
|
|
55
|
-
for (let o in t)
|
|
56
|
-
this[o] = t[o];
|
|
57
|
-
}
|
|
58
|
-
const u = /* @__PURE__ */ function() {
|
|
59
|
-
return a.exports;
|
|
60
|
-
}();
|
|
52
|
+
const i = l.exports;
|
|
61
53
|
export {
|
|
62
|
-
|
|
54
|
+
i as default
|
|
63
55
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { h as o } from "vue";
|
|
2
|
+
import { isFunction as n } from "@web-utils/core";
|
|
3
|
+
const a = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], m = ["$emit", "validate", "clearValidate"], h = {
|
|
4
4
|
name: "FormItemGroup",
|
|
5
5
|
inject: {
|
|
6
6
|
elForm: {
|
|
@@ -32,8 +32,8 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
32
32
|
},
|
|
33
33
|
data() {
|
|
34
34
|
const e = {};
|
|
35
|
-
return
|
|
36
|
-
e[
|
|
35
|
+
return a.forEach((i) => {
|
|
36
|
+
e[i] = null;
|
|
37
37
|
}), {
|
|
38
38
|
expand: !0,
|
|
39
39
|
formConfig: e
|
|
@@ -45,8 +45,8 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
45
45
|
enabled: this.enabled,
|
|
46
46
|
forbidden: this.disabled
|
|
47
47
|
};
|
|
48
|
-
return
|
|
49
|
-
e[
|
|
48
|
+
return a.forEach((i) => {
|
|
49
|
+
e[i] = this.elForm[i];
|
|
50
50
|
}), e;
|
|
51
51
|
}
|
|
52
52
|
},
|
|
@@ -60,9 +60,9 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
60
60
|
formCfg: {
|
|
61
61
|
immediate: !0,
|
|
62
62
|
handler() {
|
|
63
|
-
this.formConfig.disabled = this.isDisabled(),
|
|
64
|
-
var
|
|
65
|
-
e !== "disabled" && (
|
|
63
|
+
this.formConfig.disabled = this.isDisabled(), a.forEach((e) => {
|
|
64
|
+
var i;
|
|
65
|
+
e !== "disabled" && (m.includes(e) ? this.formConfig[e] = (i = this.elForm[e]) == null ? void 0 : i.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -77,32 +77,32 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
77
77
|
isDisabled() {
|
|
78
78
|
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
79
79
|
},
|
|
80
|
-
dispatch(e,
|
|
81
|
-
let
|
|
82
|
-
for (;
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
dispatch(e, i, r) {
|
|
81
|
+
let t = this.$parent || this.$root, s = t.$options.name;
|
|
82
|
+
for (; t && (!s || s !== e); )
|
|
83
|
+
t = t.$parent, t && (s = t.$options.name);
|
|
84
|
+
t && t.$emit.apply(t, [i].concat(r));
|
|
85
85
|
},
|
|
86
86
|
renderDefault() {
|
|
87
|
-
const
|
|
88
|
-
wrapRow:
|
|
89
|
-
gutter:
|
|
90
|
-
formConfig:
|
|
91
|
-
$scopedSlots:
|
|
87
|
+
const {
|
|
88
|
+
wrapRow: e,
|
|
89
|
+
gutter: i,
|
|
90
|
+
formConfig: r,
|
|
91
|
+
$scopedSlots: t
|
|
92
92
|
} = this;
|
|
93
|
-
return
|
|
93
|
+
return n(t.default) ? e ? (
|
|
94
94
|
// eslint-disable-next-line no-undef
|
|
95
|
-
|
|
95
|
+
o("ElRow", {
|
|
96
96
|
attrs: {
|
|
97
|
-
gutter:
|
|
97
|
+
gutter: i
|
|
98
98
|
},
|
|
99
99
|
class: "form-item-group-row"
|
|
100
|
-
}, [
|
|
101
|
-
disabled:
|
|
100
|
+
}, [t.default({
|
|
101
|
+
disabled: r.disabled
|
|
102
102
|
})])
|
|
103
|
-
) :
|
|
104
|
-
disabled:
|
|
105
|
-
}) :
|
|
103
|
+
) : t.default({
|
|
104
|
+
disabled: r.disabled
|
|
105
|
+
}) : o("EmptyView", {
|
|
106
106
|
attrs: {
|
|
107
107
|
"font-size": "14px",
|
|
108
108
|
"empty-tips": "暂无信息"
|
|
@@ -117,56 +117,37 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
render() {
|
|
120
|
-
const
|
|
121
|
-
renderDefault:
|
|
122
|
-
blockTitle:
|
|
123
|
-
active:
|
|
124
|
-
expand:
|
|
125
|
-
toggle:
|
|
126
|
-
$scopedSlots:
|
|
120
|
+
const {
|
|
121
|
+
renderDefault: e,
|
|
122
|
+
blockTitle: i,
|
|
123
|
+
active: r,
|
|
124
|
+
expand: t,
|
|
125
|
+
toggle: s,
|
|
126
|
+
$scopedSlots: l,
|
|
127
127
|
isDisabled: d
|
|
128
128
|
} = this;
|
|
129
|
-
return
|
|
129
|
+
return o("div", {
|
|
130
130
|
class: ["form-item-group", {
|
|
131
|
-
"default-active":
|
|
131
|
+
"default-active": r,
|
|
132
132
|
"is-disabled": d()
|
|
133
133
|
}]
|
|
134
|
-
}, [
|
|
134
|
+
}, [o("div", {
|
|
135
135
|
class: "form-item-group-title",
|
|
136
136
|
on: {
|
|
137
|
-
click:
|
|
137
|
+
click: s
|
|
138
138
|
}
|
|
139
|
-
}, [
|
|
139
|
+
}, [o("span", {
|
|
140
140
|
class: "flex-item"
|
|
141
|
-
}, [
|
|
142
|
-
class:
|
|
143
|
-
})]),
|
|
141
|
+
}, [i, l["title-right"] ? l["title-right"]() : null]), " ", o("i", {
|
|
142
|
+
class: t ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
143
|
+
})]), o("ElCollapseTransition", [o("div", {
|
|
144
144
|
directives: [{
|
|
145
145
|
name: "show",
|
|
146
|
-
value:
|
|
146
|
+
value: t
|
|
147
147
|
}]
|
|
148
|
-
}, [
|
|
148
|
+
}, [e()])])]);
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
let f, h;
|
|
152
|
-
const l = {};
|
|
153
|
-
var b = /* @__PURE__ */ u(
|
|
154
|
-
p,
|
|
155
|
-
f,
|
|
156
|
-
h,
|
|
157
|
-
!1,
|
|
158
|
-
g,
|
|
159
|
-
null,
|
|
160
|
-
null,
|
|
161
|
-
null
|
|
162
|
-
);
|
|
163
|
-
function g(e) {
|
|
164
|
-
for (let t in l)
|
|
165
|
-
this[t] = l[t];
|
|
166
|
-
}
|
|
167
|
-
const w = /* @__PURE__ */ function() {
|
|
168
|
-
return b.exports;
|
|
169
|
-
}();
|
|
170
151
|
export {
|
|
171
|
-
|
|
152
|
+
h as default
|
|
172
153
|
};
|
|
@@ -1,97 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var s = (
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
f.call(
|
|
10
|
-
return
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var n = Object.getOwnPropertySymbols;
|
|
3
|
+
var p = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var s = (o, e, l) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : o[e] = l, t = (o, e) => {
|
|
5
|
+
for (var l in e || (e = {}))
|
|
6
|
+
p.call(e, l) && s(o, l, e[l]);
|
|
7
|
+
if (n)
|
|
8
|
+
for (var l of n(e))
|
|
9
|
+
f.call(e, l) && s(o, l, e[l]);
|
|
10
|
+
return o;
|
|
11
11
|
};
|
|
12
|
-
import { f as
|
|
13
|
-
import { f as
|
|
12
|
+
import { f as c } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { f as h } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
14
|
import a from "element-ui/lib/radio-group";
|
|
15
|
-
import { d
|
|
16
|
-
import { n as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class: ["form-radio-group", {
|
|
21
|
-
"form-radio-group-row": e.fillRow,
|
|
22
|
-
inline: e.inline
|
|
23
|
-
}, e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"],
|
|
24
|
-
attrs: {
|
|
25
|
-
rules: e.computeRules,
|
|
26
|
-
disabled: e.inputDisabled
|
|
27
|
-
},
|
|
28
|
-
scopedSlots: e._u([{
|
|
29
|
-
key: "default",
|
|
30
|
-
fn: function() {
|
|
31
|
-
return [o("ElRadioGroup", e._g(e._b({
|
|
32
|
-
class: {
|
|
33
|
-
"over-flow": e.overFlow
|
|
34
|
-
},
|
|
35
|
-
attrs: {
|
|
36
|
-
value: e.value,
|
|
37
|
-
disabled: e.inputDisabled,
|
|
38
|
-
placeholder: e.computePlaceholder
|
|
39
|
-
},
|
|
40
|
-
on: {
|
|
41
|
-
input: function(r) {
|
|
42
|
-
return e.$emit("input", r);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(r) {
|
|
46
|
-
return o("ElRadio", {
|
|
47
|
-
key: r[e.valueKey],
|
|
48
|
-
attrs: {
|
|
49
|
-
label: r[e.valueKey]
|
|
50
|
-
},
|
|
51
|
-
nativeOn: {
|
|
52
|
-
click: function(l) {
|
|
53
|
-
return l.preventDefault(), l.stopPropagation(), e.toggle(r);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
|
|
57
|
-
}) : e._l(e.innerOptions, function(r) {
|
|
58
|
-
return o("ElRadio", {
|
|
59
|
-
key: r[e.valueKey],
|
|
60
|
-
attrs: {
|
|
61
|
-
label: r[e.valueKey]
|
|
62
|
-
}
|
|
63
|
-
}, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
|
|
64
|
-
})], 2), e._t("append")];
|
|
65
|
-
},
|
|
66
|
-
proxy: !0
|
|
67
|
-
}, {
|
|
68
|
-
key: "error",
|
|
69
|
-
fn: function(r) {
|
|
70
|
-
var l = r.error;
|
|
71
|
-
return [e._t("error", null, {
|
|
72
|
-
error: l
|
|
73
|
-
})];
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
key: "label",
|
|
77
|
-
fn: function() {
|
|
78
|
-
return [e._t("label")];
|
|
79
|
-
},
|
|
80
|
-
proxy: !0
|
|
81
|
-
}, {
|
|
82
|
-
key: "below",
|
|
83
|
-
fn: function() {
|
|
84
|
-
return [e._t("below")];
|
|
85
|
-
},
|
|
86
|
-
proxy: !0
|
|
87
|
-
}], null, !0)
|
|
88
|
-
}, "FormItem", e.formItemProps, !1));
|
|
89
|
-
}, b = [];
|
|
90
|
-
const g = Object.keys(a.props || a.default.props).filter(
|
|
91
|
-
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
92
|
-
), K = {
|
|
15
|
+
import { d, n as y } from "../chunks/index.57f871af.mjs";
|
|
16
|
+
import { n as m } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
17
|
+
const _ = Object.keys(a.props || a.default.props).filter(
|
|
18
|
+
(o) => !["value", "placeholder", "disabled"].includes(o)
|
|
19
|
+
), v = {
|
|
93
20
|
name: "FormRadioGroup",
|
|
94
|
-
mixins: [
|
|
21
|
+
mixins: [c, h],
|
|
95
22
|
props: {
|
|
96
23
|
options: {
|
|
97
24
|
type: Array,
|
|
@@ -122,7 +49,7 @@ const g = Object.keys(a.props || a.default.props).filter(
|
|
|
122
49
|
return "请选择";
|
|
123
50
|
},
|
|
124
51
|
inputProps() {
|
|
125
|
-
return
|
|
52
|
+
return d(t(t({}, y(this.$attrs)), this.$props), _);
|
|
126
53
|
},
|
|
127
54
|
labelKey() {
|
|
128
55
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -153,31 +80,46 @@ const g = Object.keys(a.props || a.default.props).filter(
|
|
|
153
80
|
}
|
|
154
81
|
},
|
|
155
82
|
methods: {
|
|
156
|
-
emitInput(
|
|
157
|
-
this.$emit("input",
|
|
83
|
+
emitInput(o) {
|
|
84
|
+
this.$emit("input", o);
|
|
158
85
|
},
|
|
159
|
-
toggle(
|
|
160
|
-
this.value ===
|
|
86
|
+
toggle(o) {
|
|
87
|
+
this.value === o[this.valueKey] ? this.emitInput(null) : this.emitInput(o[this.valueKey]);
|
|
161
88
|
}
|
|
162
89
|
}
|
|
163
|
-
}
|
|
164
|
-
var
|
|
165
|
-
|
|
90
|
+
};
|
|
91
|
+
var b = function() {
|
|
92
|
+
var e = this, l = e._self._c;
|
|
93
|
+
return l("FormItem", e._b({ class: [
|
|
94
|
+
"form-radio-group",
|
|
95
|
+
{ "form-radio-group-row": e.fillRow, inline: e.inline },
|
|
96
|
+
e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"
|
|
97
|
+
], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
98
|
+
return [l("ElRadioGroup", e._g(e._b({ class: { "over-flow": e.overFlow }, attrs: { value: e.value, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (r) => e.$emit("input", r) } }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(r) {
|
|
99
|
+
return l("ElRadio", { key: r[e.valueKey], attrs: { label: r[e.valueKey] }, nativeOn: { click: function(i) {
|
|
100
|
+
return i.preventDefault(), i.stopPropagation(), e.toggle(r);
|
|
101
|
+
} } }, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
|
|
102
|
+
}) : e._l(e.innerOptions, function(r) {
|
|
103
|
+
return l("ElRadio", { key: r[e.valueKey], attrs: { label: r[e.valueKey] } }, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
|
|
104
|
+
})], 2), e._t("append")];
|
|
105
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
106
|
+
return [e._t("error", null, { error: r })];
|
|
107
|
+
} }, { key: "label", fn: function() {
|
|
108
|
+
return [e._t("label")];
|
|
109
|
+
}, proxy: !0 }, { key: "below", fn: function() {
|
|
110
|
+
return [e._t("below")];
|
|
111
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
112
|
+
}, g = [], K = /* @__PURE__ */ m(
|
|
166
113
|
v,
|
|
167
114
|
b,
|
|
115
|
+
g,
|
|
168
116
|
!1,
|
|
169
|
-
|
|
117
|
+
null,
|
|
170
118
|
null,
|
|
171
119
|
null,
|
|
172
120
|
null
|
|
173
121
|
);
|
|
174
|
-
|
|
175
|
-
for (let t in u)
|
|
176
|
-
this[t] = u[t];
|
|
177
|
-
}
|
|
178
|
-
const G = /* @__PURE__ */ function() {
|
|
179
|
-
return w.exports;
|
|
180
|
-
}();
|
|
122
|
+
const F = K.exports;
|
|
181
123
|
export {
|
|
182
|
-
|
|
124
|
+
F as default
|
|
183
125
|
};
|