@web-utils/component 2.8.5 → 2.8.7
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/card/style.css +1 -1
- package/chunks/{form-input-mixin.124653d9.mjs → form-input-mixin.4632ad36.mjs} +1 -1
- package/chunks/{form-item-mixin.135b60df.mjs → form-item-mixin.ad148e7b.mjs} +10 -10
- package/form-cascader/index.mjs +19 -19
- package/form-checkbox-group/index.mjs +17 -17
- package/form-date-picker/index.mjs +1 -1
- package/form-input/index.mjs +14 -14
- package/form-input-email/index.mjs +16 -16
- package/form-input-id-card/index.mjs +13 -13
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +18 -18
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +14 -14
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +13 -13
- package/form-select/index.mjs +17 -17
- package/form-switch/index.mjs +15 -15
- package/form-textarea/index.mjs +14 -14
- package/index.mjs +363 -423
- package/package.json +1 -1
- package/web-types.json +1 -1
package/card/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-card__item{box-sizing:border-box;height:200px;margin-bottom:16px;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;background-color:#fff;border:1px solid #e8e8e8;cursor:pointer;font-feature-settings:"tnum"}.avue-card__item:hover{border-color:#00000017;box-shadow:0 2px 8px #00000017}.avue-card__item--add{display:flex;align-items:center;justify-content:center;width:100%;color:#00000073;font-size:16px;background-color:#fff;border:1px dashed #000;border-color:#d9d9d9;border-radius:2px}.avue-card__item--add i{margin-right:10px}.avue-card__item--add:hover{color:#40a9ff;background-color:#fff;border-color:#40a9ff}.avue-card__body{display:flex;padding:24px}.avue-card__detail{flex:1}.avue-card__avatar{width:48px;height:48px;margin-right:12px;overflow:hidden;border-radius:48px}.avue-card__avatar img{width:100%;height:100%}.avue-card__title{margin-bottom:12px;color:#000000d9;font-size:16px}.avue-card__title:hover{color:#1890ff}.avue-card__info{display:
|
|
1
|
+
.avue-card__item{box-sizing:border-box;height:200px;margin-bottom:16px;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;background-color:#fff;border:1px solid #e8e8e8;cursor:pointer;font-feature-settings:"tnum"}.avue-card__item:hover{border-color:#00000017;box-shadow:0 2px 8px #00000017}.avue-card__item--add{display:flex;align-items:center;justify-content:center;width:100%;color:#00000073;font-size:16px;background-color:#fff;border:1px dashed #000;border-color:#d9d9d9;border-radius:2px}.avue-card__item--add i{margin-right:10px}.avue-card__item--add:hover{color:#40a9ff;background-color:#fff;border-color:#40a9ff}.avue-card__body{display:flex;padding:24px}.avue-card__detail{flex:1}.avue-card__avatar{width:48px;height:48px;margin-right:12px;overflow:hidden;border-radius:48px}.avue-card__avatar img{width:100%;height:100%}.avue-card__title{margin-bottom:12px;color:#000000d9;font-size:16px}.avue-card__title:hover{color:#1890ff}.avue-card__info{display:flex;height:64px;overflow:hidden;color:#00000073;-webkit-box-orient:vertical;-webkit-line-clamp:3}.avue-card__menu{display:flex;justify-content:space-around;height:50px;color:#00000073;line-height:50px;text-align:center;background:#f7f9fa}.avue-card__menu:hover{color:#1890ff}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
2
|
var l = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var i = (e, r, t) => r in e ?
|
|
3
|
+
var f = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var i = (e, r, t) => r in e ? m(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, s = (e, r) => {
|
|
5
5
|
for (var t in r || (r = {}))
|
|
6
|
-
|
|
6
|
+
f.call(r, t) && i(e, t, r[t]);
|
|
7
7
|
if (l)
|
|
8
8
|
for (var t of l(r))
|
|
9
|
-
|
|
9
|
+
c.call(r, t) && i(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
12
|
import { d as o } from "./index.57f871af.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const d = ["span"],
|
|
13
|
+
import a from "element-ui/lib/col";
|
|
14
|
+
import u from "element-ui/lib/form-item";
|
|
15
|
+
const d = ["span"], n = [...Object.keys(a.props || a.default.props)], h = n.filter((e) => !d.includes(e)), b = ["label", "prop", "rules", "labelWidth", "required"], p = [...Object.keys(u.props || u.default.props)], g = p.filter((e) => !b.includes(e)), y = [
|
|
16
16
|
"wrapCol",
|
|
17
17
|
"wrapFormItem",
|
|
18
18
|
"unwrap",
|
|
@@ -21,8 +21,8 @@ const d = ["span"], a = [...Object.keys(f.props)], h = a.filter((e) => !d.includ
|
|
|
21
21
|
"placeholder",
|
|
22
22
|
"prefixPick",
|
|
23
23
|
"half",
|
|
24
|
-
...
|
|
25
|
-
...
|
|
24
|
+
...n,
|
|
25
|
+
...p
|
|
26
26
|
], C = {
|
|
27
27
|
inject: {
|
|
28
28
|
elForm: {
|
package/form-cascader/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var o = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
2
|
+
var n = Object.getOwnPropertySymbols;
|
|
3
|
+
var c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
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
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
|
|
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
|
|
13
|
-
import { f
|
|
14
|
-
import
|
|
12
|
+
import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { f } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
+
import s from "element-ui/lib/cascader";
|
|
15
15
|
import { d as h, n as y } from "../chunks/index.57f871af.mjs";
|
|
16
16
|
import { findTreeChildren as v, setParent as _ } from "@web-utils/core";
|
|
17
17
|
import { cloneDeep as b } from "@web-utils/integrations/lodash";
|
|
@@ -57,10 +57,10 @@ var k = function() {
|
|
|
57
57
|
proxy: !0
|
|
58
58
|
}, {
|
|
59
59
|
key: "error",
|
|
60
|
-
fn: function(
|
|
61
|
-
var
|
|
60
|
+
fn: function(i) {
|
|
61
|
+
var p = i.error;
|
|
62
62
|
return [e._t("error", null, {
|
|
63
|
-
error:
|
|
63
|
+
error: p
|
|
64
64
|
})];
|
|
65
65
|
}
|
|
66
66
|
}, {
|
|
@@ -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((e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)), w = {
|
|
76
76
|
name: "FormCascader",
|
|
77
|
-
mixins: [
|
|
77
|
+
mixins: [m, f],
|
|
78
78
|
props: {
|
|
79
79
|
value: {
|
|
80
80
|
type: [String, Number]
|
|
@@ -112,7 +112,7 @@ const P = Object.keys(f.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
112
112
|
},
|
|
113
113
|
computed: {
|
|
114
114
|
inputProps() {
|
|
115
|
-
return h(
|
|
115
|
+
return h(l(l({}, y(this.$attrs)), this.$props), P);
|
|
116
116
|
},
|
|
117
117
|
inputVal() {
|
|
118
118
|
let [e] = v(this.innerOptions, (r) => r[this.valueKey] === this.value);
|
|
@@ -140,7 +140,7 @@ const P = Object.keys(f.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
140
140
|
this.$emit("input", t);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
},
|
|
143
|
+
}, a = {};
|
|
144
144
|
var C = /* @__PURE__ */ S(
|
|
145
145
|
w,
|
|
146
146
|
k,
|
|
@@ -152,8 +152,8 @@ var C = /* @__PURE__ */ S(
|
|
|
152
152
|
null
|
|
153
153
|
);
|
|
154
154
|
function K(e) {
|
|
155
|
-
for (let t in
|
|
156
|
-
this[t] =
|
|
155
|
+
for (let t in a)
|
|
156
|
+
this[t] = a[t];
|
|
157
157
|
}
|
|
158
158
|
const E = /* @__PURE__ */ function() {
|
|
159
159
|
return C.exports;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
2
|
var i = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var n = (e, t, r) => t in e ?
|
|
3
|
+
var h = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
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
|
-
|
|
6
|
+
h.call(t, r) && n(e, r, t[r]);
|
|
7
7
|
if (i)
|
|
8
8
|
for (var r of i(t))
|
|
9
|
-
|
|
9
|
+
c.call(t, r) && n(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f
|
|
13
|
-
import { f } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
-
import { d
|
|
15
|
-
import
|
|
12
|
+
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { f as m } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
+
import { d, n as b } from "../chunks/index.57f871af.mjs";
|
|
15
|
+
import s from "element-ui/lib/checkbox-group";
|
|
16
16
|
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
17
|
var _ = function() {
|
|
18
18
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
@@ -72,9 +72,9 @@ var _ = function() {
|
|
|
72
72
|
}, {
|
|
73
73
|
key: "error",
|
|
74
74
|
fn: function(o) {
|
|
75
|
-
var
|
|
75
|
+
var u = o.error;
|
|
76
76
|
return [e._t("error", null, {
|
|
77
|
-
error:
|
|
77
|
+
error: u
|
|
78
78
|
})];
|
|
79
79
|
}
|
|
80
80
|
}, {
|
|
@@ -92,9 +92,9 @@ var _ = function() {
|
|
|
92
92
|
}], null, !0)
|
|
93
93
|
}, "FormItem", e.formItemProps, !1));
|
|
94
94
|
}, v = [];
|
|
95
|
-
const x = Object.keys(
|
|
95
|
+
const x = Object.keys(s.props || s.default.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), g = {
|
|
96
96
|
name: "FormCheckboxGroup",
|
|
97
|
-
mixins: [
|
|
97
|
+
mixins: [f, m],
|
|
98
98
|
props: {
|
|
99
99
|
options: {
|
|
100
100
|
type: Array,
|
|
@@ -148,7 +148,7 @@ const x = Object.keys(b.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
148
148
|
return this.classic ? "value" : this.valueProp;
|
|
149
149
|
},
|
|
150
150
|
inputProps() {
|
|
151
|
-
return
|
|
151
|
+
return d(l(l({}, b(this.$attrs)), this.$props), x);
|
|
152
152
|
},
|
|
153
153
|
innerOptions() {
|
|
154
154
|
return this.gender ? [
|
|
@@ -180,7 +180,7 @@ const x = Object.keys(b.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
180
180
|
this.split ? this.$emit("input", e.join(",")) : this.$emit("input", e);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
},
|
|
183
|
+
}, a = {};
|
|
184
184
|
var k = /* @__PURE__ */ y(
|
|
185
185
|
g,
|
|
186
186
|
_,
|
|
@@ -192,8 +192,8 @@ var k = /* @__PURE__ */ y(
|
|
|
192
192
|
null
|
|
193
193
|
);
|
|
194
194
|
function P(e) {
|
|
195
|
-
for (let t in
|
|
196
|
-
this[t] =
|
|
195
|
+
for (let t in a)
|
|
196
|
+
this[t] = a[t];
|
|
197
197
|
}
|
|
198
198
|
const I = /* @__PURE__ */ function() {
|
|
199
199
|
return k.exports;
|
|
@@ -10,7 +10,7 @@ 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
16
|
import { d as _, n as k } from "../chunks/index.57f871af.mjs";
|
package/form-input/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
2
|
var s = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var l = (e, t, r) => t in e ?
|
|
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
5
|
for (var r in t || (t = {}))
|
|
6
|
-
|
|
6
|
+
m.call(t, r) && l(e, r, t[r]);
|
|
7
7
|
if (s)
|
|
8
8
|
for (var r of s(t))
|
|
9
|
-
|
|
9
|
+
c.call(t, r) && l(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as
|
|
13
|
-
import
|
|
12
|
+
import { f as d } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import u from "element-ui/lib/input";
|
|
14
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() {
|
|
@@ -53,8 +53,8 @@ var y = function() {
|
|
|
53
53
|
proxy: !0
|
|
54
54
|
}, {
|
|
55
55
|
key: "error",
|
|
56
|
-
fn: function(
|
|
57
|
-
var n =
|
|
56
|
+
fn: function(i) {
|
|
57
|
+
var n = i.error;
|
|
58
58
|
return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", {
|
|
59
59
|
staticClass: "el-form-item__error"
|
|
60
60
|
}, [e._t("error", function() {
|
|
@@ -72,9 +72,9 @@ 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((e) => !["value", "placeholder", "disabled"].includes(e)), x = {
|
|
76
76
|
name: "FormInput",
|
|
77
|
-
mixins: [
|
|
77
|
+
mixins: [d],
|
|
78
78
|
props: {
|
|
79
79
|
value: {
|
|
80
80
|
type: [String, Number]
|
|
@@ -94,7 +94,7 @@ const b = Object.keys(d.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
94
94
|
this.$emit("input", e);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
},
|
|
97
|
+
}, a = {};
|
|
98
98
|
var I = /* @__PURE__ */ v(
|
|
99
99
|
x,
|
|
100
100
|
y,
|
|
@@ -106,8 +106,8 @@ var I = /* @__PURE__ */ v(
|
|
|
106
106
|
null
|
|
107
107
|
);
|
|
108
108
|
function S(e) {
|
|
109
|
-
for (let t in
|
|
110
|
-
this[t] =
|
|
109
|
+
for (let t in a)
|
|
110
|
+
this[t] = a[t];
|
|
111
111
|
}
|
|
112
112
|
const w = /* @__PURE__ */ function() {
|
|
113
113
|
return I.exports;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
2
|
var l = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var s = (e, r, t) => r in e ?
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
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
|
-
|
|
6
|
+
m.call(r, t) && s(e, t, r[t]);
|
|
7
7
|
if (l)
|
|
8
8
|
for (var t of l(r))
|
|
9
|
-
|
|
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() {
|
|
@@ -46,9 +46,9 @@ var h = function() {
|
|
|
46
46
|
}, {
|
|
47
47
|
key: "error",
|
|
48
48
|
fn: function(n) {
|
|
49
|
-
var
|
|
49
|
+
var i = n.error;
|
|
50
50
|
return [e._t("error", null, {
|
|
51
|
-
error:
|
|
51
|
+
error: i
|
|
52
52
|
})];
|
|
53
53
|
}
|
|
54
54
|
}, {
|
|
@@ -60,9 +60,9 @@ 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((e) => !["value", "placeholder", "disabled"].includes(e)), I = {
|
|
64
64
|
name: "FormInputEmail",
|
|
65
|
-
mixins: [
|
|
65
|
+
mixins: [f],
|
|
66
66
|
props: {
|
|
67
67
|
value: {
|
|
68
68
|
type: String
|
|
@@ -74,7 +74,7 @@ const b = Object.keys(c.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
74
74
|
},
|
|
75
75
|
computed: {
|
|
76
76
|
inputProps() {
|
|
77
|
-
return
|
|
77
|
+
return c(o(o({}, _(this.$attrs)), this.$props), b);
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
methods: {
|
|
@@ -85,7 +85,7 @@ const b = Object.keys(c.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
85
85
|
}];
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, u = {};
|
|
89
89
|
var g = /* @__PURE__ */ v(
|
|
90
90
|
I,
|
|
91
91
|
h,
|
|
@@ -97,8 +97,8 @@ var g = /* @__PURE__ */ v(
|
|
|
97
97
|
null
|
|
98
98
|
);
|
|
99
99
|
function E(e) {
|
|
100
|
-
for (let r in
|
|
101
|
-
this[r] =
|
|
100
|
+
for (let r in u)
|
|
101
|
+
this[r] = u[r];
|
|
102
102
|
}
|
|
103
103
|
const k = /* @__PURE__ */ function() {
|
|
104
104
|
return g.exports;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
2
|
var l = Object.getOwnPropertySymbols;
|
|
3
|
-
var m = Object.prototype.hasOwnProperty,
|
|
4
|
-
var a = (r, e, t) => e in r ?
|
|
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
6
|
m.call(e, t) && a(r, t, e[t]);
|
|
7
7
|
if (l)
|
|
8
8
|
for (var t of l(e))
|
|
9
|
-
|
|
9
|
+
c.call(e, t) && a(r, t, e[t]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
|
-
import { f
|
|
12
|
+
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import { validateIdCard as i } from "@web-utils/core";
|
|
14
|
-
import
|
|
15
|
-
import { d as
|
|
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;
|
|
@@ -66,9 +66,9 @@ var h = function() {
|
|
|
66
66
|
}], null, !0)
|
|
67
67
|
}, "FormItem", r.formItemProps, !1));
|
|
68
68
|
}, I = [];
|
|
69
|
-
const b = Object.keys(
|
|
69
|
+
const b = Object.keys(u.props || u.default.props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), x = {
|
|
70
70
|
name: "FormInputIdCard",
|
|
71
|
-
mixins: [
|
|
71
|
+
mixins: [f],
|
|
72
72
|
props: {
|
|
73
73
|
value: {
|
|
74
74
|
type: String
|
|
@@ -80,7 +80,7 @@ const b = Object.keys(_.props).filter((r) => !["value", "placeholder", "disabled
|
|
|
80
80
|
},
|
|
81
81
|
computed: {
|
|
82
82
|
inputProps() {
|
|
83
|
-
return
|
|
83
|
+
return _(s(s({}, v(this.$attrs)), this.$props), b);
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
methods: {
|
|
@@ -92,7 +92,7 @@ const b = Object.keys(_.props).filter((r) => !["value", "placeholder", "disabled
|
|
|
92
92
|
}];
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, p = {};
|
|
96
96
|
var g = /* @__PURE__ */ y(
|
|
97
97
|
x,
|
|
98
98
|
h,
|
|
@@ -104,8 +104,8 @@ var g = /* @__PURE__ */ y(
|
|
|
104
104
|
null
|
|
105
105
|
);
|
|
106
106
|
function $(r) {
|
|
107
|
-
for (let e in
|
|
108
|
-
this[e] =
|
|
107
|
+
for (let e in p)
|
|
108
|
+
this[e] = p[e];
|
|
109
109
|
}
|
|
110
110
|
const R = /* @__PURE__ */ function() {
|
|
111
111
|
return g.exports;
|
|
@@ -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,18 +1,18 @@
|
|
|
1
|
-
var
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
2
|
var o = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var l = (e, t, r) => t in e ?
|
|
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
5
|
for (var r in t || (t = {}))
|
|
6
|
-
|
|
6
|
+
m.call(t, r) && l(e, r, t[r]);
|
|
7
7
|
if (o)
|
|
8
8
|
for (var r of o(t))
|
|
9
|
-
|
|
9
|
+
d.call(t, r) && l(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as c } from "../chunks/form-input-mixin.
|
|
13
|
-
import { validatePhoneNum as
|
|
14
|
-
import { d as
|
|
15
|
-
import
|
|
12
|
+
import { f as c } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { validatePhoneNum as f } from "@web-utils/core";
|
|
14
|
+
import { d as _, n as h } from "../chunks/index.57f871af.mjs";
|
|
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
18
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
@@ -43,10 +43,10 @@ var y = function() {
|
|
|
43
43
|
proxy: !0
|
|
44
44
|
}, {
|
|
45
45
|
key: "error",
|
|
46
|
-
fn: function(
|
|
47
|
-
var
|
|
46
|
+
fn: function(a) {
|
|
47
|
+
var i = a.error;
|
|
48
48
|
return [e._t("error", null, {
|
|
49
|
-
error:
|
|
49
|
+
error: i
|
|
50
50
|
})];
|
|
51
51
|
}
|
|
52
52
|
}, {
|
|
@@ -58,7 +58,7 @@ var y = function() {
|
|
|
58
58
|
}], null, !0)
|
|
59
59
|
}, "FormItem", e.formItemProps, !1));
|
|
60
60
|
}, b = [];
|
|
61
|
-
const I = Object.keys(
|
|
61
|
+
const I = Object.keys(s.props || s.default.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), x = {
|
|
62
62
|
name: "FormInputPhoneNumber",
|
|
63
63
|
mixins: [c],
|
|
64
64
|
props: {
|
|
@@ -72,13 +72,13 @@ const I = Object.keys(h.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
72
72
|
},
|
|
73
73
|
computed: {
|
|
74
74
|
inputProps() {
|
|
75
|
-
return
|
|
75
|
+
return _(n(n({}, h(this.$attrs)), this.$props), I);
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
methods: {
|
|
79
79
|
getRules() {
|
|
80
80
|
return [{
|
|
81
|
-
validator:
|
|
81
|
+
validator: f,
|
|
82
82
|
message: "请输入正确的手机号码!"
|
|
83
83
|
}];
|
|
84
84
|
},
|
|
@@ -86,7 +86,7 @@ const I = Object.keys(h.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
86
86
|
this.$emit("input", e);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
},
|
|
89
|
+
}, u = {};
|
|
90
90
|
var P = /* @__PURE__ */ v(
|
|
91
91
|
x,
|
|
92
92
|
y,
|
|
@@ -98,8 +98,8 @@ var P = /* @__PURE__ */ v(
|
|
|
98
98
|
null
|
|
99
99
|
);
|
|
100
100
|
function g(e) {
|
|
101
|
-
for (let t in
|
|
102
|
-
this[t] =
|
|
101
|
+
for (let t in u)
|
|
102
|
+
this[t] = u[t];
|
|
103
103
|
}
|
|
104
104
|
const R = /* @__PURE__ */ function() {
|
|
105
105
|
return P.exports;
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var l = (r, e, t) => e in r ? i(r, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
c.call(e, t) && l(r, t, e[t]);
|
|
10
10
|
return r;
|
|
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 { d, n as f } from "../chunks/index.57f871af.mjs";
|
|
14
14
|
import _ from "@web-utils/component/x-input-tag";
|
|
15
15
|
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
2
|
var o = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var i = (e, t, r) => t in e ?
|
|
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
|
-
|
|
6
|
+
p.call(t, r) && i(e, r, t[r]);
|
|
7
7
|
if (o)
|
|
8
8
|
for (var r of o(t))
|
|
9
|
-
|
|
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() {
|
|
@@ -54,9 +54,9 @@ var y = function() {
|
|
|
54
54
|
}, {
|
|
55
55
|
key: "error",
|
|
56
56
|
fn: function(n) {
|
|
57
|
-
var
|
|
57
|
+
var u = n.error;
|
|
58
58
|
return [e._t("error", null, {
|
|
59
|
-
error:
|
|
59
|
+
error: u
|
|
60
60
|
})];
|
|
61
61
|
}
|
|
62
62
|
}, {
|
|
@@ -68,9 +68,9 @@ 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((e) => !["value", "placeholder", "disabled"].includes(e)), x = {
|
|
72
72
|
name: "FormInputTime",
|
|
73
|
-
mixins: [
|
|
73
|
+
mixins: [f],
|
|
74
74
|
props: {
|
|
75
75
|
range: Boolean,
|
|
76
76
|
format: {
|
|
@@ -112,7 +112,7 @@ const b = Object.keys(f.props).filter((e) => !["value", "placeholder", "disabled
|
|
|
112
112
|
return d(a(a({}, _(this.$attrs)), this.$props), b);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
},
|
|
115
|
+
}, s = {};
|
|
116
116
|
var T = /* @__PURE__ */ v(
|
|
117
117
|
x,
|
|
118
118
|
y,
|
|
@@ -124,8 +124,8 @@ var T = /* @__PURE__ */ v(
|
|
|
124
124
|
null
|
|
125
125
|
);
|
|
126
126
|
function h(e) {
|
|
127
|
-
for (let t in
|
|
128
|
-
this[t] =
|
|
127
|
+
for (let t in s)
|
|
128
|
+
this[t] = s[t];
|
|
129
129
|
}
|
|
130
130
|
const R = /* @__PURE__ */ function() {
|
|
131
131
|
return T.exports;
|
package/form-item/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ var h = (e, r, t) => new Promise((i, f) => {
|
|
|
25
25
|
}, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, o);
|
|
26
26
|
a((t = t.apply(e, r)).next());
|
|
27
27
|
});
|
|
28
|
-
import { f as V } from "../chunks/form-item-mixin.
|
|
28
|
+
import { f as V } from "../chunks/form-item-mixin.ad148e7b.mjs";
|
|
29
29
|
import { hasOwn as w } from "@web-utils/core";
|
|
30
30
|
import { n as z } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
31
31
|
const B = {
|