@web-utils/component 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/address-input/index.mjs +22 -24
- package/awesome-button/index.mjs +29 -30
- package/card/index.mjs +40 -42
- package/carousel/index.mjs +25 -27
- package/chat/index.mjs +57 -67
- package/chunks/FormTemp.7f91629d.mjs +165 -0
- package/chunks/confirmable-mixin.817b542f.mjs +116 -0
- package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
- package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
- package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
- package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
- package/color-picker/index.mjs +128 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +32 -34
- package/data-card/index.mjs +33 -35
- package/data-cardtext/index.mjs +27 -29
- package/data-display/index.mjs +33 -35
- package/data-icons/index.mjs +28 -30
- package/data-imgtext/index.mjs +27 -30
- package/data-operatext/index.mjs +39 -41
- package/data-panel/index.mjs +36 -38
- package/data-pay/index.mjs +20 -23
- package/data-price/index.mjs +32 -34
- package/data-progress/index.mjs +27 -30
- package/data-rotate/index.mjs +17 -19
- package/data-table-picker/index.mjs +22 -23
- package/data-tabs/index.mjs +31 -33
- package/dialog-form/index.mjs +22 -27
- package/dynamic-table/index.mjs +36 -40
- package/editable-progress/index.mjs +14 -16
- package/editable-tree/index.mjs +139 -143
- package/egd-collapse-item/index.mjs +2 -1
- package/element-dialog/index.mjs +24 -25
- package/flow-designer/index.mjs +1095 -1111
- package/form-block/index.mjs +22 -24
- package/form-cascader/index.mjs +20 -20
- package/form-checkbox-group/index.mjs +24 -25
- package/form-date-picker/index.mjs +18 -19
- package/form-holder/index.mjs +14 -15
- package/form-input/index.mjs +23 -23
- package/form-input-email/index.mjs +17 -17
- package/form-input-id-card/index.mjs +24 -24
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +26 -26
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +17 -17
- package/form-item/index.mjs +54 -56
- package/form-item-group/index.mjs +31 -33
- package/form-radio-group/index.mjs +51 -52
- package/form-select/index.mjs +31 -32
- package/form-switch/index.mjs +22 -22
- package/form-textarea/index.mjs +20 -20
- package/fy-array/index.mjs +61 -65
- package/fy-cascader/index.mjs +19 -20
- package/fy-checkbox/index.mjs +32 -37
- package/fy-code/index.mjs +13 -10
- package/fy-curd/index.mjs +638 -660
- package/fy-date/index.mjs +20 -21
- package/fy-draggable/index.mjs +19 -20
- package/fy-dynamic/index.mjs +26 -27
- package/fy-form/index.mjs +111 -122
- package/fy-form-design/index.mjs +1238 -1270
- package/fy-input/index.mjs +15 -17
- package/fy-input-color/index.mjs +25 -27
- package/fy-input-icon/index.mjs +20 -21
- package/fy-input-map/index.mjs +22 -24
- package/fy-input-number/index.mjs +22 -23
- package/fy-input-table/index.mjs +15 -17
- package/fy-input-tree/index.mjs +28 -32
- package/fy-progress/index.mjs +23 -24
- package/fy-radio/index.mjs +18 -23
- package/fy-rate/index.mjs +12 -13
- package/fy-select/index.mjs +40 -44
- package/fy-slider/index.mjs +17 -18
- package/fy-switch/index.mjs +20 -21
- package/fy-tabs/index.mjs +19 -21
- package/fy-time/index.mjs +14 -20
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +17 -21
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +22 -24
- package/image-cropper/index.mjs +50 -51
- package/image-preview/index.mjs +24 -26
- package/index.mjs +480 -477
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +23 -24
- package/login/index.mjs +35 -40
- package/nav-bar/index.mjs +13 -14
- package/notice/index.mjs +18 -19
- package/package.json +3 -3
- package/page-index/index.mjs +33 -34
- package/page-index-top/index.mjs +22 -24
- package/pageable-table/index.mjs +92 -96
- package/pageable-view/index.mjs +33 -34
- package/search/index.mjs +21 -23
- package/static-pageable-table/index.mjs +18 -20
- package/swiper/index.mjs +22 -23
- package/table-view/index.mjs +49 -53
- package/tag-render/index.mjs +19 -21
- package/text-ellipsis/index.mjs +11 -12
- package/tinymce-editor/index.mjs +50 -51
- package/toolbar-button/index.mjs +18 -19
- package/vue-cron/index.mjs +104 -112
- package/web-types.json +85 -1
- package/x-input-tag/index.mjs +47 -50
- package/chunks/FormTemp.d079292b.mjs +0 -139
- package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
- package/chunks/detail.d6f8e347.mjs +0 -29
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var i = Object.getOwnPropertySymbols;
|
|
3
|
+
var c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, n = (e, t) => {
|
|
5
|
+
for (var o in t || (t = {}))
|
|
6
|
+
c.call(t, o) && s(e, o, t[o]);
|
|
7
|
+
if (i)
|
|
8
|
+
for (var o of i(t))
|
|
9
|
+
f.call(t, o) && s(e, o, t[o]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as
|
|
13
|
-
import { f as
|
|
14
|
-
import
|
|
15
|
-
import { d, n as
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
return r("FormItem", e._b({
|
|
12
|
+
import { f as h } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import { f as d } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
+
import a from "element-ui/lib/radio-group";
|
|
15
|
+
import { d as y, n as m } from "../chunks/index.57f871af.mjs";
|
|
16
|
+
import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
|
+
var v = function() {
|
|
18
|
+
var e = this, t = e.$createElement, o = e._self._c || t;
|
|
19
|
+
return o("FormItem", e._b({
|
|
21
20
|
class: ["form-radio-group", {
|
|
22
21
|
"form-radio-group-row": e.fillRow,
|
|
23
22
|
inline: e.inline
|
|
@@ -29,7 +28,7 @@ var b = function() {
|
|
|
29
28
|
scopedSlots: e._u([{
|
|
30
29
|
key: "default",
|
|
31
30
|
fn: function() {
|
|
32
|
-
return [
|
|
31
|
+
return [o("ElRadioGroup", e._g(e._b({
|
|
33
32
|
class: {
|
|
34
33
|
"over-flow": e.overFlow
|
|
35
34
|
},
|
|
@@ -39,38 +38,38 @@ var b = function() {
|
|
|
39
38
|
placeholder: e.computePlaceholder
|
|
40
39
|
},
|
|
41
40
|
on: {
|
|
42
|
-
input: function(
|
|
43
|
-
return e.$emit("input",
|
|
41
|
+
input: function(r) {
|
|
42
|
+
return e.$emit("input", r);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
|
-
}, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(
|
|
47
|
-
return
|
|
48
|
-
key:
|
|
45
|
+
}, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(r) {
|
|
46
|
+
return o("ElRadio", {
|
|
47
|
+
key: r[e.valueKey],
|
|
49
48
|
attrs: {
|
|
50
|
-
label:
|
|
49
|
+
label: r[e.valueKey]
|
|
51
50
|
},
|
|
52
51
|
nativeOn: {
|
|
53
|
-
click: function(
|
|
54
|
-
return
|
|
52
|
+
click: function(l) {
|
|
53
|
+
return l.preventDefault(), l.stopPropagation(), e.toggle(r);
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
|
-
}, [e._v(" " + e._s(
|
|
58
|
-
}) : e._l(e.innerOptions, function(
|
|
59
|
-
return
|
|
60
|
-
key:
|
|
56
|
+
}, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
|
|
57
|
+
}) : e._l(e.innerOptions, function(r) {
|
|
58
|
+
return o("ElRadio", {
|
|
59
|
+
key: r[e.valueKey],
|
|
61
60
|
attrs: {
|
|
62
|
-
label:
|
|
61
|
+
label: r[e.valueKey]
|
|
63
62
|
}
|
|
64
|
-
}, [e._v(" " + e._s(
|
|
63
|
+
}, [e._v(" " + e._s(r[e.labelKey]) + " ")]);
|
|
65
64
|
})], 2), e._t("append")];
|
|
66
65
|
},
|
|
67
66
|
proxy: !0
|
|
68
67
|
}, {
|
|
69
68
|
key: "error",
|
|
70
|
-
fn: function(
|
|
71
|
-
var
|
|
69
|
+
fn: function(r) {
|
|
70
|
+
var l = r.error;
|
|
72
71
|
return [e._t("error", null, {
|
|
73
|
-
error:
|
|
72
|
+
error: l
|
|
74
73
|
})];
|
|
75
74
|
}
|
|
76
75
|
}, {
|
|
@@ -87,12 +86,12 @@ var b = function() {
|
|
|
87
86
|
proxy: !0
|
|
88
87
|
}], null, !0)
|
|
89
88
|
}, "FormItem", e.formItemProps, !1));
|
|
90
|
-
},
|
|
91
|
-
const
|
|
89
|
+
}, b = [];
|
|
90
|
+
const g = Object.keys(a.props || a.default.props).filter(
|
|
92
91
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
93
|
-
),
|
|
92
|
+
), K = {
|
|
94
93
|
name: "FormRadioGroup",
|
|
95
|
-
mixins: [
|
|
94
|
+
mixins: [h, d],
|
|
96
95
|
props: {
|
|
97
96
|
options: {
|
|
98
97
|
type: Array,
|
|
@@ -123,7 +122,7 @@ const K = Object.keys(i.props || i.default.props).filter(
|
|
|
123
122
|
return "请选择";
|
|
124
123
|
},
|
|
125
124
|
inputProps() {
|
|
126
|
-
return
|
|
125
|
+
return y(n(n({}, m(this.$attrs)), this.$props), g);
|
|
127
126
|
},
|
|
128
127
|
labelKey() {
|
|
129
128
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -161,24 +160,24 @@ const K = Object.keys(i.props || i.default.props).filter(
|
|
|
161
160
|
this.value === e[this.valueKey] ? this.emitInput(null) : this.emitInput(e[this.valueKey]);
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
|
-
},
|
|
165
|
-
var
|
|
166
|
-
|
|
163
|
+
}, u = {};
|
|
164
|
+
var w = /* @__PURE__ */ _(
|
|
165
|
+
K,
|
|
166
|
+
v,
|
|
167
167
|
b,
|
|
168
|
-
g,
|
|
169
168
|
!1,
|
|
170
|
-
|
|
169
|
+
B,
|
|
171
170
|
null,
|
|
172
171
|
null,
|
|
173
172
|
null
|
|
174
173
|
);
|
|
175
|
-
function
|
|
176
|
-
for (let t in
|
|
177
|
-
this[t] =
|
|
174
|
+
function B(e) {
|
|
175
|
+
for (let t in u)
|
|
176
|
+
this[t] = u[t];
|
|
178
177
|
}
|
|
179
|
-
const
|
|
180
|
-
return
|
|
178
|
+
const G = /* @__PURE__ */ function() {
|
|
179
|
+
return w.exports;
|
|
181
180
|
}();
|
|
182
181
|
export {
|
|
183
|
-
|
|
182
|
+
G as default
|
|
184
183
|
};
|
package/form-select/index.mjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var s = Object.getOwnPropertySymbols;
|
|
3
3
|
var c = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var o = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, n = (e, r) => {
|
|
5
5
|
for (var t in r || (r = {}))
|
|
6
|
-
c.call(r, t) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
f.call(r, t) &&
|
|
6
|
+
c.call(r, t) && o(e, t, r[t]);
|
|
7
|
+
if (s)
|
|
8
|
+
for (var t of s(r))
|
|
9
|
+
f.call(r, t) && o(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as h } from "../chunks/form-input-mixin.
|
|
12
|
+
import { f as h } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import { f as m } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
|
-
import
|
|
15
|
-
import { d as
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
var b = function() {
|
|
14
|
+
import a from "element-ui/lib/select";
|
|
15
|
+
import { d as y, n as d } from "../chunks/index.57f871af.mjs";
|
|
16
|
+
import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
|
+
var v = function() {
|
|
19
18
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
20
19
|
return t("FormItem", e._b({
|
|
21
20
|
attrs: {
|
|
@@ -25,7 +24,7 @@ var b = function() {
|
|
|
25
24
|
scopedSlots: e._u([{
|
|
26
25
|
key: "default",
|
|
27
26
|
fn: function() {
|
|
28
|
-
return [t(
|
|
27
|
+
return [t("ElSelect", e._g(e._b({
|
|
29
28
|
attrs: {
|
|
30
29
|
value: e.value,
|
|
31
30
|
filterable: e.filterable,
|
|
@@ -35,12 +34,12 @@ var b = function() {
|
|
|
35
34
|
on: {
|
|
36
35
|
input: e.emitInput
|
|
37
36
|
}
|
|
38
|
-
}, "ElSelect", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(
|
|
39
|
-
return t(
|
|
40
|
-
key:
|
|
37
|
+
}, "ElSelect", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(l) {
|
|
38
|
+
return t("ElOption", {
|
|
39
|
+
key: l[e.valueKey],
|
|
41
40
|
attrs: {
|
|
42
|
-
value:
|
|
43
|
-
label:
|
|
41
|
+
value: l[e.valueKey],
|
|
42
|
+
label: l[e.labelKey]
|
|
44
43
|
}
|
|
45
44
|
});
|
|
46
45
|
}), 1), e.$slots.warn ? t("div", {
|
|
@@ -50,8 +49,8 @@ var b = function() {
|
|
|
50
49
|
proxy: !0
|
|
51
50
|
}, {
|
|
52
51
|
key: "error",
|
|
53
|
-
fn: function(
|
|
54
|
-
var i =
|
|
52
|
+
fn: function(l) {
|
|
53
|
+
var i = l.error;
|
|
55
54
|
return [e.$scopedSlots.error && e.$scopedSlots.error(i) ? t("div", {
|
|
56
55
|
staticClass: "el-form-item__error"
|
|
57
56
|
}, [e._t("error", function() {
|
|
@@ -74,10 +73,10 @@ var b = function() {
|
|
|
74
73
|
proxy: !0
|
|
75
74
|
}], null, !0)
|
|
76
75
|
}, "FormItem", e.formItemProps, !1));
|
|
77
|
-
},
|
|
78
|
-
const K = Object.keys(
|
|
76
|
+
}, b = [];
|
|
77
|
+
const K = Object.keys(a.props || a.default.props).filter(
|
|
79
78
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
80
|
-
),
|
|
79
|
+
), g = {
|
|
81
80
|
name: "FormSelect",
|
|
82
81
|
mixins: [h, m],
|
|
83
82
|
props: {
|
|
@@ -116,7 +115,7 @@ const K = Object.keys(s.props || s.default.props).filter(
|
|
|
116
115
|
return this.classic ? "value" : this.valueProp;
|
|
117
116
|
},
|
|
118
117
|
inputProps() {
|
|
119
|
-
return
|
|
118
|
+
return y(n(n({}, d(this.$attrs)), this.$props), K);
|
|
120
119
|
},
|
|
121
120
|
innerOptions() {
|
|
122
121
|
return this.gender ? [
|
|
@@ -146,23 +145,23 @@ const K = Object.keys(s.props || s.default.props).filter(
|
|
|
146
145
|
}
|
|
147
146
|
}
|
|
148
147
|
}, u = {};
|
|
149
|
-
var
|
|
150
|
-
P,
|
|
151
|
-
b,
|
|
148
|
+
var S = /* @__PURE__ */ _(
|
|
152
149
|
g,
|
|
150
|
+
v,
|
|
151
|
+
b,
|
|
153
152
|
!1,
|
|
154
|
-
|
|
153
|
+
P,
|
|
155
154
|
null,
|
|
156
155
|
null,
|
|
157
156
|
null
|
|
158
157
|
);
|
|
159
|
-
function
|
|
158
|
+
function P(e) {
|
|
160
159
|
for (let r in u)
|
|
161
160
|
this[r] = u[r];
|
|
162
161
|
}
|
|
163
|
-
const
|
|
164
|
-
return
|
|
162
|
+
const F = /* @__PURE__ */ function() {
|
|
163
|
+
return S.exports;
|
|
165
164
|
}();
|
|
166
165
|
export {
|
|
167
|
-
|
|
166
|
+
F as default
|
|
168
167
|
};
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var o = Object.getOwnPropertySymbols;
|
|
3
3
|
var c = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
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
|
-
c.call(t, r) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
m.call(t, r) &&
|
|
6
|
+
c.call(t, r) && l(e, r, t[r]);
|
|
7
|
+
if (o)
|
|
8
|
+
for (var r of o(t))
|
|
9
|
+
m.call(t, r) && l(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f as d } from "../chunks/form-input-mixin.
|
|
13
|
-
import
|
|
12
|
+
import { f as d } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
|
+
import s from "element-ui/lib/switch";
|
|
14
14
|
import { d as f, n as _ } from "../chunks/index.57f871af.mjs";
|
|
15
15
|
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
-
var
|
|
16
|
+
var h = function() {
|
|
17
17
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
18
18
|
return r("FormItem", e._b({
|
|
19
19
|
attrs: {
|
|
@@ -24,7 +24,7 @@ var y = function() {
|
|
|
24
24
|
key: "default",
|
|
25
25
|
fn: function() {
|
|
26
26
|
return [e._t("default", function() {
|
|
27
|
-
return [r(
|
|
27
|
+
return [r("ElSwitch", e._g(e._b({
|
|
28
28
|
class: {
|
|
29
29
|
"is-readonly": e.readonly
|
|
30
30
|
},
|
|
@@ -66,10 +66,10 @@ var y = function() {
|
|
|
66
66
|
proxy: !0
|
|
67
67
|
}], null, !0)
|
|
68
68
|
}, "FormItem", e.formItemProps, !1));
|
|
69
|
-
},
|
|
70
|
-
const b = Object.keys(
|
|
69
|
+
}, y = [];
|
|
70
|
+
const b = Object.keys(s.props || s.default.props).filter(
|
|
71
71
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
72
|
-
),
|
|
72
|
+
), S = {
|
|
73
73
|
name: "FormSwitch",
|
|
74
74
|
mixins: [d],
|
|
75
75
|
props: {
|
|
@@ -87,11 +87,11 @@ const b = Object.keys(o.props || o.default.props).filter(
|
|
|
87
87
|
this.$emit("input", e);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
y,
|
|
90
|
+
}, u = {};
|
|
91
|
+
var x = /* @__PURE__ */ v(
|
|
92
|
+
S,
|
|
94
93
|
h,
|
|
94
|
+
y,
|
|
95
95
|
!1,
|
|
96
96
|
I,
|
|
97
97
|
null,
|
|
@@ -99,12 +99,12 @@ var S = /* @__PURE__ */ v(
|
|
|
99
99
|
null
|
|
100
100
|
);
|
|
101
101
|
function I(e) {
|
|
102
|
-
for (let t in
|
|
103
|
-
this[t] =
|
|
102
|
+
for (let t in u)
|
|
103
|
+
this[t] = u[t];
|
|
104
104
|
}
|
|
105
|
-
const
|
|
106
|
-
return
|
|
105
|
+
const E = /* @__PURE__ */ function() {
|
|
106
|
+
return x.exports;
|
|
107
107
|
}();
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
E as default
|
|
110
110
|
};
|
package/form-textarea/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var l = Object.getOwnPropertySymbols;
|
|
3
3
|
var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
m.call(
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
c.call(
|
|
4
|
+
var s = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
|
|
5
|
+
for (var r in t || (t = {}))
|
|
6
|
+
m.call(t, r) && s(e, r, t[r]);
|
|
7
|
+
if (l)
|
|
8
|
+
for (var r of l(t))
|
|
9
|
+
c.call(t, r) && s(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/form-input-mixin.
|
|
12
|
+
import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
|
|
13
13
|
import { d, n as _ } from "../chunks/index.57f871af.mjs";
|
|
14
|
-
import
|
|
14
|
+
import a from "element-ui/lib/input";
|
|
15
15
|
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
16
|
var x = function() {
|
|
17
|
-
var e = this,
|
|
18
|
-
return
|
|
17
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
18
|
+
return r("FormItem", e._b({
|
|
19
19
|
attrs: {
|
|
20
20
|
block: e.block,
|
|
21
21
|
rules: e.computeRules,
|
|
@@ -24,7 +24,7 @@ var x = function() {
|
|
|
24
24
|
scopedSlots: e._u([{
|
|
25
25
|
key: "default",
|
|
26
26
|
fn: function() {
|
|
27
|
-
return [
|
|
27
|
+
return [r("ElInput", e._g(e._b({
|
|
28
28
|
attrs: {
|
|
29
29
|
value: e.value,
|
|
30
30
|
type: "textarea",
|
|
@@ -46,9 +46,9 @@ var x = function() {
|
|
|
46
46
|
}, {
|
|
47
47
|
key: "error",
|
|
48
48
|
fn: function(o) {
|
|
49
|
-
var
|
|
49
|
+
var i = o.error;
|
|
50
50
|
return [e._t("error", null, {
|
|
51
|
-
error:
|
|
51
|
+
error: i
|
|
52
52
|
})];
|
|
53
53
|
}
|
|
54
54
|
}, {
|
|
@@ -60,7 +60,7 @@ var x = function() {
|
|
|
60
60
|
}], null, !0)
|
|
61
61
|
}, "FormItem", e.formItemProps, !1));
|
|
62
62
|
}, y = [];
|
|
63
|
-
const v = Object.keys(
|
|
63
|
+
const v = Object.keys(a.props || a.default.props).filter(
|
|
64
64
|
(e) => !["value", "placeholder", "type", "rows", "resize", "showWordLimit", "maxLength", "maxlength"].includes(e)
|
|
65
65
|
), b = {
|
|
66
66
|
name: "FormTextarea",
|
|
@@ -92,7 +92,7 @@ const v = Object.keys(l.props || l.default.props).filter(
|
|
|
92
92
|
return d(n(n({}, _(this.$attrs)), this.$props), v);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, u = {};
|
|
96
96
|
var g = /* @__PURE__ */ h(
|
|
97
97
|
b,
|
|
98
98
|
x,
|
|
@@ -104,12 +104,12 @@ var g = /* @__PURE__ */ h(
|
|
|
104
104
|
null
|
|
105
105
|
);
|
|
106
106
|
function w(e) {
|
|
107
|
-
for (let
|
|
108
|
-
this[
|
|
107
|
+
for (let t in u)
|
|
108
|
+
this[t] = u[t];
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const F = /* @__PURE__ */ function() {
|
|
111
111
|
return g.exports;
|
|
112
112
|
}();
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
F as default
|
|
115
115
|
};
|
package/fy-array/index.mjs
CHANGED
|
@@ -1,110 +1,106 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { i as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
8
|
-
var y = function() {
|
|
9
|
-
var e = this, n = e.$createElement, t = e._self._c || n;
|
|
10
|
-
return t("div", {
|
|
1
|
+
import { p as a, e as o } from "../chunks/event.b5d855dd.mjs";
|
|
2
|
+
import { i as c } from "../chunks/util.ae730cde.mjs";
|
|
3
|
+
import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
var p = function() {
|
|
5
|
+
var t = this, n = t.$createElement, e = t._self._c || n;
|
|
6
|
+
return e("div", {
|
|
11
7
|
staticClass: "avue-array"
|
|
12
|
-
}, [
|
|
8
|
+
}, [t.text ? e("ElButton", {
|
|
13
9
|
attrs: {
|
|
14
10
|
type: "primary",
|
|
15
11
|
icon: "el-icon-plus",
|
|
16
12
|
circle: "",
|
|
17
|
-
size:
|
|
18
|
-
disabled:
|
|
13
|
+
size: t.size,
|
|
14
|
+
disabled: t.disabled
|
|
19
15
|
},
|
|
20
16
|
on: {
|
|
21
|
-
click: function(
|
|
22
|
-
return
|
|
17
|
+
click: function(i) {
|
|
18
|
+
return t.add();
|
|
23
19
|
}
|
|
24
20
|
}
|
|
25
|
-
}) :
|
|
26
|
-
return
|
|
27
|
-
key:
|
|
21
|
+
}) : t._e(), t._l(t.text, function(i, r) {
|
|
22
|
+
return e("div", {
|
|
23
|
+
key: r,
|
|
28
24
|
staticClass: "avue-array__item"
|
|
29
|
-
}, [
|
|
25
|
+
}, [e("div", {
|
|
30
26
|
staticClass: "avue-array__input"
|
|
31
|
-
}, [
|
|
27
|
+
}, [e("ElTooltip", {
|
|
32
28
|
attrs: {
|
|
33
29
|
placement: "bottom",
|
|
34
|
-
disabled: !
|
|
30
|
+
disabled: !t.isImg && !t.isUrl || !!i
|
|
35
31
|
},
|
|
36
|
-
scopedSlots:
|
|
32
|
+
scopedSlots: t._u([{
|
|
37
33
|
key: "content",
|
|
38
34
|
fn: function() {
|
|
39
|
-
return [
|
|
35
|
+
return [e("div", [t.isImg ? e(t.isMediaType(i), {
|
|
40
36
|
tag: "Component",
|
|
41
37
|
staticStyle: {
|
|
42
38
|
width: "200px"
|
|
43
39
|
},
|
|
44
40
|
attrs: {
|
|
45
|
-
src:
|
|
41
|
+
src: i,
|
|
46
42
|
controls: "controls"
|
|
47
43
|
},
|
|
48
44
|
on: {
|
|
49
45
|
click: function(s) {
|
|
50
|
-
return
|
|
46
|
+
return t.openImg(r);
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
|
-
}) :
|
|
49
|
+
}) : t.isUrl ? e("ElLink", {
|
|
54
50
|
attrs: {
|
|
55
51
|
type: "primary",
|
|
56
|
-
href:
|
|
57
|
-
target:
|
|
52
|
+
href: i,
|
|
53
|
+
target: t.target
|
|
58
54
|
}
|
|
59
|
-
}, [
|
|
55
|
+
}, [t._v(" " + t._s(i) + " ")]) : t._e()], 1)];
|
|
60
56
|
},
|
|
61
57
|
proxy: !0
|
|
62
58
|
}], null, !0)
|
|
63
|
-
}, [
|
|
59
|
+
}, [e("ElInput", {
|
|
64
60
|
attrs: {
|
|
65
|
-
size:
|
|
66
|
-
placeholder:
|
|
67
|
-
disabled:
|
|
61
|
+
size: t.size,
|
|
62
|
+
placeholder: t.placeholder,
|
|
63
|
+
disabled: t.disabled
|
|
68
64
|
},
|
|
69
65
|
model: {
|
|
70
|
-
value:
|
|
66
|
+
value: t.text[r],
|
|
71
67
|
callback: function(s) {
|
|
72
|
-
|
|
68
|
+
t.$set(t.text, r, s);
|
|
73
69
|
},
|
|
74
70
|
expression: "text[index]"
|
|
75
71
|
}
|
|
76
|
-
})], 1),
|
|
72
|
+
})], 1), t.disabled || t.readonly || t.alone ? t._e() : [t.isLimit ? t._e() : e("ElButton", {
|
|
77
73
|
attrs: {
|
|
78
74
|
type: "primary",
|
|
79
75
|
icon: "el-icon-plus",
|
|
80
76
|
circle: "",
|
|
81
|
-
size:
|
|
82
|
-
disabled:
|
|
77
|
+
size: t.size,
|
|
78
|
+
disabled: t.disabled
|
|
83
79
|
},
|
|
84
80
|
on: {
|
|
85
81
|
click: function(s) {
|
|
86
|
-
return
|
|
82
|
+
return t.add(r);
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
|
-
}),
|
|
85
|
+
}), e("ElButton", {
|
|
90
86
|
attrs: {
|
|
91
87
|
type: "danger",
|
|
92
88
|
icon: "el-icon-minus",
|
|
93
89
|
circle: "",
|
|
94
|
-
size:
|
|
95
|
-
disabled:
|
|
90
|
+
size: t.size,
|
|
91
|
+
disabled: t.disabled
|
|
96
92
|
},
|
|
97
93
|
on: {
|
|
98
94
|
click: function(s) {
|
|
99
|
-
return
|
|
95
|
+
return t.remove(r);
|
|
100
96
|
}
|
|
101
97
|
}
|
|
102
98
|
})]], 2)]);
|
|
103
99
|
})], 2);
|
|
104
|
-
},
|
|
105
|
-
const
|
|
100
|
+
}, d = [];
|
|
101
|
+
const _ = {
|
|
106
102
|
name: "FyArray",
|
|
107
|
-
mixins: [
|
|
103
|
+
mixins: [a, o],
|
|
108
104
|
props: {
|
|
109
105
|
fileType: String,
|
|
110
106
|
alone: Boolean,
|
|
@@ -126,37 +122,37 @@ const f = {
|
|
|
126
122
|
}
|
|
127
123
|
},
|
|
128
124
|
methods: {
|
|
129
|
-
isMediaType(
|
|
130
|
-
return
|
|
125
|
+
isMediaType(t) {
|
|
126
|
+
return c(t, this.fileType);
|
|
131
127
|
},
|
|
132
|
-
add(
|
|
133
|
-
this.text.splice(
|
|
128
|
+
add(t) {
|
|
129
|
+
this.text.splice(t + 1, 0, "");
|
|
134
130
|
},
|
|
135
|
-
remove(
|
|
136
|
-
this.text.splice(
|
|
131
|
+
remove(t) {
|
|
132
|
+
this.text.splice(t, 1);
|
|
137
133
|
},
|
|
138
134
|
openImg() {
|
|
139
|
-
this.text.map((
|
|
135
|
+
this.text.map((t) => ({ thumbUrl: t, url: t, type: this.fileType }));
|
|
140
136
|
}
|
|
141
137
|
}
|
|
142
|
-
},
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
}, l = {};
|
|
139
|
+
var m = /* @__PURE__ */ u(
|
|
140
|
+
_,
|
|
141
|
+
p,
|
|
142
|
+
d,
|
|
147
143
|
!1,
|
|
148
|
-
|
|
144
|
+
y,
|
|
149
145
|
null,
|
|
150
146
|
null,
|
|
151
147
|
null
|
|
152
148
|
);
|
|
153
|
-
function
|
|
154
|
-
for (let n in
|
|
155
|
-
this[n] =
|
|
149
|
+
function y(t) {
|
|
150
|
+
for (let n in l)
|
|
151
|
+
this[n] = l[n];
|
|
156
152
|
}
|
|
157
|
-
const
|
|
158
|
-
return
|
|
153
|
+
const b = /* @__PURE__ */ function() {
|
|
154
|
+
return m.exports;
|
|
159
155
|
}();
|
|
160
156
|
export {
|
|
161
|
-
|
|
157
|
+
b as default
|
|
162
158
|
};
|