@web-utils/component 3.0.3 → 3.0.5
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 +22 -24
- package/awesome-button/index.mjs +29 -30
- package/card/index.mjs +40 -42
- package/carousel/index.mjs +25 -27
- package/chat/index.mjs +57 -67
- package/chunks/FormTemp.7f91629d.mjs +165 -0
- package/chunks/confirmable-mixin.817b542f.mjs +116 -0
- package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
- package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
- package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
- package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
- package/color-picker/index.mjs +128 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +32 -34
- package/data-card/index.mjs +33 -35
- package/data-cardtext/index.mjs +27 -29
- package/data-display/index.mjs +33 -35
- package/data-icons/index.mjs +28 -30
- package/data-imgtext/index.mjs +27 -30
- package/data-operatext/index.mjs +39 -41
- package/data-panel/index.mjs +36 -38
- package/data-pay/index.mjs +20 -23
- package/data-price/index.mjs +32 -34
- package/data-progress/index.mjs +27 -30
- package/data-rotate/index.mjs +17 -19
- package/data-table-picker/index.mjs +22 -23
- package/data-tabs/index.mjs +31 -33
- package/dialog-form/index.mjs +31 -39
- package/dynamic-table/index.mjs +36 -40
- package/editable-progress/index.mjs +14 -16
- package/editable-tree/index.mjs +139 -143
- package/egd-collapse-item/index.mjs +2 -1
- package/element-dialog/index.mjs +24 -25
- package/flow-designer/index.mjs +1095 -1111
- package/form-block/index.mjs +22 -24
- package/form-cascader/index.mjs +20 -20
- package/form-checkbox-group/index.mjs +24 -25
- package/form-date-picker/index.mjs +18 -19
- package/form-holder/index.mjs +14 -15
- package/form-input/index.mjs +23 -23
- package/form-input-email/index.mjs +17 -17
- package/form-input-id-card/index.mjs +24 -24
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +26 -26
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +17 -17
- package/form-item/index.mjs +54 -56
- package/form-item-group/index.mjs +31 -33
- package/form-radio-group/index.mjs +51 -52
- package/form-select/index.mjs +31 -32
- package/form-switch/index.mjs +22 -22
- package/form-textarea/index.mjs +20 -20
- package/fy-array/index.mjs +61 -65
- package/fy-cascader/index.mjs +19 -20
- package/fy-checkbox/index.mjs +32 -37
- package/fy-code/index.mjs +13 -10
- package/fy-curd/index.mjs +638 -663
- package/fy-date/index.mjs +20 -21
- package/fy-draggable/index.mjs +19 -20
- package/fy-dynamic/index.mjs +26 -27
- package/fy-form/index.mjs +111 -122
- package/fy-form-design/index.mjs +1238 -1270
- package/fy-input/index.mjs +15 -17
- package/fy-input-color/index.mjs +25 -27
- package/fy-input-icon/index.mjs +20 -21
- package/fy-input-map/index.mjs +22 -24
- package/fy-input-number/index.mjs +22 -23
- package/fy-input-table/index.mjs +15 -17
- package/fy-input-tree/index.mjs +28 -32
- package/fy-progress/index.mjs +23 -24
- package/fy-radio/index.mjs +18 -23
- package/fy-rate/index.mjs +12 -13
- package/fy-select/index.mjs +40 -44
- package/fy-slider/index.mjs +17 -18
- package/fy-switch/index.mjs +20 -21
- package/fy-tabs/index.mjs +19 -21
- package/fy-time/index.mjs +14 -20
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +17 -21
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +22 -24
- package/image-cropper/index.mjs +50 -51
- package/image-preview/index.mjs +24 -26
- package/index.mjs +480 -477
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +23 -24
- package/login/index.mjs +35 -40
- package/nav-bar/index.mjs +13 -14
- package/notice/index.mjs +18 -19
- package/package.json +3 -3
- package/page-index/index.mjs +33 -34
- package/page-index-top/index.mjs +22 -24
- package/pageable-table/index.mjs +92 -96
- package/pageable-view/index.mjs +33 -34
- package/search/index.mjs +21 -23
- package/static-pageable-table/index.mjs +18 -20
- package/swiper/index.mjs +22 -23
- package/table-view/index.mjs +49 -53
- package/tag-render/index.mjs +19 -21
- package/text-ellipsis/index.mjs +11 -12
- package/tinymce-editor/index.mjs +50 -51
- package/toolbar-button/index.mjs +18 -19
- package/vue-cron/index.mjs +104 -112
- package/web-types.json +85 -1
- package/x-input-tag/index.mjs +47 -50
- package/chunks/FormTemp.d079292b.mjs +0 -139
- package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
- package/chunks/detail.d6f8e347.mjs +0 -29
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var l = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var a = (r, e, t) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, s = (r, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
c.call(e, t) &&
|
|
6
|
+
m.call(e, t) && a(r, t, e[t]);
|
|
7
|
+
if (l)
|
|
8
|
+
for (var t of l(e))
|
|
9
|
+
c.call(e, t) && a(r, t, e[t]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
|
-
import { f
|
|
13
|
-
import { validateIdCard as
|
|
14
|
-
import
|
|
15
|
-
import { d as
|
|
12
|
+
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { validateIdCard as i } from "@web-utils/core";
|
|
14
|
+
import u from "element-ui/lib/input";
|
|
15
|
+
import { d as _, n as v } from "../chunks/index.57f871af.mjs";
|
|
16
16
|
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
17
|
var h = function() {
|
|
18
18
|
var r = this, e = r.$createElement, t = r._self._c || e;
|
|
@@ -24,7 +24,7 @@ var h = function() {
|
|
|
24
24
|
scopedSlots: r._u([{
|
|
25
25
|
key: "default",
|
|
26
26
|
fn: function() {
|
|
27
|
-
return [t(
|
|
27
|
+
return [t("ElInput", r._g(r._b({
|
|
28
28
|
class: {
|
|
29
29
|
"is-readonly": r.readonly
|
|
30
30
|
},
|
|
@@ -65,12 +65,12 @@ var h = function() {
|
|
|
65
65
|
proxy: !0
|
|
66
66
|
}], null, !0)
|
|
67
67
|
}, "FormItem", r.formItemProps, !1));
|
|
68
|
-
},
|
|
69
|
-
const
|
|
68
|
+
}, I = [];
|
|
69
|
+
const b = Object.keys(u.props || u.default.props).filter(
|
|
70
70
|
(r) => !["value", "placeholder", "disabled"].includes(r)
|
|
71
|
-
),
|
|
71
|
+
), x = {
|
|
72
72
|
name: "FormInputIdCard",
|
|
73
|
-
mixins: [
|
|
73
|
+
mixins: [f],
|
|
74
74
|
props: {
|
|
75
75
|
value: {
|
|
76
76
|
type: String
|
|
@@ -82,15 +82,15 @@ const x = Object.keys(l.props || l.default.props).filter(
|
|
|
82
82
|
},
|
|
83
83
|
computed: {
|
|
84
84
|
inputProps() {
|
|
85
|
-
return
|
|
85
|
+
return _(s(s({}, v(this.$attrs)), this.$props), b);
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
methods: {
|
|
89
|
-
validateIdCard:
|
|
89
|
+
validateIdCard: i,
|
|
90
90
|
getRules() {
|
|
91
91
|
return [
|
|
92
92
|
{
|
|
93
|
-
validator:
|
|
93
|
+
validator: i,
|
|
94
94
|
message: "请输入正确的身份证号码!"
|
|
95
95
|
}
|
|
96
96
|
];
|
|
@@ -98,9 +98,9 @@ const x = Object.keys(l.props || l.default.props).filter(
|
|
|
98
98
|
}
|
|
99
99
|
}, p = {};
|
|
100
100
|
var g = /* @__PURE__ */ y(
|
|
101
|
-
|
|
101
|
+
x,
|
|
102
102
|
h,
|
|
103
|
-
|
|
103
|
+
I,
|
|
104
104
|
!1,
|
|
105
105
|
$,
|
|
106
106
|
null,
|
|
@@ -111,9 +111,9 @@ function $(r) {
|
|
|
111
111
|
for (let e in p)
|
|
112
112
|
this[e] = p[e];
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const R = /* @__PURE__ */ function() {
|
|
115
115
|
return g.exports;
|
|
116
116
|
}();
|
|
117
117
|
export {
|
|
118
|
-
|
|
118
|
+
R as default
|
|
119
119
|
};
|
|
@@ -9,7 +9,7 @@ var i = (e, r, t) => r in e ? l(e, r, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
m.call(r, t) && i(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/form-input-mixin.
|
|
12
|
+
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import { d as c, n as _ } from "../chunks/index.57f871af.mjs";
|
|
14
14
|
import { i as d } from "../chunks/input-number-mixin.41a066be.mjs";
|
|
15
15
|
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var m = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
m.call(
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
2
|
+
var o = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
|
|
5
|
+
for (var r in t || (t = {}))
|
|
6
|
+
m.call(t, r) && l(e, r, t[r]);
|
|
7
|
+
if (o)
|
|
8
|
+
for (var r of o(t))
|
|
9
|
+
d.call(t, r) && l(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as
|
|
12
|
+
import { f as c } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import { validatePhoneNum as f } from "@web-utils/core";
|
|
14
14
|
import { d as _, n as h } from "../chunks/index.57f871af.mjs";
|
|
15
|
-
import
|
|
15
|
+
import s from "element-ui/lib/input";
|
|
16
16
|
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
17
|
var y = function() {
|
|
18
|
-
var e = this,
|
|
19
|
-
return
|
|
18
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
19
|
+
return r("FormItem", e._b({
|
|
20
20
|
attrs: {
|
|
21
21
|
rules: e.computeRules,
|
|
22
22
|
disabled: e.inputDisabled
|
|
@@ -24,7 +24,7 @@ var y = function() {
|
|
|
24
24
|
scopedSlots: e._u([{
|
|
25
25
|
key: "default",
|
|
26
26
|
fn: function() {
|
|
27
|
-
return [
|
|
27
|
+
return [r("ElInput", e._g(e._b({
|
|
28
28
|
class: {
|
|
29
29
|
"is-readonly": e.readonly
|
|
30
30
|
},
|
|
@@ -58,11 +58,11 @@ var y = function() {
|
|
|
58
58
|
}], null, !0)
|
|
59
59
|
}, "FormItem", e.formItemProps, !1));
|
|
60
60
|
}, b = [];
|
|
61
|
-
const
|
|
61
|
+
const I = Object.keys(s.props || s.default.props).filter(
|
|
62
62
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
63
|
-
),
|
|
63
|
+
), x = {
|
|
64
64
|
name: "FormInputPhoneNumber",
|
|
65
|
-
mixins: [
|
|
65
|
+
mixins: [c],
|
|
66
66
|
props: {
|
|
67
67
|
value: {
|
|
68
68
|
type: String
|
|
@@ -74,7 +74,7 @@ const x = Object.keys(o.props || o.default.props).filter(
|
|
|
74
74
|
},
|
|
75
75
|
computed: {
|
|
76
76
|
inputProps() {
|
|
77
|
-
return _(n(n({}, h(this.$attrs)), this.$props),
|
|
77
|
+
return _(n(n({}, h(this.$attrs)), this.$props), I);
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
methods: {
|
|
@@ -91,23 +91,23 @@ const x = Object.keys(o.props || o.default.props).filter(
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}, u = {};
|
|
94
|
-
var
|
|
95
|
-
|
|
94
|
+
var P = /* @__PURE__ */ v(
|
|
95
|
+
x,
|
|
96
96
|
y,
|
|
97
97
|
b,
|
|
98
98
|
!1,
|
|
99
|
-
|
|
99
|
+
g,
|
|
100
100
|
null,
|
|
101
101
|
null,
|
|
102
102
|
null
|
|
103
103
|
);
|
|
104
|
-
function
|
|
105
|
-
for (let
|
|
106
|
-
this[
|
|
104
|
+
function g(e) {
|
|
105
|
+
for (let t in u)
|
|
106
|
+
this[t] = u[t];
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
return
|
|
108
|
+
const R = /* @__PURE__ */ function() {
|
|
109
|
+
return P.exports;
|
|
110
110
|
}();
|
|
111
111
|
export {
|
|
112
|
-
|
|
112
|
+
R as default
|
|
113
113
|
};
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var l = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
m.call(r, t) && l(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as d } from "../chunks/form-input-mixin.
|
|
12
|
+
import { f as d } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import { d as f, n as _ } from "../chunks/index.57f871af.mjs";
|
|
14
14
|
import s from "@web-utils/component/x-input-tag";
|
|
15
15
|
import "@web-utils/component/x-input-tag/style.css";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var i = (e, t, r) => t in e ?
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var o = Object.getOwnPropertySymbols;
|
|
3
|
+
var p = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var i = (e, t, r) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, a = (e, t) => {
|
|
5
5
|
for (var r in t || (t = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
|
|
6
|
+
p.call(t, r) && i(e, r, t[r]);
|
|
7
|
+
if (o)
|
|
8
|
+
for (var r of o(t))
|
|
9
|
+
c.call(t, r) && i(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f
|
|
13
|
-
import
|
|
12
|
+
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import l from "element-ui/lib/time-picker";
|
|
14
14
|
import { d, n as _ } from "../chunks/index.57f871af.mjs";
|
|
15
15
|
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
16
|
var y = function() {
|
|
@@ -23,7 +23,7 @@ var y = function() {
|
|
|
23
23
|
scopedSlots: e._u([{
|
|
24
24
|
key: "default",
|
|
25
25
|
fn: function() {
|
|
26
|
-
return [r(
|
|
26
|
+
return [r("ElTimePicker", e._g(e._b({
|
|
27
27
|
attrs: {
|
|
28
28
|
"is-range": e.range,
|
|
29
29
|
value: e.value,
|
|
@@ -68,11 +68,11 @@ var y = function() {
|
|
|
68
68
|
}], null, !0)
|
|
69
69
|
}, "FormItem", e.formItemProps, !1));
|
|
70
70
|
}, g = [];
|
|
71
|
-
const b = Object.keys(
|
|
71
|
+
const b = Object.keys(l.props || l.default.props).filter(
|
|
72
72
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
73
73
|
), x = {
|
|
74
74
|
name: "FormInputTime",
|
|
75
|
-
mixins: [
|
|
75
|
+
mixins: [f],
|
|
76
76
|
props: {
|
|
77
77
|
range: Boolean,
|
|
78
78
|
format: {
|
|
@@ -115,22 +115,22 @@ const b = Object.keys(o.props || o.default.props).filter(
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
}, s = {};
|
|
118
|
-
var
|
|
118
|
+
var T = /* @__PURE__ */ v(
|
|
119
119
|
x,
|
|
120
120
|
y,
|
|
121
121
|
g,
|
|
122
122
|
!1,
|
|
123
|
-
|
|
123
|
+
h,
|
|
124
124
|
null,
|
|
125
125
|
null,
|
|
126
126
|
null
|
|
127
127
|
);
|
|
128
|
-
function
|
|
128
|
+
function h(e) {
|
|
129
129
|
for (let t in s)
|
|
130
130
|
this[t] = s[t];
|
|
131
131
|
}
|
|
132
132
|
const R = /* @__PURE__ */ function() {
|
|
133
|
-
return
|
|
133
|
+
return T.exports;
|
|
134
134
|
}();
|
|
135
135
|
export {
|
|
136
136
|
R as default
|
package/form-item/index.mjs
CHANGED
|
@@ -1,38 +1,36 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var q = Object.getOwnPropertySymbols;
|
|
3
3
|
var P = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var F = (e, r, t) => r in e ? M(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, _ = (e, r) => {
|
|
5
5
|
for (var t in r || (r = {}))
|
|
6
|
-
P.call(r, t) &&
|
|
6
|
+
P.call(r, t) && F(e, t, r[t]);
|
|
7
7
|
if (q)
|
|
8
8
|
for (var t of q(r))
|
|
9
|
-
T.call(r, t) &&
|
|
9
|
+
T.call(r, t) && F(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
12
|
var h = (e, r, t) => new Promise((i, f) => {
|
|
13
|
-
var s = (
|
|
13
|
+
var s = (l) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
f(
|
|
15
|
+
a(t.next(l));
|
|
16
|
+
} catch (n) {
|
|
17
|
+
f(n);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, o = (l) => {
|
|
20
20
|
try {
|
|
21
|
-
|
|
22
|
-
} catch (
|
|
23
|
-
f(
|
|
21
|
+
a(t.throw(l));
|
|
22
|
+
} catch (n) {
|
|
23
|
+
f(n);
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
|
|
25
|
+
}, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, o);
|
|
26
|
+
a((t = t.apply(e, r)).next());
|
|
27
27
|
});
|
|
28
|
-
import V from "
|
|
29
|
-
import z from "element-ui/lib/form-item";
|
|
30
|
-
import { f as B } from "../chunks/form-item-mixin.57cb2019.mjs";
|
|
28
|
+
import { f as V } from "../chunks/form-item-mixin.ad148e7b.mjs";
|
|
31
29
|
import { hasOwn as w } from "@web-utils/core";
|
|
32
|
-
import { n as
|
|
33
|
-
const
|
|
30
|
+
import { n as z } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
31
|
+
const B = {
|
|
34
32
|
name: "FormItem",
|
|
35
|
-
mixins: [
|
|
33
|
+
mixins: [V],
|
|
36
34
|
inject: {
|
|
37
35
|
formHolder: {
|
|
38
36
|
default: ""
|
|
@@ -52,39 +50,39 @@ const O = {
|
|
|
52
50
|
},
|
|
53
51
|
methods: {
|
|
54
52
|
renderFormItem() {
|
|
55
|
-
var
|
|
53
|
+
var v, b, g;
|
|
56
54
|
const e = this.$createElement, {
|
|
57
55
|
label: r,
|
|
58
56
|
labelWidth: t,
|
|
59
57
|
prop: i,
|
|
60
58
|
rules: f,
|
|
61
59
|
$scopedSlots: s,
|
|
62
|
-
elFormItemProps:
|
|
63
|
-
elForm:
|
|
64
|
-
formHolder:
|
|
65
|
-
formItemClass:
|
|
60
|
+
elFormItemProps: o,
|
|
61
|
+
elForm: a,
|
|
62
|
+
formHolder: l,
|
|
63
|
+
formItemClass: n,
|
|
66
64
|
required: u,
|
|
67
65
|
block: k,
|
|
68
66
|
half: y,
|
|
69
67
|
wrapCol: $,
|
|
70
68
|
wrapFormItem: R,
|
|
71
|
-
disabled:
|
|
72
|
-
formItemConfig:
|
|
73
|
-
getRequireRule:
|
|
69
|
+
disabled: E,
|
|
70
|
+
formItemConfig: d,
|
|
71
|
+
getRequireRule: W
|
|
74
72
|
} = this;
|
|
75
|
-
let m = f,
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
return
|
|
73
|
+
let m = f, c = u, p = u, I = k, C = $;
|
|
74
|
+
d && (w(d, "block") && (I = d.block), w(d, "wrapCol") && (C = d.wrapCol));
|
|
75
|
+
const j = I && y && C ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
76
|
+
return E || a != null && a.disabled ? (m = [], l && !l.required && !((v = l.requiredFields) != null && v.includes(i)) && (p = !1)) : (l && !l.required && !((b = l.requiredFields) != null && b.includes(i)) && (c = !1), c && !(m != null && m.length) && i ? m = [W()] : c || (p = !1, m && (m = m.filter((H) => !H.required)))), R ? (
|
|
79
77
|
// eslint-disable-next-line no-undef
|
|
80
|
-
e(
|
|
78
|
+
e("ElFormItem", {
|
|
81
79
|
style: {
|
|
82
|
-
width:
|
|
80
|
+
width: j
|
|
83
81
|
},
|
|
84
|
-
key: `${i}-${
|
|
85
|
-
class:
|
|
82
|
+
key: `${i}-${c}`,
|
|
83
|
+
class: p ? `form-item required ${n || ""}` : `${n || ""}`,
|
|
86
84
|
scopedSlots: s,
|
|
87
|
-
props: _({},
|
|
85
|
+
props: _({}, o),
|
|
88
86
|
attrs: {
|
|
89
87
|
label: r,
|
|
90
88
|
"label-width": t,
|
|
@@ -93,7 +91,7 @@ const O = {
|
|
|
93
91
|
},
|
|
94
92
|
ref: "formItem"
|
|
95
93
|
})
|
|
96
|
-
) : e("div", [(
|
|
94
|
+
) : e("div", [(g = s.default) == null ? void 0 : g.call(s)]);
|
|
97
95
|
},
|
|
98
96
|
clearValidate() {
|
|
99
97
|
return h(this, null, function* () {
|
|
@@ -109,47 +107,47 @@ const O = {
|
|
|
109
107
|
}
|
|
110
108
|
},
|
|
111
109
|
render() {
|
|
112
|
-
var
|
|
110
|
+
var n, u;
|
|
113
111
|
const e = arguments[0], {
|
|
114
112
|
computeSpan: r,
|
|
115
113
|
wrapCol: t,
|
|
116
114
|
formItemConfig: i,
|
|
117
115
|
renderFormItem: f,
|
|
118
116
|
elColProps: s,
|
|
119
|
-
$scopedSlots:
|
|
120
|
-
unwrap:
|
|
117
|
+
$scopedSlots: o,
|
|
118
|
+
unwrap: a
|
|
121
119
|
} = this;
|
|
122
|
-
let
|
|
123
|
-
return i && w(i, "wrapCol") && (
|
|
120
|
+
let l = t;
|
|
121
|
+
return i && w(i, "wrapCol") && (l = i.wrapCol), a ? e("div", [(n = o.default) == null ? void 0 : n.call(o)]) : l ? (
|
|
124
122
|
// eslint-disable-next-line no-undef
|
|
125
|
-
e(
|
|
123
|
+
e("ElCol", {
|
|
126
124
|
props: _({}, s),
|
|
127
125
|
attrs: {
|
|
128
126
|
span: r
|
|
129
127
|
}
|
|
130
|
-
}, [f(), (u =
|
|
128
|
+
}, [f(), (u = o == null ? void 0 : o.below) == null ? void 0 : u.call(o)])
|
|
131
129
|
) : f();
|
|
132
130
|
}
|
|
133
131
|
};
|
|
134
|
-
let
|
|
135
|
-
const
|
|
136
|
-
var
|
|
132
|
+
let N, O;
|
|
133
|
+
const x = {};
|
|
134
|
+
var A = /* @__PURE__ */ z(
|
|
135
|
+
B,
|
|
136
|
+
N,
|
|
137
137
|
O,
|
|
138
|
-
A,
|
|
139
|
-
D,
|
|
140
138
|
!1,
|
|
141
|
-
|
|
139
|
+
D,
|
|
142
140
|
null,
|
|
143
141
|
null,
|
|
144
142
|
null
|
|
145
143
|
);
|
|
146
|
-
function
|
|
147
|
-
for (let r in
|
|
148
|
-
this[r] =
|
|
144
|
+
function D(e) {
|
|
145
|
+
for (let r in x)
|
|
146
|
+
this[r] = x[r];
|
|
149
147
|
}
|
|
150
|
-
const
|
|
151
|
-
return
|
|
148
|
+
const Q = /* @__PURE__ */ function() {
|
|
149
|
+
return A.exports;
|
|
152
150
|
}();
|
|
153
151
|
export {
|
|
154
|
-
|
|
152
|
+
Q as default
|
|
155
153
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import m from "
|
|
2
|
-
import u from "
|
|
3
|
-
|
|
4
|
-
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
-
const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], f = ["$emit", "validate", "clearValidate"], h = {
|
|
1
|
+
import { isFunction as m } from "@web-utils/core";
|
|
2
|
+
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], c = ["$emit", "validate", "clearValidate"], p = {
|
|
6
4
|
name: "FormItemGroup",
|
|
7
5
|
inject: {
|
|
8
6
|
elForm: {
|
|
@@ -34,7 +32,7 @@ const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
34
32
|
},
|
|
35
33
|
data() {
|
|
36
34
|
const e = {};
|
|
37
|
-
return
|
|
35
|
+
return r.forEach((t) => {
|
|
38
36
|
e[t] = null;
|
|
39
37
|
}), {
|
|
40
38
|
expand: !0,
|
|
@@ -47,7 +45,7 @@ const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
47
45
|
enabled: this.enabled,
|
|
48
46
|
forbidden: this.disabled
|
|
49
47
|
};
|
|
50
|
-
return
|
|
48
|
+
return r.forEach((t) => {
|
|
51
49
|
e[t] = this.elForm[t];
|
|
52
50
|
}), e;
|
|
53
51
|
}
|
|
@@ -62,9 +60,9 @@ const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
62
60
|
formCfg: {
|
|
63
61
|
immediate: !0,
|
|
64
62
|
handler() {
|
|
65
|
-
this.formConfig.disabled = this.isDisabled(),
|
|
63
|
+
this.formConfig.disabled = this.isDisabled(), r.forEach((e) => {
|
|
66
64
|
var t;
|
|
67
|
-
e !== "disabled" && (
|
|
65
|
+
e !== "disabled" && (c.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
68
66
|
});
|
|
69
67
|
}
|
|
70
68
|
}
|
|
@@ -79,24 +77,24 @@ const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
79
77
|
isDisabled() {
|
|
80
78
|
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
81
79
|
},
|
|
82
|
-
dispatch(e, t,
|
|
80
|
+
dispatch(e, t, s) {
|
|
83
81
|
let i = this.$parent || this.$root, o = i.$options.name;
|
|
84
82
|
for (; i && (!o || o !== e); )
|
|
85
83
|
i = i.$parent, i && (o = i.$options.name);
|
|
86
|
-
i && i.$emit.apply(i, [t].concat(
|
|
84
|
+
i && i.$emit.apply(i, [t].concat(s));
|
|
87
85
|
},
|
|
88
86
|
renderDefault() {
|
|
89
87
|
const e = this.$createElement, {
|
|
90
88
|
wrapRow: t,
|
|
91
|
-
gutter:
|
|
89
|
+
gutter: s,
|
|
92
90
|
formConfig: i,
|
|
93
91
|
$scopedSlots: o
|
|
94
92
|
} = this;
|
|
95
|
-
return
|
|
93
|
+
return m(o.default) ? t ? (
|
|
96
94
|
// eslint-disable-next-line no-undef
|
|
97
|
-
e(
|
|
95
|
+
e("ElRow", {
|
|
98
96
|
attrs: {
|
|
99
|
-
gutter:
|
|
97
|
+
gutter: s
|
|
100
98
|
},
|
|
101
99
|
class: "form-item-group-row"
|
|
102
100
|
}, [o.default({
|
|
@@ -121,11 +119,11 @@ const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
121
119
|
render() {
|
|
122
120
|
const e = arguments[0], {
|
|
123
121
|
renderDefault: t,
|
|
124
|
-
blockTitle:
|
|
122
|
+
blockTitle: s,
|
|
125
123
|
active: i,
|
|
126
124
|
expand: o,
|
|
127
|
-
toggle:
|
|
128
|
-
$scopedSlots:
|
|
125
|
+
toggle: n,
|
|
126
|
+
$scopedSlots: a,
|
|
129
127
|
isDisabled: d
|
|
130
128
|
} = this;
|
|
131
129
|
return e("div", {
|
|
@@ -136,13 +134,13 @@ const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
136
134
|
}, [e("div", {
|
|
137
135
|
class: "form-item-group-title",
|
|
138
136
|
on: {
|
|
139
|
-
click:
|
|
137
|
+
click: n
|
|
140
138
|
}
|
|
141
139
|
}, [e("span", {
|
|
142
140
|
class: "flex-item"
|
|
143
|
-
}, [
|
|
141
|
+
}, [s, a["title-right"] ? a["title-right"]() : null]), " ", e("i", {
|
|
144
142
|
class: o ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
145
|
-
})]), e(
|
|
143
|
+
})]), e("ElCollapseTransition", [e("div", {
|
|
146
144
|
directives: [{
|
|
147
145
|
name: "show",
|
|
148
146
|
value: o
|
|
@@ -150,25 +148,25 @@ const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
150
148
|
}, [t()])])]);
|
|
151
149
|
}
|
|
152
150
|
};
|
|
153
|
-
let
|
|
154
|
-
const
|
|
155
|
-
var
|
|
151
|
+
let f, h;
|
|
152
|
+
const l = {};
|
|
153
|
+
var b = /* @__PURE__ */ u(
|
|
154
|
+
p,
|
|
155
|
+
f,
|
|
156
156
|
h,
|
|
157
|
-
_,
|
|
158
|
-
b,
|
|
159
157
|
!1,
|
|
160
|
-
|
|
158
|
+
g,
|
|
161
159
|
null,
|
|
162
160
|
null,
|
|
163
161
|
null
|
|
164
162
|
);
|
|
165
|
-
function
|
|
166
|
-
for (let t in
|
|
167
|
-
this[t] =
|
|
163
|
+
function g(e) {
|
|
164
|
+
for (let t in l)
|
|
165
|
+
this[t] = l[t];
|
|
168
166
|
}
|
|
169
|
-
const
|
|
170
|
-
return
|
|
167
|
+
const w = /* @__PURE__ */ function() {
|
|
168
|
+
return b.exports;
|
|
171
169
|
}();
|
|
172
170
|
export {
|
|
173
|
-
|
|
171
|
+
w as default
|
|
174
172
|
};
|