@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-holder/index.mjs
CHANGED
|
@@ -1,37 +1,23 @@
|
|
|
1
|
-
var o = (
|
|
2
|
-
var
|
|
1
|
+
var o = (t, e, l) => new Promise((d, s) => {
|
|
2
|
+
var n = (r) => {
|
|
3
3
|
try {
|
|
4
|
-
l
|
|
4
|
+
i(l.next(r));
|
|
5
5
|
} catch (a) {
|
|
6
6
|
s(a);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, f = (r) => {
|
|
9
9
|
try {
|
|
10
|
-
l
|
|
10
|
+
i(l.throw(r));
|
|
11
11
|
} catch (a) {
|
|
12
12
|
s(a);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, i = (r) => r.done ? d(r.value) : Promise.resolve(r.value).then(n, f);
|
|
15
|
+
i((l = l.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { warning as
|
|
18
|
-
import { e as
|
|
19
|
-
import { n as
|
|
20
|
-
|
|
21
|
-
var e = this, r = e.$createElement, i = e._self._c || r;
|
|
22
|
-
return i("ElForm", e._g(e._b({
|
|
23
|
-
ref: "form",
|
|
24
|
-
staticClass: "clear-fix",
|
|
25
|
-
attrs: {
|
|
26
|
-
model: e.model,
|
|
27
|
-
size: e.size,
|
|
28
|
-
disabled: e.disabled,
|
|
29
|
-
"label-width": e.labelWidth,
|
|
30
|
-
"label-position": e.labelPosition
|
|
31
|
-
}
|
|
32
|
-
}, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
|
|
33
|
-
}, h = [];
|
|
34
|
-
const v = {
|
|
17
|
+
import { warning as m } from "@web-utils/core";
|
|
18
|
+
import { e as u } from "../chunks/index.57f871af.mjs";
|
|
19
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
20
|
+
const p = {
|
|
35
21
|
name: "FormHolder",
|
|
36
22
|
provide() {
|
|
37
23
|
return {
|
|
@@ -90,15 +76,15 @@ const v = {
|
|
|
90
76
|
}
|
|
91
77
|
},
|
|
92
78
|
created() {
|
|
93
|
-
this.required ||
|
|
94
|
-
|
|
79
|
+
this.required || m.call(
|
|
80
|
+
u(this, (t) => ["FormView", "FormHolder"].includes(t.$options.name)),
|
|
95
81
|
"一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊"
|
|
96
82
|
);
|
|
97
83
|
},
|
|
98
84
|
methods: {
|
|
99
|
-
clearValidate(
|
|
100
|
-
var
|
|
101
|
-
(
|
|
85
|
+
clearValidate(t) {
|
|
86
|
+
var e;
|
|
87
|
+
(e = this.$refs.form) == null || e.clearValidate(t);
|
|
102
88
|
},
|
|
103
89
|
validate() {
|
|
104
90
|
return o(this, null, function* () {
|
|
@@ -109,24 +95,21 @@ const v = {
|
|
|
109
95
|
return this.$refs.form.resetFields();
|
|
110
96
|
}
|
|
111
97
|
}
|
|
112
|
-
}
|
|
113
|
-
var
|
|
114
|
-
|
|
98
|
+
};
|
|
99
|
+
var _ = function() {
|
|
100
|
+
var e = this, l = e._self._c;
|
|
101
|
+
return l("ElForm", e._g(e._b({ ref: "form", staticClass: "clear-fix", attrs: { model: e.model, size: e.size, disabled: e.disabled, "label-width": e.labelWidth, "label-position": e.labelPosition } }, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
|
|
102
|
+
}, h = [], b = /* @__PURE__ */ c(
|
|
103
|
+
p,
|
|
115
104
|
_,
|
|
116
105
|
h,
|
|
117
106
|
!1,
|
|
118
|
-
|
|
107
|
+
null,
|
|
119
108
|
null,
|
|
120
109
|
null,
|
|
121
110
|
null
|
|
122
111
|
);
|
|
123
|
-
|
|
124
|
-
for (let r in n)
|
|
125
|
-
this[r] = n[r];
|
|
126
|
-
}
|
|
127
|
-
const x = /* @__PURE__ */ function() {
|
|
128
|
-
return b.exports;
|
|
129
|
-
}();
|
|
112
|
+
const q = b.exports;
|
|
130
113
|
export {
|
|
131
|
-
|
|
114
|
+
q as default
|
|
132
115
|
};
|
package/form-input/index.mjs
CHANGED
|
@@ -1,82 +1,23 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
2
|
var s = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var l = (e, t
|
|
5
|
-
for (var
|
|
6
|
-
|
|
3
|
+
var p = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, o = (r, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
p.call(e, t) && l(r, t, e[t]);
|
|
7
7
|
if (s)
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
8
|
+
for (var t of s(e))
|
|
9
|
+
i.call(e, t) && l(r, t, e[t]);
|
|
10
|
+
return r;
|
|
11
11
|
};
|
|
12
|
-
import { f as
|
|
12
|
+
import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import u from "element-ui/lib/input";
|
|
14
|
-
import { d
|
|
15
|
-
import { n as
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
attrs: {
|
|
20
|
-
rules: e.computeRules,
|
|
21
|
-
disabled: e.inputDisabled
|
|
22
|
-
},
|
|
23
|
-
scopedSlots: e._u([{
|
|
24
|
-
key: "default",
|
|
25
|
-
fn: function() {
|
|
26
|
-
return [e._t("default", function() {
|
|
27
|
-
return [r("ElInput", e._g(e._b({
|
|
28
|
-
class: {
|
|
29
|
-
"is-readonly": e.readonly
|
|
30
|
-
},
|
|
31
|
-
attrs: {
|
|
32
|
-
value: e.value,
|
|
33
|
-
readonly: e.readonly,
|
|
34
|
-
maxlength: e.maxLength,
|
|
35
|
-
disabled: e.inputDisabled,
|
|
36
|
-
placeholder: e.computePlaceholder
|
|
37
|
-
},
|
|
38
|
-
on: {
|
|
39
|
-
input: e.emitInput
|
|
40
|
-
},
|
|
41
|
-
scopedSlots: e._u([{
|
|
42
|
-
key: "append",
|
|
43
|
-
fn: function() {
|
|
44
|
-
return [e._t("append")];
|
|
45
|
-
},
|
|
46
|
-
proxy: !0
|
|
47
|
-
}], null, !0)
|
|
48
|
-
}, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", {
|
|
49
|
-
staticClass: "el-form-item__warn"
|
|
50
|
-
}, [e._t("warn")], 2) : e._e()];
|
|
51
|
-
})];
|
|
52
|
-
},
|
|
53
|
-
proxy: !0
|
|
54
|
-
}, {
|
|
55
|
-
key: "error",
|
|
56
|
-
fn: function(i) {
|
|
57
|
-
var n = i.error;
|
|
58
|
-
return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", {
|
|
59
|
-
staticClass: "el-form-item__error"
|
|
60
|
-
}, [e._t("error", function() {
|
|
61
|
-
return [e._v(" " + e._s(n) + " ")];
|
|
62
|
-
}, {
|
|
63
|
-
error: n
|
|
64
|
-
})], 2) : e._e()];
|
|
65
|
-
}
|
|
66
|
-
}, {
|
|
67
|
-
key: "label",
|
|
68
|
-
fn: function() {
|
|
69
|
-
return [e._t("label")];
|
|
70
|
-
},
|
|
71
|
-
proxy: !0
|
|
72
|
-
}], null, !0)
|
|
73
|
-
}, "FormItem", e.formItemProps, !1));
|
|
74
|
-
}, h = [];
|
|
75
|
-
const b = Object.keys(u.props || u.default.props).filter(
|
|
76
|
-
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
77
|
-
), x = {
|
|
14
|
+
import { d, n as f } from "../chunks/index.57f871af.mjs";
|
|
15
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
16
|
+
const _ = Object.keys(u.props || u.default.props).filter(
|
|
17
|
+
(r) => !["value", "placeholder", "disabled"].includes(r)
|
|
18
|
+
), y = {
|
|
78
19
|
name: "FormInput",
|
|
79
|
-
mixins: [
|
|
20
|
+
mixins: [m],
|
|
80
21
|
props: {
|
|
81
22
|
value: {
|
|
82
23
|
type: [String, Number]
|
|
@@ -88,32 +29,41 @@ const b = Object.keys(u.props || u.default.props).filter(
|
|
|
88
29
|
},
|
|
89
30
|
computed: {
|
|
90
31
|
inputProps() {
|
|
91
|
-
return
|
|
32
|
+
return d(o(o({}, f(this.$attrs)), this.$props), _);
|
|
92
33
|
}
|
|
93
34
|
},
|
|
94
35
|
methods: {
|
|
95
|
-
emitInput(
|
|
96
|
-
this.$emit("input",
|
|
36
|
+
emitInput(r) {
|
|
37
|
+
this.$emit("input", r);
|
|
97
38
|
}
|
|
98
39
|
}
|
|
99
|
-
}
|
|
100
|
-
var
|
|
101
|
-
|
|
40
|
+
};
|
|
41
|
+
var v = function() {
|
|
42
|
+
var e = this, t = e._self._c;
|
|
43
|
+
return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
44
|
+
return [e._t("default", function() {
|
|
45
|
+
return [t("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput }, scopedSlots: e._u([{ key: "append", fn: function() {
|
|
46
|
+
return [e._t("append")];
|
|
47
|
+
}, proxy: !0 }], null, !0) }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? t("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
|
|
48
|
+
})];
|
|
49
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: n }) {
|
|
50
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
51
|
+
return [e._v(" " + e._s(n) + " ")];
|
|
52
|
+
}, { error: n })], 2) : e._e()];
|
|
53
|
+
} }, { key: "label", fn: function() {
|
|
54
|
+
return [e._t("label")];
|
|
55
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
56
|
+
}, b = [], h = /* @__PURE__ */ c(
|
|
102
57
|
y,
|
|
103
|
-
|
|
58
|
+
v,
|
|
59
|
+
b,
|
|
104
60
|
!1,
|
|
105
|
-
|
|
61
|
+
null,
|
|
106
62
|
null,
|
|
107
63
|
null,
|
|
108
64
|
null
|
|
109
65
|
);
|
|
110
|
-
|
|
111
|
-
for (let t in a)
|
|
112
|
-
this[t] = a[t];
|
|
113
|
-
}
|
|
114
|
-
const w = /* @__PURE__ */ function() {
|
|
115
|
-
return I.exports;
|
|
116
|
-
}();
|
|
66
|
+
const $ = h.exports;
|
|
117
67
|
export {
|
|
118
|
-
|
|
68
|
+
$ as default
|
|
119
69
|
};
|
|
@@ -1,70 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var s = (e, r
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var o = Object.getOwnPropertySymbols;
|
|
3
|
+
var i = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var s = (t, e, r) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, l = (t, e) => {
|
|
5
|
+
for (var r in e || (e = {}))
|
|
6
|
+
i.call(e, r) && s(t, r, e[r]);
|
|
7
|
+
if (o)
|
|
8
|
+
for (var r of o(e))
|
|
9
|
+
p.call(e, r) && s(t, r, e[r]);
|
|
10
|
+
return t;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
12
|
+
import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import a from "element-ui/lib/input";
|
|
14
|
-
import { d
|
|
15
|
-
import { n as
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return t("FormItem", e._b({
|
|
20
|
-
attrs: {
|
|
21
|
-
rules: e.computeRules,
|
|
22
|
-
disabled: e.inputDisabled
|
|
23
|
-
},
|
|
24
|
-
scopedSlots: e._u([{
|
|
25
|
-
key: "default",
|
|
26
|
-
fn: function() {
|
|
27
|
-
return [t("ElInput", e._g(e._b({
|
|
28
|
-
class: {
|
|
29
|
-
"is-readonly": e.readonly
|
|
30
|
-
},
|
|
31
|
-
attrs: {
|
|
32
|
-
value: e.value,
|
|
33
|
-
readonly: e.readonly,
|
|
34
|
-
maxlength: e.maxLength,
|
|
35
|
-
disabled: e.inputDisabled,
|
|
36
|
-
placeholder: e.computePlaceholder
|
|
37
|
-
},
|
|
38
|
-
on: {
|
|
39
|
-
input: function(n) {
|
|
40
|
-
return e.$emit("input", n);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, "ElInput", e.inputProps, !1), e.listeners))];
|
|
44
|
-
},
|
|
45
|
-
proxy: !0
|
|
46
|
-
}, {
|
|
47
|
-
key: "error",
|
|
48
|
-
fn: function(n) {
|
|
49
|
-
var i = n.error;
|
|
50
|
-
return [e._t("error", null, {
|
|
51
|
-
error: i
|
|
52
|
-
})];
|
|
53
|
-
}
|
|
54
|
-
}, {
|
|
55
|
-
key: "label",
|
|
56
|
-
fn: function() {
|
|
57
|
-
return [e._t("label")];
|
|
58
|
-
},
|
|
59
|
-
proxy: !0
|
|
60
|
-
}], null, !0)
|
|
61
|
-
}, "FormItem", e.formItemProps, !1));
|
|
62
|
-
}, x = [];
|
|
63
|
-
const b = Object.keys(a.props || a.default.props).filter(
|
|
64
|
-
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
65
|
-
), I = {
|
|
14
|
+
import { d, n as f } from "../chunks/index.57f871af.mjs";
|
|
15
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
16
|
+
const _ = (t, e, r) => e && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e) ? r(new Error("invalid")) : r(), y = Object.keys(a.props || a.default.props).filter(
|
|
17
|
+
(t) => !["value", "placeholder", "disabled"].includes(t)
|
|
18
|
+
), v = {
|
|
66
19
|
name: "FormInputEmail",
|
|
67
|
-
mixins: [
|
|
20
|
+
mixins: [m],
|
|
68
21
|
props: {
|
|
69
22
|
value: {
|
|
70
23
|
type: String
|
|
@@ -76,37 +29,40 @@ const b = Object.keys(a.props || a.default.props).filter(
|
|
|
76
29
|
},
|
|
77
30
|
computed: {
|
|
78
31
|
inputProps() {
|
|
79
|
-
return
|
|
32
|
+
return d(l(l({}, f(this.$attrs)), this.$props), y);
|
|
80
33
|
}
|
|
81
34
|
},
|
|
82
35
|
methods: {
|
|
83
36
|
getRules() {
|
|
84
37
|
return [
|
|
85
38
|
{
|
|
86
|
-
validator:
|
|
39
|
+
validator: _,
|
|
87
40
|
message: "请输入正确的邮箱!"
|
|
88
41
|
}
|
|
89
42
|
];
|
|
90
43
|
}
|
|
91
44
|
}
|
|
92
|
-
}
|
|
93
|
-
var
|
|
94
|
-
|
|
45
|
+
};
|
|
46
|
+
var h = function() {
|
|
47
|
+
var e = this, r = e._self._c;
|
|
48
|
+
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
49
|
+
return [r("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (n) => e.$emit("input", n) } }, "ElInput", e.inputProps, !1), e.listeners))];
|
|
50
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: n }) {
|
|
51
|
+
return [e._t("error", null, { error: n })];
|
|
52
|
+
} }, { key: "label", fn: function() {
|
|
53
|
+
return [e._t("label")];
|
|
54
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
55
|
+
}, b = [], x = /* @__PURE__ */ c(
|
|
56
|
+
v,
|
|
95
57
|
h,
|
|
96
|
-
|
|
58
|
+
b,
|
|
97
59
|
!1,
|
|
98
|
-
|
|
60
|
+
null,
|
|
99
61
|
null,
|
|
100
62
|
null,
|
|
101
63
|
null
|
|
102
64
|
);
|
|
103
|
-
|
|
104
|
-
for (let r in u)
|
|
105
|
-
this[r] = u[r];
|
|
106
|
-
}
|
|
107
|
-
const k = /* @__PURE__ */ function() {
|
|
108
|
-
return g.exports;
|
|
109
|
-
}();
|
|
65
|
+
const F = x.exports;
|
|
110
66
|
export {
|
|
111
|
-
|
|
67
|
+
F as default
|
|
112
68
|
};
|
|
@@ -1,76 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var s = Object.getOwnPropertySymbols;
|
|
3
|
+
var p = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var l = (t, e, r) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, o = (t, e) => {
|
|
5
|
+
for (var r in e || (e = {}))
|
|
6
|
+
p.call(e, r) && l(t, r, e[r]);
|
|
7
|
+
if (s)
|
|
8
|
+
for (var r of s(e))
|
|
9
|
+
d.call(e, r) && l(t, r, e[r]);
|
|
10
|
+
return t;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
-
import { validateIdCard as
|
|
14
|
-
import
|
|
15
|
-
import { d as
|
|
16
|
-
import { n as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
attrs: {
|
|
21
|
-
rules: r.computeRules,
|
|
22
|
-
disabled: r.inputDisabled
|
|
23
|
-
},
|
|
24
|
-
scopedSlots: r._u([{
|
|
25
|
-
key: "default",
|
|
26
|
-
fn: function() {
|
|
27
|
-
return [t("ElInput", r._g(r._b({
|
|
28
|
-
class: {
|
|
29
|
-
"is-readonly": r.readonly
|
|
30
|
-
},
|
|
31
|
-
attrs: {
|
|
32
|
-
value: r.value,
|
|
33
|
-
readonly: r.readonly,
|
|
34
|
-
maxlength: r.maxLength,
|
|
35
|
-
disabled: r.inputDisabled,
|
|
36
|
-
placeholder: r.computePlaceholder
|
|
37
|
-
},
|
|
38
|
-
on: {
|
|
39
|
-
input: function(o) {
|
|
40
|
-
return r.$emit("input", o);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, "ElInput", r.inputProps, !1), r.listeners)), r.$slots.warn ? t("div", {
|
|
44
|
-
staticClass: "el-form-item__error"
|
|
45
|
-
}, [r._t("warn")], 2) : r._e()];
|
|
46
|
-
},
|
|
47
|
-
proxy: !0
|
|
48
|
-
}, {
|
|
49
|
-
key: "error",
|
|
50
|
-
fn: function(o) {
|
|
51
|
-
var n = o.error;
|
|
52
|
-
return [r.$scopedSlots.error && r.$scopedSlots.error(n) ? t("div", {
|
|
53
|
-
staticClass: "el-form-item__error"
|
|
54
|
-
}, [r._t("error", function() {
|
|
55
|
-
return [r._v(" " + r._s(n) + " ")];
|
|
56
|
-
}, {
|
|
57
|
-
error: n
|
|
58
|
-
})], 2) : r._e()];
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
key: "label",
|
|
62
|
-
fn: function() {
|
|
63
|
-
return [r._t("label")];
|
|
64
|
-
},
|
|
65
|
-
proxy: !0
|
|
66
|
-
}], null, !0)
|
|
67
|
-
}, "FormItem", r.formItemProps, !1));
|
|
68
|
-
}, I = [];
|
|
69
|
-
const b = Object.keys(u.props || u.default.props).filter(
|
|
70
|
-
(r) => !["value", "placeholder", "disabled"].includes(r)
|
|
71
|
-
), x = {
|
|
12
|
+
import { f as m } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { validateIdCard as a } from "@web-utils/core";
|
|
14
|
+
import i from "element-ui/lib/input";
|
|
15
|
+
import { d as f, n as c } from "../chunks/index.57f871af.mjs";
|
|
16
|
+
import { n as _ } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
17
|
+
const v = Object.keys(i.props || i.default.props).filter(
|
|
18
|
+
(t) => !["value", "placeholder", "disabled"].includes(t)
|
|
19
|
+
), y = {
|
|
72
20
|
name: "FormInputIdCard",
|
|
73
|
-
mixins: [
|
|
21
|
+
mixins: [m],
|
|
74
22
|
props: {
|
|
75
23
|
value: {
|
|
76
24
|
type: String
|
|
@@ -82,38 +30,43 @@ const b = Object.keys(u.props || u.default.props).filter(
|
|
|
82
30
|
},
|
|
83
31
|
computed: {
|
|
84
32
|
inputProps() {
|
|
85
|
-
return
|
|
33
|
+
return f(o(o({}, c(this.$attrs)), this.$props), v);
|
|
86
34
|
}
|
|
87
35
|
},
|
|
88
36
|
methods: {
|
|
89
|
-
validateIdCard:
|
|
37
|
+
validateIdCard: a,
|
|
90
38
|
getRules() {
|
|
91
39
|
return [
|
|
92
40
|
{
|
|
93
|
-
validator:
|
|
41
|
+
validator: a,
|
|
94
42
|
message: "请输入正确的身份证号码!"
|
|
95
43
|
}
|
|
96
44
|
];
|
|
97
45
|
}
|
|
98
46
|
}
|
|
99
|
-
}
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
|
|
47
|
+
};
|
|
48
|
+
var I = function() {
|
|
49
|
+
var e = this, r = e._self._c;
|
|
50
|
+
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
51
|
+
return [r("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (n) => e.$emit("input", n) } }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", { staticClass: "el-form-item__error" }, [e._t("warn")], 2) : e._e()];
|
|
52
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: n }) {
|
|
53
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(n) ? r("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
54
|
+
return [e._v(" " + e._s(n) + " ")];
|
|
55
|
+
}, { error: n })], 2) : e._e()];
|
|
56
|
+
} }, { key: "label", fn: function() {
|
|
57
|
+
return [e._t("label")];
|
|
58
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
59
|
+
}, b = [], h = /* @__PURE__ */ _(
|
|
60
|
+
y,
|
|
103
61
|
I,
|
|
62
|
+
b,
|
|
104
63
|
!1,
|
|
105
|
-
|
|
64
|
+
null,
|
|
106
65
|
null,
|
|
107
66
|
null,
|
|
108
67
|
null
|
|
109
68
|
);
|
|
110
|
-
|
|
111
|
-
for (let e in p)
|
|
112
|
-
this[e] = p[e];
|
|
113
|
-
}
|
|
114
|
-
const R = /* @__PURE__ */ function() {
|
|
115
|
-
return g.exports;
|
|
116
|
-
}();
|
|
69
|
+
const S = h.exports;
|
|
117
70
|
export {
|
|
118
|
-
|
|
71
|
+
S as default
|
|
119
72
|
};
|