@web-utils/component 2.70.0 → 3.0.1
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 +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
|
@@ -1,22 +1,67 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
2
|
var i = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var y = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var s = (e, t, r) => t in e ? d(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
|
+
y.call(t, r) && s(e, r, t[r]);
|
|
7
7
|
if (i)
|
|
8
8
|
for (var r of i(t))
|
|
9
|
-
|
|
9
|
+
b.call(t, r) && s(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/
|
|
13
|
-
import { f as
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
12
|
+
import { f as c, _ as v } from "../chunks/FormItem.2920ac0c.mjs";
|
|
13
|
+
import { f as g } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
+
import { h, n as m } from "../chunks/index.d91bd77a.mjs";
|
|
15
|
+
import n from "element-ui/lib/checkbox-group";
|
|
16
|
+
import u from "element-ui/lib/input";
|
|
17
|
+
import { s as x, r as k } from "../chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs";
|
|
18
|
+
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
19
|
+
import P from "element-ui/lib/checkbox";
|
|
20
|
+
const $ = Object.keys(u.props || u.default.props).filter(
|
|
21
|
+
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
22
|
+
), K = {
|
|
23
|
+
name: "FormInput",
|
|
24
|
+
mixins: [c],
|
|
25
|
+
props: {
|
|
26
|
+
value: {
|
|
27
|
+
type: [String, Number]
|
|
28
|
+
},
|
|
29
|
+
maxLength: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "200"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
computed: {
|
|
35
|
+
inputProps() {
|
|
36
|
+
return h(l(l({}, m(this.$attrs)), this.$props), $);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
emitInput(e) {
|
|
41
|
+
this.$emit("input", e);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, p = {};
|
|
45
|
+
var w = /* @__PURE__ */ f(
|
|
46
|
+
K,
|
|
47
|
+
k,
|
|
48
|
+
x,
|
|
49
|
+
!1,
|
|
50
|
+
S,
|
|
51
|
+
null,
|
|
52
|
+
null,
|
|
53
|
+
null
|
|
54
|
+
);
|
|
55
|
+
function S(e) {
|
|
56
|
+
for (let t in p)
|
|
57
|
+
this[t] = p[t];
|
|
58
|
+
}
|
|
59
|
+
const B = /* @__PURE__ */ function() {
|
|
60
|
+
return w.exports;
|
|
61
|
+
}();
|
|
62
|
+
var C = function() {
|
|
18
63
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
19
|
-
return r(
|
|
64
|
+
return r(v, e._b({
|
|
20
65
|
class: ["form-checkbox-group", {
|
|
21
66
|
"form-checkbox-group-row": e.fillRow
|
|
22
67
|
}, e.ellipsis ? "form-checkbox-group-row-ellipsis" : e.fillRow ? "form-checkbox-group-row-break-word" : ""],
|
|
@@ -27,7 +72,7 @@ var _ = function() {
|
|
|
27
72
|
scopedSlots: e._u([{
|
|
28
73
|
key: "default",
|
|
29
74
|
fn: function() {
|
|
30
|
-
return [r(
|
|
75
|
+
return [r(n, e._g(e._b({
|
|
31
76
|
attrs: {
|
|
32
77
|
disabled: e.inputDisabled,
|
|
33
78
|
value: e.computeVal,
|
|
@@ -37,13 +82,13 @@ var _ = function() {
|
|
|
37
82
|
input: e.emitInput
|
|
38
83
|
}
|
|
39
84
|
}, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(o) {
|
|
40
|
-
return r(
|
|
85
|
+
return r(P, {
|
|
41
86
|
key: o[e.valueKey],
|
|
42
87
|
attrs: {
|
|
43
88
|
label: o[e.valueKey]
|
|
44
89
|
}
|
|
45
90
|
}, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
|
|
46
|
-
}), 1), e.computeVal.includes(e.otherVal) ? r(
|
|
91
|
+
}), 1), e.computeVal.includes(e.otherVal) ? r(B, {
|
|
47
92
|
staticClass: "form-checkbox-group-other",
|
|
48
93
|
style: e.otherLabel ? {
|
|
49
94
|
width: e.otherWidth
|
|
@@ -72,9 +117,9 @@ var _ = function() {
|
|
|
72
117
|
}, {
|
|
73
118
|
key: "error",
|
|
74
119
|
fn: function(o) {
|
|
75
|
-
var
|
|
120
|
+
var _ = o.error;
|
|
76
121
|
return [e._t("error", null, {
|
|
77
|
-
error:
|
|
122
|
+
error: _
|
|
78
123
|
})];
|
|
79
124
|
}
|
|
80
125
|
}, {
|
|
@@ -91,12 +136,12 @@ var _ = function() {
|
|
|
91
136
|
proxy: !0
|
|
92
137
|
}], null, !0)
|
|
93
138
|
}, "FormItem", e.formItemProps, !1));
|
|
94
|
-
},
|
|
95
|
-
const
|
|
139
|
+
}, F = [];
|
|
140
|
+
const I = Object.keys(n.props || n.default.props).filter(
|
|
96
141
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
97
|
-
),
|
|
142
|
+
), R = {
|
|
98
143
|
name: "FormCheckboxGroup",
|
|
99
|
-
mixins: [
|
|
144
|
+
mixins: [c, g],
|
|
100
145
|
props: {
|
|
101
146
|
options: {
|
|
102
147
|
type: Array,
|
|
@@ -150,7 +195,7 @@ const x = Object.keys(s.props || s.default.props).filter(
|
|
|
150
195
|
return this.classic ? "value" : this.valueProp;
|
|
151
196
|
},
|
|
152
197
|
inputProps() {
|
|
153
|
-
return
|
|
198
|
+
return h(l(l({}, m(this.$attrs)), this.$props), I);
|
|
154
199
|
},
|
|
155
200
|
innerOptions() {
|
|
156
201
|
return this.gender ? [
|
|
@@ -183,23 +228,23 @@ const x = Object.keys(s.props || s.default.props).filter(
|
|
|
183
228
|
}
|
|
184
229
|
}
|
|
185
230
|
}, a = {};
|
|
186
|
-
var
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
231
|
+
var j = /* @__PURE__ */ f(
|
|
232
|
+
R,
|
|
233
|
+
C,
|
|
234
|
+
F,
|
|
190
235
|
!1,
|
|
191
|
-
|
|
236
|
+
G,
|
|
192
237
|
null,
|
|
193
238
|
null,
|
|
194
239
|
null
|
|
195
240
|
);
|
|
196
|
-
function
|
|
241
|
+
function G(e) {
|
|
197
242
|
for (let t in a)
|
|
198
243
|
this[t] = a[t];
|
|
199
244
|
}
|
|
200
|
-
const
|
|
201
|
-
return
|
|
245
|
+
const q = /* @__PURE__ */ function() {
|
|
246
|
+
return j.exports;
|
|
202
247
|
}();
|
|
203
248
|
export {
|
|
204
|
-
|
|
249
|
+
q as default
|
|
205
250
|
};
|
|
@@ -10,14 +10,15 @@ 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 {
|
|
13
|
+
import { _ as y, f as _ } from "../chunks/FormItem.2920ac0c.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 {
|
|
17
|
-
import
|
|
18
|
-
|
|
16
|
+
import { h as v, n as k } from "../chunks/index.d91bd77a.mjs";
|
|
17
|
+
import x from "element-ui/lib/date-picker";
|
|
18
|
+
import { n as P } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
19
|
+
var S = function() {
|
|
19
20
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
20
|
-
return r(
|
|
21
|
+
return r(y, e._b({
|
|
21
22
|
attrs: {
|
|
22
23
|
rules: e.computeRules,
|
|
23
24
|
disabled: e.inputDisabled
|
|
@@ -25,7 +26,7 @@ var x = function() {
|
|
|
25
26
|
scopedSlots: e._u([{
|
|
26
27
|
key: "default",
|
|
27
28
|
fn: function() {
|
|
28
|
-
return [r(
|
|
29
|
+
return [r(x, e._g(e._b({
|
|
29
30
|
staticStyle: {
|
|
30
31
|
width: "100%"
|
|
31
32
|
},
|
|
@@ -65,8 +66,8 @@ var x = function() {
|
|
|
65
66
|
proxy: !0
|
|
66
67
|
}], null, !0)
|
|
67
68
|
}, "FormItem", e.formItemProps, !1));
|
|
68
|
-
},
|
|
69
|
-
const
|
|
69
|
+
}, D = [];
|
|
70
|
+
const b = [
|
|
70
71
|
"type",
|
|
71
72
|
"timeArrowControl",
|
|
72
73
|
"size",
|
|
@@ -92,9 +93,9 @@ const S = [
|
|
|
92
93
|
"pickerOptions",
|
|
93
94
|
"unlinkPanels",
|
|
94
95
|
"validateEvent"
|
|
95
|
-
].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)),
|
|
96
|
+
].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), T = {
|
|
96
97
|
name: "FormDatePicker",
|
|
97
|
-
mixins: [
|
|
98
|
+
mixins: [_, g],
|
|
98
99
|
props: {
|
|
99
100
|
format: {
|
|
100
101
|
type: String
|
|
@@ -174,7 +175,7 @@ const S = [
|
|
|
174
175
|
return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
|
|
175
176
|
},
|
|
176
177
|
inputProps() {
|
|
177
|
-
return
|
|
178
|
+
return v(
|
|
178
179
|
o(i(i({}, k(this.$attrs)), this.$props), {
|
|
179
180
|
valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
|
|
180
181
|
format: this.format || this.fat,
|
|
@@ -182,7 +183,7 @@ const S = [
|
|
|
182
183
|
startPlaceholder: this.startPlaceholder || "开始日期",
|
|
183
184
|
endPlaceholder: this.endPlaceholder || "结束日期"
|
|
184
185
|
}),
|
|
185
|
-
|
|
186
|
+
b
|
|
186
187
|
);
|
|
187
188
|
},
|
|
188
189
|
range() {
|
|
@@ -198,23 +199,23 @@ const S = [
|
|
|
198
199
|
}
|
|
199
200
|
}
|
|
200
201
|
}, m = {};
|
|
201
|
-
var
|
|
202
|
+
var R = /* @__PURE__ */ P(
|
|
203
|
+
T,
|
|
204
|
+
S,
|
|
202
205
|
D,
|
|
203
|
-
x,
|
|
204
|
-
P,
|
|
205
206
|
!1,
|
|
206
|
-
|
|
207
|
+
M,
|
|
207
208
|
null,
|
|
208
209
|
null,
|
|
209
210
|
null
|
|
210
211
|
);
|
|
211
|
-
function
|
|
212
|
+
function M(e) {
|
|
212
213
|
for (let t in m)
|
|
213
214
|
this[t] = m[t];
|
|
214
215
|
}
|
|
215
|
-
const
|
|
216
|
-
return
|
|
216
|
+
const z = /* @__PURE__ */ function() {
|
|
217
|
+
return R.exports;
|
|
217
218
|
}();
|
|
218
219
|
export {
|
|
219
|
-
|
|
220
|
+
z as default
|
|
220
221
|
};
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var s = (e, r, i) => new Promise((d, o) => {
|
|
2
2
|
var f = (t) => {
|
|
3
3
|
try {
|
|
4
4
|
l(i.next(t));
|
|
5
5
|
} catch (a) {
|
|
6
|
-
|
|
6
|
+
o(a);
|
|
7
7
|
}
|
|
8
8
|
}, m = (t) => {
|
|
9
9
|
try {
|
|
10
10
|
l(i.throw(t));
|
|
11
11
|
} catch (a) {
|
|
12
|
-
|
|
12
|
+
o(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
|
-
import {
|
|
18
|
+
import { i as c } from "../chunks/index.d91bd77a.mjs";
|
|
19
|
+
import _ from "element-ui/lib/form";
|
|
19
20
|
import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
20
|
-
var
|
|
21
|
+
var h = function() {
|
|
21
22
|
var e = this, r = e.$createElement, i = e._self._c || r;
|
|
22
|
-
return i(
|
|
23
|
+
return i(_, e._g(e._b({
|
|
23
24
|
ref: "form",
|
|
24
25
|
staticClass: "clear-fix",
|
|
25
26
|
attrs: {
|
|
@@ -30,8 +31,8 @@ var _ = function() {
|
|
|
30
31
|
"label-position": e.labelPosition
|
|
31
32
|
}
|
|
32
33
|
}, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
|
|
33
|
-
},
|
|
34
|
-
const
|
|
34
|
+
}, v = [];
|
|
35
|
+
const b = {
|
|
35
36
|
name: "FormHolder",
|
|
36
37
|
provide() {
|
|
37
38
|
return {
|
|
@@ -101,7 +102,7 @@ const v = {
|
|
|
101
102
|
(r = this.$refs.form) == null || r.clearValidate(e);
|
|
102
103
|
},
|
|
103
104
|
validate() {
|
|
104
|
-
return
|
|
105
|
+
return s(this, null, function* () {
|
|
105
106
|
return this.$refs.form.validate();
|
|
106
107
|
});
|
|
107
108
|
},
|
|
@@ -110,10 +111,10 @@ const v = {
|
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
}, n = {};
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
_,
|
|
114
|
+
var y = /* @__PURE__ */ p(
|
|
115
|
+
b,
|
|
116
116
|
h,
|
|
117
|
+
v,
|
|
117
118
|
!1,
|
|
118
119
|
F,
|
|
119
120
|
null,
|
|
@@ -124,9 +125,9 @@ function F(e) {
|
|
|
124
125
|
for (let r in n)
|
|
125
126
|
this[r] = n[r];
|
|
126
127
|
}
|
|
127
|
-
const
|
|
128
|
-
return
|
|
128
|
+
const z = /* @__PURE__ */ function() {
|
|
129
|
+
return y.exports;
|
|
129
130
|
}();
|
|
130
131
|
export {
|
|
131
|
-
|
|
132
|
+
z as default
|
|
132
133
|
};
|
package/form-input/index.mjs
CHANGED
|
@@ -1,82 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
m.call(t,
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var r = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var s = (e, t, n) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, o = (e, t) => {
|
|
5
|
+
for (var n in t || (t = {}))
|
|
6
|
+
m.call(t, n) && s(e, n, t[n]);
|
|
7
|
+
if (r)
|
|
8
|
+
for (var n of r(t))
|
|
9
|
+
l.call(t, n) && s(e, n, t[n]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return r("FormItem", e._b({
|
|
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(
|
|
12
|
+
import { f as a } from "../chunks/FormItem.2920ac0c.mjs";
|
|
13
|
+
import i from "element-ui/lib/input";
|
|
14
|
+
import { h as c, n as f } from "../chunks/index.d91bd77a.mjs";
|
|
15
|
+
import { s as _, r as d } from "../chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs";
|
|
16
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
|
+
const x = Object.keys(i.props || i.default.props).filter(
|
|
76
18
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
77
|
-
),
|
|
19
|
+
), v = {
|
|
78
20
|
name: "FormInput",
|
|
79
|
-
mixins: [
|
|
21
|
+
mixins: [a],
|
|
80
22
|
props: {
|
|
81
23
|
value: {
|
|
82
24
|
type: [String, Number]
|
|
@@ -88,7 +30,7 @@ const b = Object.keys(u.props || u.default.props).filter(
|
|
|
88
30
|
},
|
|
89
31
|
computed: {
|
|
90
32
|
inputProps() {
|
|
91
|
-
return
|
|
33
|
+
return c(o(o({}, f(this.$attrs)), this.$props), x);
|
|
92
34
|
}
|
|
93
35
|
},
|
|
94
36
|
methods: {
|
|
@@ -96,24 +38,24 @@ const b = Object.keys(u.props || u.default.props).filter(
|
|
|
96
38
|
this.$emit("input", e);
|
|
97
39
|
}
|
|
98
40
|
}
|
|
99
|
-
},
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
41
|
+
}, p = {};
|
|
42
|
+
var y = /* @__PURE__ */ h(
|
|
43
|
+
v,
|
|
44
|
+
d,
|
|
45
|
+
_,
|
|
104
46
|
!1,
|
|
105
|
-
|
|
47
|
+
g,
|
|
106
48
|
null,
|
|
107
49
|
null,
|
|
108
50
|
null
|
|
109
51
|
);
|
|
110
|
-
function
|
|
111
|
-
for (let t in
|
|
112
|
-
this[t] =
|
|
52
|
+
function g(e) {
|
|
53
|
+
for (let t in p)
|
|
54
|
+
this[t] = p[t];
|
|
113
55
|
}
|
|
114
|
-
const
|
|
115
|
-
return
|
|
56
|
+
const j = /* @__PURE__ */ function() {
|
|
57
|
+
return y.exports;
|
|
116
58
|
}();
|
|
117
59
|
export {
|
|
118
|
-
|
|
60
|
+
j as default
|
|
119
61
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var m = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
2
|
+
var s = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var a = (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
|
-
|
|
6
|
+
m.call(r, t) && a(e, t, r[t]);
|
|
7
|
+
if (s)
|
|
8
|
+
for (var t of s(r))
|
|
9
|
+
_.call(r, t) && a(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
const
|
|
17
|
-
var
|
|
12
|
+
import { _ as c, f as d } from "../chunks/FormItem.2920ac0c.mjs";
|
|
13
|
+
import l from "element-ui/lib/input";
|
|
14
|
+
import { h as f, n as v } from "../chunks/index.d91bd77a.mjs";
|
|
15
|
+
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
+
const h = (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
|
+
var g = function() {
|
|
18
18
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
19
|
-
return t(
|
|
19
|
+
return t(c, e._b({
|
|
20
20
|
attrs: {
|
|
21
21
|
rules: e.computeRules,
|
|
22
22
|
disabled: e.inputDisabled
|
|
@@ -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(l, 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(l.props || l.default.props).filter(
|
|
64
64
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
65
|
-
),
|
|
65
|
+
), E = {
|
|
66
66
|
name: "FormInputEmail",
|
|
67
|
-
mixins: [
|
|
67
|
+
mixins: [d],
|
|
68
68
|
props: {
|
|
69
69
|
value: {
|
|
70
70
|
type: String
|
|
@@ -76,37 +76,37 @@ const b = Object.keys(a.props || a.default.props).filter(
|
|
|
76
76
|
},
|
|
77
77
|
computed: {
|
|
78
78
|
inputProps() {
|
|
79
|
-
return
|
|
79
|
+
return f(o(o({}, v(this.$attrs)), this.$props), b);
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
methods: {
|
|
83
83
|
getRules() {
|
|
84
84
|
return [
|
|
85
85
|
{
|
|
86
|
-
validator:
|
|
86
|
+
validator: h,
|
|
87
87
|
message: "请输入正确的邮箱!"
|
|
88
88
|
}
|
|
89
89
|
];
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}, u = {};
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
var I = /* @__PURE__ */ y(
|
|
94
|
+
E,
|
|
95
|
+
g,
|
|
96
96
|
x,
|
|
97
97
|
!1,
|
|
98
|
-
|
|
98
|
+
P,
|
|
99
99
|
null,
|
|
100
100
|
null,
|
|
101
101
|
null
|
|
102
102
|
);
|
|
103
|
-
function
|
|
103
|
+
function P(e) {
|
|
104
104
|
for (let r in u)
|
|
105
105
|
this[r] = u[r];
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
return
|
|
107
|
+
const A = /* @__PURE__ */ function() {
|
|
108
|
+
return I.exports;
|
|
109
109
|
}();
|
|
110
110
|
export {
|
|
111
|
-
|
|
111
|
+
A as default
|
|
112
112
|
};
|