@web-utils/component 3.0.4 → 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 +22 -27
- 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 -660
- 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
package/form-block/index.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
-
const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], m = ["$emit", "validate", "clearValidate"], u = {
|
|
1
|
+
import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], d = ["$emit", "validate", "clearValidate"], c = {
|
|
5
3
|
name: "FormBlock",
|
|
6
4
|
inject: {
|
|
7
5
|
elForm: {
|
|
@@ -30,7 +28,7 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
30
28
|
},
|
|
31
29
|
data() {
|
|
32
30
|
const e = {};
|
|
33
|
-
return
|
|
31
|
+
return l.forEach((t) => {
|
|
34
32
|
e[t] = null;
|
|
35
33
|
}), {
|
|
36
34
|
expand: !0,
|
|
@@ -43,7 +41,7 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
43
41
|
enabled: this.enabled,
|
|
44
42
|
forbidden: this.disabled
|
|
45
43
|
};
|
|
46
|
-
return
|
|
44
|
+
return l.forEach((t) => {
|
|
47
45
|
e[t] = this.elForm[t];
|
|
48
46
|
}), e;
|
|
49
47
|
}
|
|
@@ -58,9 +56,9 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
58
56
|
formCfg: {
|
|
59
57
|
immediate: !0,
|
|
60
58
|
handler() {
|
|
61
|
-
this.formConfig.disabled = this.available(),
|
|
59
|
+
this.formConfig.disabled = this.available(), l.forEach((e) => {
|
|
62
60
|
var t;
|
|
63
|
-
e !== "disabled" && (
|
|
61
|
+
e !== "disabled" && (d.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
64
62
|
});
|
|
65
63
|
}
|
|
66
64
|
}
|
|
@@ -90,7 +88,7 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
90
88
|
} = this;
|
|
91
89
|
return t ? (
|
|
92
90
|
// eslint-disable-next-line no-undef
|
|
93
|
-
e(
|
|
91
|
+
e("ElRow", {
|
|
94
92
|
attrs: {
|
|
95
93
|
gutter: a
|
|
96
94
|
}
|
|
@@ -114,7 +112,7 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
114
112
|
blockTitle: a,
|
|
115
113
|
active: o,
|
|
116
114
|
expand: i,
|
|
117
|
-
toggle:
|
|
115
|
+
toggle: r
|
|
118
116
|
} = this;
|
|
119
117
|
return e("div", {
|
|
120
118
|
class: ["form-block", {
|
|
@@ -123,13 +121,13 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
123
121
|
}, [e("div", {
|
|
124
122
|
class: "form-block-title",
|
|
125
123
|
on: {
|
|
126
|
-
click:
|
|
124
|
+
click: r
|
|
127
125
|
}
|
|
128
126
|
}, [e("span", {
|
|
129
127
|
class: "flex-item"
|
|
130
128
|
}, [a]), " ", e("i", {
|
|
131
129
|
class: i ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
132
|
-
})]), e(
|
|
130
|
+
})]), e("ElCollapseTransition", [e("div", {
|
|
133
131
|
directives: [{
|
|
134
132
|
name: "show",
|
|
135
133
|
value: i
|
|
@@ -137,25 +135,25 @@ const n = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
|
|
|
137
135
|
}, [t()])])]);
|
|
138
136
|
}
|
|
139
137
|
};
|
|
140
|
-
let
|
|
141
|
-
const
|
|
142
|
-
var
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
let m, h;
|
|
139
|
+
const s = {};
|
|
140
|
+
var f = /* @__PURE__ */ n(
|
|
141
|
+
c,
|
|
142
|
+
m,
|
|
145
143
|
h,
|
|
146
144
|
!1,
|
|
147
|
-
|
|
145
|
+
u,
|
|
148
146
|
null,
|
|
149
147
|
null,
|
|
150
148
|
null
|
|
151
149
|
);
|
|
152
|
-
function
|
|
153
|
-
for (let t in
|
|
154
|
-
this[t] =
|
|
150
|
+
function u(e) {
|
|
151
|
+
for (let t in s)
|
|
152
|
+
this[t] = s[t];
|
|
155
153
|
}
|
|
156
|
-
const
|
|
157
|
-
return
|
|
154
|
+
const b = /* @__PURE__ */ function() {
|
|
155
|
+
return f.exports;
|
|
158
156
|
}();
|
|
159
157
|
export {
|
|
160
|
-
|
|
158
|
+
b as default
|
|
161
159
|
};
|
package/form-cascader/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var n = Object.getOwnPropertySymbols;
|
|
3
3
|
var c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var o = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
|
|
5
5
|
for (var r in t || (t = {}))
|
|
6
|
-
c.call(t, r) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
d.call(t, r) &&
|
|
6
|
+
c.call(t, r) && o(e, r, t[r]);
|
|
7
|
+
if (n)
|
|
8
|
+
for (var r of n(t))
|
|
9
|
+
d.call(t, r) && o(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as m } from "../chunks/form-input-mixin.
|
|
12
|
+
import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import { f } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
-
import
|
|
14
|
+
import s from "element-ui/lib/cascader";
|
|
15
15
|
import { d as h, n as y } from "../chunks/index.57f871af.mjs";
|
|
16
|
-
import { findTreeChildren as
|
|
16
|
+
import { findTreeChildren as v, setParent as _ } from "@web-utils/core";
|
|
17
17
|
import { cloneDeep as b } from "@web-utils/integrations/lodash";
|
|
18
18
|
import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
19
19
|
var k = function() {
|
|
@@ -27,7 +27,7 @@ var k = function() {
|
|
|
27
27
|
key: "default",
|
|
28
28
|
fn: function() {
|
|
29
29
|
return [e._t("default", function() {
|
|
30
|
-
return [r(
|
|
30
|
+
return [r("ElCascader", e._g(e._b({
|
|
31
31
|
class: {
|
|
32
32
|
"is-readonly": e.readonly
|
|
33
33
|
},
|
|
@@ -72,9 +72,9 @@ var k = function() {
|
|
|
72
72
|
}], null, !0)
|
|
73
73
|
}, "FormItem", e.formItemProps, !1));
|
|
74
74
|
}, x = [];
|
|
75
|
-
const P = Object.keys(
|
|
75
|
+
const P = Object.keys(s.props || s.default.props).filter(
|
|
76
76
|
(e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)
|
|
77
|
-
),
|
|
77
|
+
), w = {
|
|
78
78
|
name: "FormCascader",
|
|
79
79
|
mixins: [m, f],
|
|
80
80
|
props: {
|
|
@@ -114,10 +114,10 @@ const P = Object.keys(o.props || o.default.props).filter(
|
|
|
114
114
|
},
|
|
115
115
|
computed: {
|
|
116
116
|
inputProps() {
|
|
117
|
-
return h(
|
|
117
|
+
return h(l(l({}, y(this.$attrs)), this.$props), P);
|
|
118
118
|
},
|
|
119
119
|
inputVal() {
|
|
120
|
-
let [e] =
|
|
120
|
+
let [e] = v(this.innerOptions, (r) => r[this.valueKey] === this.value);
|
|
121
121
|
const t = [];
|
|
122
122
|
for (; e; )
|
|
123
123
|
t.push(e[this.valueKey]), e = e.parent;
|
|
@@ -130,7 +130,7 @@ const P = Object.keys(o.props || o.default.props).filter(
|
|
|
130
130
|
handler(e) {
|
|
131
131
|
if (e) {
|
|
132
132
|
const t = b(e);
|
|
133
|
-
|
|
133
|
+
_(t), this.innerOptions = t;
|
|
134
134
|
} else
|
|
135
135
|
this.innerOptions = [];
|
|
136
136
|
}
|
|
@@ -143,8 +143,8 @@ const P = Object.keys(o.props || o.default.props).filter(
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}, a = {};
|
|
146
|
-
var
|
|
147
|
-
|
|
146
|
+
var C = /* @__PURE__ */ S(
|
|
147
|
+
w,
|
|
148
148
|
k,
|
|
149
149
|
x,
|
|
150
150
|
!1,
|
|
@@ -157,9 +157,9 @@ function K(e) {
|
|
|
157
157
|
for (let t in a)
|
|
158
158
|
this[t] = a[t];
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
return
|
|
160
|
+
const E = /* @__PURE__ */ function() {
|
|
161
|
+
return C.exports;
|
|
162
162
|
}();
|
|
163
163
|
export {
|
|
164
|
-
|
|
164
|
+
E as default
|
|
165
165
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var i = Object.getOwnPropertySymbols;
|
|
3
3
|
var h = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var n = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
|
|
5
5
|
for (var r in t || (t = {}))
|
|
6
|
-
h.call(t, r) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
c.call(t, r) &&
|
|
6
|
+
h.call(t, r) && n(e, r, t[r]);
|
|
7
|
+
if (i)
|
|
8
|
+
for (var r of i(t))
|
|
9
|
+
c.call(t, r) && n(e, r, t[r]);
|
|
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 { f as m } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
14
|
import { d, n as b } from "../chunks/index.57f871af.mjs";
|
|
15
|
-
import
|
|
16
|
-
import y from "
|
|
17
|
-
|
|
18
|
-
var v = function() {
|
|
15
|
+
import s from "element-ui/lib/checkbox-group";
|
|
16
|
+
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
|
+
var _ = function() {
|
|
19
18
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
20
19
|
return r("FormItem", e._b({
|
|
21
20
|
class: ["form-checkbox-group", {
|
|
@@ -28,7 +27,7 @@ var v = function() {
|
|
|
28
27
|
scopedSlots: e._u([{
|
|
29
28
|
key: "default",
|
|
30
29
|
fn: function() {
|
|
31
|
-
return [r(
|
|
30
|
+
return [r("ElCheckboxGroup", e._g(e._b({
|
|
32
31
|
attrs: {
|
|
33
32
|
disabled: e.inputDisabled,
|
|
34
33
|
value: e.computeVal,
|
|
@@ -38,7 +37,7 @@ var v = function() {
|
|
|
38
37
|
input: e.emitInput
|
|
39
38
|
}
|
|
40
39
|
}, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(o) {
|
|
41
|
-
return r(
|
|
40
|
+
return r("ElCheckbox", {
|
|
42
41
|
key: o[e.valueKey],
|
|
43
42
|
attrs: {
|
|
44
43
|
label: o[e.valueKey]
|
|
@@ -92,10 +91,10 @@ var v = function() {
|
|
|
92
91
|
proxy: !0
|
|
93
92
|
}], null, !0)
|
|
94
93
|
}, "FormItem", e.formItemProps, !1));
|
|
95
|
-
},
|
|
96
|
-
const
|
|
94
|
+
}, v = [];
|
|
95
|
+
const x = Object.keys(s.props || s.default.props).filter(
|
|
97
96
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
98
|
-
),
|
|
97
|
+
), g = {
|
|
99
98
|
name: "FormCheckboxGroup",
|
|
100
99
|
mixins: [f, m],
|
|
101
100
|
props: {
|
|
@@ -151,7 +150,7 @@ const g = Object.keys(i.props || i.default.props).filter(
|
|
|
151
150
|
return this.classic ? "value" : this.valueProp;
|
|
152
151
|
},
|
|
153
152
|
inputProps() {
|
|
154
|
-
return d(l(l({}, b(this.$attrs)), this.$props),
|
|
153
|
+
return d(l(l({}, b(this.$attrs)), this.$props), x);
|
|
155
154
|
},
|
|
156
155
|
innerOptions() {
|
|
157
156
|
return this.gender ? [
|
|
@@ -184,23 +183,23 @@ const g = Object.keys(i.props || i.default.props).filter(
|
|
|
184
183
|
}
|
|
185
184
|
}
|
|
186
185
|
}, a = {};
|
|
187
|
-
var
|
|
188
|
-
|
|
186
|
+
var k = /* @__PURE__ */ y(
|
|
187
|
+
g,
|
|
188
|
+
_,
|
|
189
189
|
v,
|
|
190
|
-
x,
|
|
191
190
|
!1,
|
|
192
|
-
|
|
191
|
+
P,
|
|
193
192
|
null,
|
|
194
193
|
null,
|
|
195
194
|
null
|
|
196
195
|
);
|
|
197
|
-
function
|
|
196
|
+
function P(e) {
|
|
198
197
|
for (let t in a)
|
|
199
198
|
this[t] = a[t];
|
|
200
199
|
}
|
|
201
|
-
const
|
|
202
|
-
return
|
|
200
|
+
const I = /* @__PURE__ */ function() {
|
|
201
|
+
return k.exports;
|
|
203
202
|
}();
|
|
204
203
|
export {
|
|
205
|
-
|
|
204
|
+
I as default
|
|
206
205
|
};
|
|
@@ -10,13 +10,12 @@ var s = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
c.call(t, r) && s(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, o = (e, t) => h(e, d(t));
|
|
13
|
-
import { f as y } from "../chunks/form-input-mixin.
|
|
13
|
+
import { f as y } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
14
14
|
import { f as g } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
15
15
|
import { toDate as l } from "@web-utils/integrations/dayjs";
|
|
16
|
-
import { d as _, n as
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
var P = function() {
|
|
16
|
+
import { d as _, n as k } from "../chunks/index.57f871af.mjs";
|
|
17
|
+
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
18
|
+
var x = function() {
|
|
20
19
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
21
20
|
return r("FormItem", e._b({
|
|
22
21
|
attrs: {
|
|
@@ -26,7 +25,7 @@ var P = function() {
|
|
|
26
25
|
scopedSlots: e._u([{
|
|
27
26
|
key: "default",
|
|
28
27
|
fn: function() {
|
|
29
|
-
return [r(
|
|
28
|
+
return [r("ElDatePicker", e._g(e._b({
|
|
30
29
|
staticStyle: {
|
|
31
30
|
width: "100%"
|
|
32
31
|
},
|
|
@@ -66,8 +65,8 @@ var P = function() {
|
|
|
66
65
|
proxy: !0
|
|
67
66
|
}], null, !0)
|
|
68
67
|
}, "FormItem", e.formItemProps, !1));
|
|
69
|
-
},
|
|
70
|
-
const
|
|
68
|
+
}, P = [];
|
|
69
|
+
const S = [
|
|
71
70
|
"type",
|
|
72
71
|
"timeArrowControl",
|
|
73
72
|
"size",
|
|
@@ -93,7 +92,7 @@ const D = [
|
|
|
93
92
|
"pickerOptions",
|
|
94
93
|
"unlinkPanels",
|
|
95
94
|
"validateEvent"
|
|
96
|
-
].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)),
|
|
95
|
+
].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), D = {
|
|
97
96
|
name: "FormDatePicker",
|
|
98
97
|
mixins: [y, g],
|
|
99
98
|
props: {
|
|
@@ -176,14 +175,14 @@ const D = [
|
|
|
176
175
|
},
|
|
177
176
|
inputProps() {
|
|
178
177
|
return _(
|
|
179
|
-
o(i(i({},
|
|
178
|
+
o(i(i({}, k(this.$attrs)), this.$props), {
|
|
180
179
|
valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
|
|
181
180
|
format: this.format || this.fat,
|
|
182
181
|
rangeSeparator: this.rangeSeparator || "至",
|
|
183
182
|
startPlaceholder: this.startPlaceholder || "开始日期",
|
|
184
183
|
endPlaceholder: this.endPlaceholder || "结束日期"
|
|
185
184
|
}),
|
|
186
|
-
|
|
185
|
+
S
|
|
187
186
|
);
|
|
188
187
|
},
|
|
189
188
|
range() {
|
|
@@ -199,23 +198,23 @@ const D = [
|
|
|
199
198
|
}
|
|
200
199
|
}
|
|
201
200
|
}, m = {};
|
|
202
|
-
var
|
|
203
|
-
|
|
201
|
+
var b = /* @__PURE__ */ v(
|
|
202
|
+
D,
|
|
203
|
+
x,
|
|
204
204
|
P,
|
|
205
|
-
S,
|
|
206
205
|
!1,
|
|
207
|
-
|
|
206
|
+
T,
|
|
208
207
|
null,
|
|
209
208
|
null,
|
|
210
209
|
null
|
|
211
210
|
);
|
|
212
|
-
function
|
|
211
|
+
function T(e) {
|
|
213
212
|
for (let t in m)
|
|
214
213
|
this[t] = m[t];
|
|
215
214
|
}
|
|
216
|
-
const
|
|
217
|
-
return
|
|
215
|
+
const I = /* @__PURE__ */ function() {
|
|
216
|
+
return b.exports;
|
|
218
217
|
}();
|
|
219
218
|
export {
|
|
220
|
-
|
|
219
|
+
I as default
|
|
221
220
|
};
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o = (e, r, i) => new Promise((d, s) => {
|
|
2
2
|
var f = (t) => {
|
|
3
3
|
try {
|
|
4
4
|
l(i.next(t));
|
|
5
5
|
} catch (a) {
|
|
6
|
-
|
|
6
|
+
s(a);
|
|
7
7
|
}
|
|
8
8
|
}, m = (t) => {
|
|
9
9
|
try {
|
|
10
10
|
l(i.throw(t));
|
|
11
11
|
} catch (a) {
|
|
12
|
-
|
|
12
|
+
s(a);
|
|
13
13
|
}
|
|
14
14
|
}, l = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(f, m);
|
|
15
15
|
l((i = i.apply(e, r)).next());
|
|
16
16
|
});
|
|
17
17
|
import { warning as u } from "@web-utils/core";
|
|
18
18
|
import { e as c } from "../chunks/index.57f871af.mjs";
|
|
19
|
-
import _ from "element-ui/lib/form";
|
|
20
19
|
import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
21
|
-
var
|
|
20
|
+
var _ = function() {
|
|
22
21
|
var e = this, r = e.$createElement, i = e._self._c || r;
|
|
23
|
-
return i(
|
|
22
|
+
return i("ElForm", e._g(e._b({
|
|
24
23
|
ref: "form",
|
|
25
24
|
staticClass: "clear-fix",
|
|
26
25
|
attrs: {
|
|
@@ -31,8 +30,8 @@ var h = function() {
|
|
|
31
30
|
"label-position": e.labelPosition
|
|
32
31
|
}
|
|
33
32
|
}, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
|
|
34
|
-
},
|
|
35
|
-
const
|
|
33
|
+
}, h = [];
|
|
34
|
+
const v = {
|
|
36
35
|
name: "FormHolder",
|
|
37
36
|
provide() {
|
|
38
37
|
return {
|
|
@@ -102,7 +101,7 @@ const b = {
|
|
|
102
101
|
(r = this.$refs.form) == null || r.clearValidate(e);
|
|
103
102
|
},
|
|
104
103
|
validate() {
|
|
105
|
-
return
|
|
104
|
+
return o(this, null, function* () {
|
|
106
105
|
return this.$refs.form.validate();
|
|
107
106
|
});
|
|
108
107
|
},
|
|
@@ -111,10 +110,10 @@ const b = {
|
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
}, n = {};
|
|
114
|
-
var
|
|
115
|
-
b,
|
|
116
|
-
h,
|
|
113
|
+
var b = /* @__PURE__ */ p(
|
|
117
114
|
v,
|
|
115
|
+
_,
|
|
116
|
+
h,
|
|
118
117
|
!1,
|
|
119
118
|
F,
|
|
120
119
|
null,
|
|
@@ -125,9 +124,9 @@ function F(e) {
|
|
|
125
124
|
for (let r in n)
|
|
126
125
|
this[r] = n[r];
|
|
127
126
|
}
|
|
128
|
-
const
|
|
129
|
-
return
|
|
127
|
+
const x = /* @__PURE__ */ function() {
|
|
128
|
+
return b.exports;
|
|
130
129
|
}();
|
|
131
130
|
export {
|
|
132
|
-
|
|
131
|
+
x as default
|
|
133
132
|
};
|
package/form-input/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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 s = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, c = 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, o = (e, t) => {
|
|
5
|
+
for (var r in t || (t = {}))
|
|
6
|
+
m.call(t, r) && l(e, r, t[r]);
|
|
7
|
+
if (s)
|
|
8
|
+
for (var r of s(t))
|
|
9
|
+
c.call(t, r) && l(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as
|
|
13
|
-
import
|
|
14
|
-
import { d, n as f } from "../chunks/index.57f871af.mjs";
|
|
12
|
+
import { f as d } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import u from "element-ui/lib/input";
|
|
14
|
+
import { d as _, n as f } from "../chunks/index.57f871af.mjs";
|
|
15
15
|
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
16
|
var y = function() {
|
|
17
|
-
var e = this,
|
|
18
|
-
return
|
|
17
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
18
|
+
return r("FormItem", e._b({
|
|
19
19
|
attrs: {
|
|
20
20
|
rules: e.computeRules,
|
|
21
21
|
disabled: e.inputDisabled
|
|
@@ -24,7 +24,7 @@ var y = function() {
|
|
|
24
24
|
key: "default",
|
|
25
25
|
fn: function() {
|
|
26
26
|
return [e._t("default", function() {
|
|
27
|
-
return [
|
|
27
|
+
return [r("ElInput", e._g(e._b({
|
|
28
28
|
class: {
|
|
29
29
|
"is-readonly": e.readonly
|
|
30
30
|
},
|
|
@@ -45,7 +45,7 @@ var y = function() {
|
|
|
45
45
|
},
|
|
46
46
|
proxy: !0
|
|
47
47
|
}], null, !0)
|
|
48
|
-
}, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ?
|
|
48
|
+
}, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", {
|
|
49
49
|
staticClass: "el-form-item__warn"
|
|
50
50
|
}, [e._t("warn")], 2) : e._e()];
|
|
51
51
|
})];
|
|
@@ -55,7 +55,7 @@ var y = function() {
|
|
|
55
55
|
key: "error",
|
|
56
56
|
fn: function(i) {
|
|
57
57
|
var n = i.error;
|
|
58
|
-
return [e.$scopedSlots.error && e.$scopedSlots.error(n) ?
|
|
58
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", {
|
|
59
59
|
staticClass: "el-form-item__error"
|
|
60
60
|
}, [e._t("error", function() {
|
|
61
61
|
return [e._v(" " + e._s(n) + " ")];
|
|
@@ -72,11 +72,11 @@ var y = function() {
|
|
|
72
72
|
}], null, !0)
|
|
73
73
|
}, "FormItem", e.formItemProps, !1));
|
|
74
74
|
}, h = [];
|
|
75
|
-
const b = Object.keys(
|
|
75
|
+
const b = Object.keys(u.props || u.default.props).filter(
|
|
76
76
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
77
77
|
), x = {
|
|
78
78
|
name: "FormInput",
|
|
79
|
-
mixins: [
|
|
79
|
+
mixins: [d],
|
|
80
80
|
props: {
|
|
81
81
|
value: {
|
|
82
82
|
type: [String, Number]
|
|
@@ -88,7 +88,7 @@ const b = Object.keys(s.props || s.default.props).filter(
|
|
|
88
88
|
},
|
|
89
89
|
computed: {
|
|
90
90
|
inputProps() {
|
|
91
|
-
return
|
|
91
|
+
return _(o(o({}, f(this.$attrs)), this.$props), b);
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
methods: {
|
|
@@ -102,14 +102,14 @@ var I = /* @__PURE__ */ v(
|
|
|
102
102
|
y,
|
|
103
103
|
h,
|
|
104
104
|
!1,
|
|
105
|
-
|
|
105
|
+
S,
|
|
106
106
|
null,
|
|
107
107
|
null,
|
|
108
108
|
null
|
|
109
109
|
);
|
|
110
|
-
function
|
|
111
|
-
for (let
|
|
112
|
-
this[
|
|
110
|
+
function S(e) {
|
|
111
|
+
for (let t in a)
|
|
112
|
+
this[t] = a[t];
|
|
113
113
|
}
|
|
114
114
|
const w = /* @__PURE__ */ function() {
|
|
115
115
|
return I.exports;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var l = Object.getOwnPropertySymbols;
|
|
3
3
|
var m = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var s = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, o = (e, r) => {
|
|
5
5
|
for (var t in r || (r = {}))
|
|
6
|
-
m.call(r, t) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
d.call(r, t) &&
|
|
6
|
+
m.call(r, t) && s(e, t, r[t]);
|
|
7
|
+
if (l)
|
|
8
|
+
for (var t of l(r))
|
|
9
|
+
d.call(r, t) && s(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f
|
|
13
|
-
import
|
|
14
|
-
import { d as
|
|
12
|
+
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import a from "element-ui/lib/input";
|
|
14
|
+
import { d as c, n as _ } from "../chunks/index.57f871af.mjs";
|
|
15
15
|
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
16
|
const y = (e, r, t) => r && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(r) ? t(new Error("invalid")) : t();
|
|
17
17
|
var h = function() {
|
|
@@ -24,7 +24,7 @@ var h = function() {
|
|
|
24
24
|
scopedSlots: e._u([{
|
|
25
25
|
key: "default",
|
|
26
26
|
fn: function() {
|
|
27
|
-
return [t(
|
|
27
|
+
return [t("ElInput", e._g(e._b({
|
|
28
28
|
class: {
|
|
29
29
|
"is-readonly": e.readonly
|
|
30
30
|
},
|
|
@@ -60,11 +60,11 @@ var h = function() {
|
|
|
60
60
|
}], null, !0)
|
|
61
61
|
}, "FormItem", e.formItemProps, !1));
|
|
62
62
|
}, x = [];
|
|
63
|
-
const b = Object.keys(
|
|
63
|
+
const b = Object.keys(a.props || a.default.props).filter(
|
|
64
64
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
65
|
-
),
|
|
65
|
+
), I = {
|
|
66
66
|
name: "FormInputEmail",
|
|
67
|
-
mixins: [
|
|
67
|
+
mixins: [f],
|
|
68
68
|
props: {
|
|
69
69
|
value: {
|
|
70
70
|
type: String
|
|
@@ -76,7 +76,7 @@ const b = Object.keys(l.props || l.default.props).filter(
|
|
|
76
76
|
},
|
|
77
77
|
computed: {
|
|
78
78
|
inputProps() {
|
|
79
|
-
return
|
|
79
|
+
return c(o(o({}, _(this.$attrs)), this.$props), b);
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
methods: {
|
|
@@ -90,8 +90,8 @@ const b = Object.keys(l.props || l.default.props).filter(
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}, u = {};
|
|
93
|
-
var
|
|
94
|
-
|
|
93
|
+
var g = /* @__PURE__ */ v(
|
|
94
|
+
I,
|
|
95
95
|
h,
|
|
96
96
|
x,
|
|
97
97
|
!1,
|
|
@@ -105,7 +105,7 @@ function E(e) {
|
|
|
105
105
|
this[r] = u[r];
|
|
106
106
|
}
|
|
107
107
|
const k = /* @__PURE__ */ function() {
|
|
108
|
-
return
|
|
108
|
+
return g.exports;
|
|
109
109
|
}();
|
|
110
110
|
export {
|
|
111
111
|
k as default
|