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