@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
package/input-number/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import u from "element-ui/src/mixins/focus";
|
|
2
2
|
import o from "element-ui/src/directives/repeat-click";
|
|
3
3
|
import { i as a } from "../chunks/input-number-mixin.41a066be.mjs";
|
|
4
|
-
import l from "
|
|
5
|
-
|
|
6
|
-
var p = function() {
|
|
4
|
+
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
+
var c = function() {
|
|
7
6
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
8
7
|
return n("div", {
|
|
9
8
|
class: ["input-number", "el-input-number", e.inputNumberSize ? `el-input-number--${e.inputNumberSize}` : "", {
|
|
@@ -58,7 +57,7 @@ var p = function() {
|
|
|
58
57
|
}
|
|
59
58
|
}, [n("i", {
|
|
60
59
|
class: `el-icon-${e.controlsAtRight ? "arrow-up" : "plus"}`
|
|
61
|
-
})]) : e._e(), n(
|
|
60
|
+
})]) : e._e(), n("ElInput", {
|
|
62
61
|
ref: "input",
|
|
63
62
|
attrs: {
|
|
64
63
|
value: e.displayValue,
|
|
@@ -111,8 +110,8 @@ var p = function() {
|
|
|
111
110
|
proxy: !0
|
|
112
111
|
}], null, !0)
|
|
113
112
|
})], 1);
|
|
114
|
-
},
|
|
115
|
-
const
|
|
113
|
+
}, p = [];
|
|
114
|
+
const h = {
|
|
116
115
|
name: "InputNumber",
|
|
117
116
|
directives: {
|
|
118
117
|
repeatClick: o
|
|
@@ -253,23 +252,23 @@ const d = {
|
|
|
253
252
|
}
|
|
254
253
|
}
|
|
255
254
|
}, s = {};
|
|
256
|
-
var
|
|
257
|
-
d,
|
|
258
|
-
p,
|
|
255
|
+
var d = /* @__PURE__ */ l(
|
|
259
256
|
h,
|
|
257
|
+
c,
|
|
258
|
+
p,
|
|
260
259
|
!1,
|
|
261
|
-
|
|
260
|
+
m,
|
|
262
261
|
null,
|
|
263
262
|
null,
|
|
264
263
|
null
|
|
265
264
|
);
|
|
266
|
-
function
|
|
265
|
+
function m(e) {
|
|
267
266
|
for (let t in s)
|
|
268
267
|
this[t] = s[t];
|
|
269
268
|
}
|
|
270
|
-
const
|
|
271
|
-
return
|
|
269
|
+
const x = /* @__PURE__ */ function() {
|
|
270
|
+
return d.exports;
|
|
272
271
|
}();
|
|
273
272
|
export {
|
|
274
|
-
|
|
273
|
+
x as default
|
|
275
274
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { isNotEmpty as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var l = function() {
|
|
1
|
+
import { isNotEmpty as i } from "@web-utils/core";
|
|
2
|
+
import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
var r = function() {
|
|
5
4
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
6
5
|
return n("div", {
|
|
7
6
|
staticClass: "input-number-range"
|
|
8
|
-
}, [n(
|
|
7
|
+
}, [n("ElInputNumber", {
|
|
9
8
|
staticClass: "flex-item",
|
|
10
9
|
staticStyle: {
|
|
11
10
|
width: "auto"
|
|
@@ -20,8 +19,8 @@ var l = function() {
|
|
|
20
19
|
},
|
|
21
20
|
model: {
|
|
22
21
|
value: t.val[0],
|
|
23
|
-
callback: function(
|
|
24
|
-
t.$set(t.val, 0,
|
|
22
|
+
callback: function(s) {
|
|
23
|
+
t.$set(t.val, 0, s);
|
|
25
24
|
},
|
|
26
25
|
expression: "val[0]"
|
|
27
26
|
}
|
|
@@ -30,7 +29,7 @@ var l = function() {
|
|
|
30
29
|
padding: "0 6px",
|
|
31
30
|
"font-size": "12px"
|
|
32
31
|
}
|
|
33
|
-
}, [t._v(t._s(t.separator))]), n(
|
|
32
|
+
}, [t._v(t._s(t.separator))]), n("ElInputNumber", {
|
|
34
33
|
staticClass: "flex-item",
|
|
35
34
|
staticStyle: {
|
|
36
35
|
width: "auto"
|
|
@@ -45,14 +44,14 @@ var l = function() {
|
|
|
45
44
|
},
|
|
46
45
|
model: {
|
|
47
46
|
value: t.val[1],
|
|
48
|
-
callback: function(
|
|
49
|
-
t.$set(t.val, 1,
|
|
47
|
+
callback: function(s) {
|
|
48
|
+
t.$set(t.val, 1, s);
|
|
50
49
|
},
|
|
51
50
|
expression: "val[1]"
|
|
52
51
|
}
|
|
53
52
|
})], 1);
|
|
54
|
-
},
|
|
55
|
-
const
|
|
53
|
+
}, l = [];
|
|
54
|
+
const u = {
|
|
56
55
|
name: "InputNumberRange",
|
|
57
56
|
props: {
|
|
58
57
|
value: {
|
|
@@ -79,7 +78,7 @@ const d = {
|
|
|
79
78
|
immediate: !0,
|
|
80
79
|
handler(t) {
|
|
81
80
|
const e = [void 0, void 0];
|
|
82
|
-
|
|
81
|
+
i(t == null ? void 0 : t[0]) && (e[0] = t[0]), i(t == null ? void 0 : t[1]) && (e[1] = t[1]), this.val = e;
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
},
|
|
@@ -88,24 +87,24 @@ const d = {
|
|
|
88
87
|
this.$emit("input", this.val);
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
|
-
},
|
|
92
|
-
var
|
|
93
|
-
d,
|
|
94
|
-
l,
|
|
90
|
+
}, a = {};
|
|
91
|
+
var d = /* @__PURE__ */ o(
|
|
95
92
|
u,
|
|
93
|
+
r,
|
|
94
|
+
l,
|
|
96
95
|
!1,
|
|
97
|
-
|
|
96
|
+
c,
|
|
98
97
|
null,
|
|
99
98
|
null,
|
|
100
99
|
null
|
|
101
100
|
);
|
|
102
|
-
function
|
|
103
|
-
for (let e in
|
|
104
|
-
this[e] =
|
|
101
|
+
function c(t) {
|
|
102
|
+
for (let e in a)
|
|
103
|
+
this[e] = a[e];
|
|
105
104
|
}
|
|
106
|
-
const
|
|
107
|
-
return
|
|
105
|
+
const v = /* @__PURE__ */ function() {
|
|
106
|
+
return d.exports;
|
|
108
107
|
}();
|
|
109
108
|
export {
|
|
110
|
-
|
|
109
|
+
v as default
|
|
111
110
|
};
|
package/login/index.mjs
CHANGED
|
@@ -1,39 +1,34 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { isBlank as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import n from "element-ui/lib/input";
|
|
6
|
-
import i from "element-ui/lib/tooltip";
|
|
7
|
-
import u from "element-ui/lib/form";
|
|
8
|
-
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
9
|
-
var f = function() {
|
|
1
|
+
import { s as l } from "../chunks/util.ae730cde.mjs";
|
|
2
|
+
import { isBlank as a } from "@web-utils/core";
|
|
3
|
+
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
var p = function() {
|
|
10
5
|
var e = this, s = e.$createElement, t = e._self._c || s;
|
|
11
6
|
return t("div", {
|
|
12
7
|
staticClass: "avue-login",
|
|
13
8
|
style: {
|
|
14
9
|
width: e.setPx(e.width)
|
|
15
10
|
}
|
|
16
|
-
}, [t(
|
|
11
|
+
}, [t("ElForm", {
|
|
17
12
|
ref: "form",
|
|
18
13
|
attrs: {
|
|
19
14
|
model: e.form,
|
|
20
15
|
"label-suffix": ":",
|
|
21
16
|
"label-width": e.setPx(e.labelWidth)
|
|
22
17
|
}
|
|
23
|
-
}, [e.username.hide ? e._e() : t(
|
|
18
|
+
}, [e.username.hide ? e._e() : t("ElFormItem", {
|
|
24
19
|
attrs: {
|
|
25
20
|
label: e.username.label || "用户名",
|
|
26
21
|
rules: e.username.rules,
|
|
27
22
|
"label-width": e.setPx(e.username.labelWidth),
|
|
28
23
|
prop: "username"
|
|
29
24
|
}
|
|
30
|
-
}, [t(
|
|
25
|
+
}, [t("ElTooltip", {
|
|
31
26
|
attrs: {
|
|
32
27
|
content: e.username.tip,
|
|
33
28
|
disabled: e.username.tip === void 0,
|
|
34
29
|
placement: "top-start"
|
|
35
30
|
}
|
|
36
|
-
}, [t(
|
|
31
|
+
}, [t("ElInput", {
|
|
37
32
|
attrs: {
|
|
38
33
|
size: "small",
|
|
39
34
|
"prefix-icon": e.username.prefixIcon || "el-icon-user",
|
|
@@ -47,20 +42,20 @@ var f = function() {
|
|
|
47
42
|
},
|
|
48
43
|
expression: "form.username"
|
|
49
44
|
}
|
|
50
|
-
})], 1)], 1), e.password.hide ? e._e() : t(
|
|
45
|
+
})], 1)], 1), e.password.hide ? e._e() : t("ElFormItem", {
|
|
51
46
|
attrs: {
|
|
52
47
|
label: e.password.label || "密码",
|
|
53
48
|
rules: e.password.rules,
|
|
54
49
|
"label-width": e.setPx(e.password.labelWidth),
|
|
55
50
|
prop: "password"
|
|
56
51
|
}
|
|
57
|
-
}, [t(
|
|
52
|
+
}, [t("ElTooltip", {
|
|
58
53
|
attrs: {
|
|
59
54
|
content: e.password.tip,
|
|
60
55
|
disabled: e.password.tip === void 0,
|
|
61
56
|
placement: "top-start"
|
|
62
57
|
}
|
|
63
|
-
}, [t(
|
|
58
|
+
}, [t("ElInput", {
|
|
64
59
|
attrs: {
|
|
65
60
|
type: "password",
|
|
66
61
|
size: "small",
|
|
@@ -76,20 +71,20 @@ var f = function() {
|
|
|
76
71
|
},
|
|
77
72
|
expression: "form.password"
|
|
78
73
|
}
|
|
79
|
-
})], 1)], 1), e.code.hide ? e._e() : t(
|
|
74
|
+
})], 1)], 1), e.code.hide ? e._e() : t("ElFormItem", {
|
|
80
75
|
attrs: {
|
|
81
76
|
label: e.code.label || "验证码",
|
|
82
77
|
rules: e.code.rules,
|
|
83
78
|
"label-width": e.setPx(e.code.labelWidth),
|
|
84
79
|
prop: "code"
|
|
85
80
|
}
|
|
86
|
-
}, [t(
|
|
81
|
+
}, [t("ElTooltip", {
|
|
87
82
|
attrs: {
|
|
88
83
|
content: e.code.tip,
|
|
89
84
|
disabled: e.code.tip === void 0,
|
|
90
85
|
placement: "top-start"
|
|
91
86
|
}
|
|
92
|
-
}, [t(
|
|
87
|
+
}, [t("ElInput", {
|
|
93
88
|
attrs: {
|
|
94
89
|
size: "small",
|
|
95
90
|
"prefix-icon": e.code.prefixIcon || "el-icon-c-scale-to-original",
|
|
@@ -99,7 +94,7 @@ var f = function() {
|
|
|
99
94
|
scopedSlots: e._u([{
|
|
100
95
|
key: "append",
|
|
101
96
|
fn: function() {
|
|
102
|
-
return [e.isPhone ? t(
|
|
97
|
+
return [e.isPhone ? t("ElButton", {
|
|
103
98
|
staticClass: "avue-login__send",
|
|
104
99
|
attrs: {
|
|
105
100
|
type: "primary",
|
|
@@ -129,7 +124,7 @@ var f = function() {
|
|
|
129
124
|
},
|
|
130
125
|
expression: "form.code"
|
|
131
126
|
}
|
|
132
|
-
})], 1)], 1), t(
|
|
127
|
+
})], 1)], 1), t("ElFormItem", [t("ElButton", {
|
|
133
128
|
staticClass: "avue-login__submit",
|
|
134
129
|
attrs: {
|
|
135
130
|
type: "primary"
|
|
@@ -138,8 +133,8 @@ var f = function() {
|
|
|
138
133
|
click: e.onSubmit
|
|
139
134
|
}
|
|
140
135
|
}, [e._v(" 登录 ")])], 1)], 1)], 1);
|
|
141
|
-
},
|
|
142
|
-
const
|
|
136
|
+
}, d = [];
|
|
137
|
+
const r = "发送验证码", i = "{{time}}s后重获取", m = {
|
|
143
138
|
name: "Login",
|
|
144
139
|
props: {
|
|
145
140
|
value: {
|
|
@@ -156,7 +151,7 @@ const a = "发送验证码", c = "{{time}}s后重获取", b = {
|
|
|
156
151
|
},
|
|
157
152
|
data() {
|
|
158
153
|
return {
|
|
159
|
-
text:
|
|
154
|
+
text: r,
|
|
160
155
|
nowtime: "",
|
|
161
156
|
check: {},
|
|
162
157
|
flag: !1
|
|
@@ -202,15 +197,15 @@ const a = "发送验证码", c = "{{time}}s后重获取", b = {
|
|
|
202
197
|
return this.option.column || {};
|
|
203
198
|
},
|
|
204
199
|
sendDisabled() {
|
|
205
|
-
return !
|
|
200
|
+
return !a(this.check);
|
|
206
201
|
}
|
|
207
202
|
},
|
|
208
203
|
methods: {
|
|
209
|
-
setPx:
|
|
204
|
+
setPx: l,
|
|
210
205
|
onSend() {
|
|
211
206
|
const e = () => {
|
|
212
|
-
this.nowtime = this.time, this.text =
|
|
213
|
-
this.nowtime--, this.nowtime === 0 ? (this.text =
|
|
207
|
+
this.nowtime = this.time, this.text = i.replace("{{time}}", this.nowtime), this.check = setInterval(() => {
|
|
208
|
+
this.nowtime--, this.nowtime === 0 ? (this.text = r, clearInterval(this.check), this.check = null) : this.text = i.replace("{{time}}", this.nowtime);
|
|
214
209
|
}, 1e3);
|
|
215
210
|
};
|
|
216
211
|
this.sendDisabled || this.$emit("send", e);
|
|
@@ -232,24 +227,24 @@ const a = "发送验证码", c = "{{time}}s后重获取", b = {
|
|
|
232
227
|
});
|
|
233
228
|
}
|
|
234
229
|
}
|
|
235
|
-
},
|
|
236
|
-
var
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
230
|
+
}, n = {};
|
|
231
|
+
var u = /* @__PURE__ */ c(
|
|
232
|
+
m,
|
|
233
|
+
p,
|
|
234
|
+
d,
|
|
240
235
|
!1,
|
|
241
|
-
|
|
236
|
+
h,
|
|
242
237
|
null,
|
|
243
238
|
null,
|
|
244
239
|
null
|
|
245
240
|
);
|
|
246
|
-
function
|
|
247
|
-
for (let s in
|
|
248
|
-
this[s] =
|
|
241
|
+
function h(e) {
|
|
242
|
+
for (let s in n)
|
|
243
|
+
this[s] = n[s];
|
|
249
244
|
}
|
|
250
|
-
const
|
|
251
|
-
return
|
|
245
|
+
const w = /* @__PURE__ */ function() {
|
|
246
|
+
return u.exports;
|
|
252
247
|
}();
|
|
253
248
|
export {
|
|
254
|
-
|
|
249
|
+
w as default
|
|
255
250
|
};
|
package/nav-bar/index.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import a from "
|
|
2
|
-
|
|
3
|
-
var s = function() {
|
|
1
|
+
import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
var r = function() {
|
|
4
3
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
4
|
return n("div", {
|
|
6
5
|
staticClass: "nav-bar"
|
|
7
|
-
}, [t.showBack ? n(
|
|
6
|
+
}, [t.showBack ? n("ElButton", {
|
|
8
7
|
attrs: {
|
|
9
8
|
type: "text",
|
|
10
9
|
icon: "el-icon-arrow-left"
|
|
@@ -15,8 +14,8 @@ var s = function() {
|
|
|
15
14
|
}, [t._v(" 返回 ")]) : t._e(), t.$slots.right ? n("div", {
|
|
16
15
|
staticClass: "flex-item flex-row-column vertical-center"
|
|
17
16
|
}, [t._t("right")], 2) : t._e()], 1);
|
|
18
|
-
},
|
|
19
|
-
const
|
|
17
|
+
}, s = [];
|
|
18
|
+
const c = {
|
|
20
19
|
name: "NavBar",
|
|
21
20
|
props: {
|
|
22
21
|
onGoBack: Function,
|
|
@@ -31,23 +30,23 @@ const _ = {
|
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
}, o = {};
|
|
34
|
-
var
|
|
35
|
-
_,
|
|
36
|
-
s,
|
|
33
|
+
var l = /* @__PURE__ */ a(
|
|
37
34
|
c,
|
|
35
|
+
r,
|
|
36
|
+
s,
|
|
38
37
|
!1,
|
|
39
|
-
|
|
38
|
+
i,
|
|
40
39
|
null,
|
|
41
40
|
null,
|
|
42
41
|
null
|
|
43
42
|
);
|
|
44
|
-
function
|
|
43
|
+
function i(t) {
|
|
45
44
|
for (let e in o)
|
|
46
45
|
this[e] = o[e];
|
|
47
46
|
}
|
|
48
|
-
const
|
|
49
|
-
return
|
|
47
|
+
const u = /* @__PURE__ */ function() {
|
|
48
|
+
return l.exports;
|
|
50
49
|
}();
|
|
51
50
|
export {
|
|
52
|
-
|
|
51
|
+
u as default
|
|
53
52
|
};
|
package/notice/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import l from "
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var t = this, n = t.$createElement, e = t._self._c || n;
|
|
1
|
+
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
2
|
+
var o = function() {
|
|
3
|
+
var t = this, a = t.$createElement, e = t._self._c || a;
|
|
5
4
|
return e("div", {
|
|
6
5
|
staticClass: "avue-notice"
|
|
7
6
|
}, [t._l(t.data, function(s, r) {
|
|
@@ -9,7 +8,7 @@ var c = function() {
|
|
|
9
8
|
key: r,
|
|
10
9
|
staticClass: "avue-notice__item",
|
|
11
10
|
on: {
|
|
12
|
-
click: function(
|
|
11
|
+
click: function(v) {
|
|
13
12
|
return t.click(s);
|
|
14
13
|
}
|
|
15
14
|
}
|
|
@@ -28,7 +27,7 @@ var c = function() {
|
|
|
28
27
|
staticClass: "avue-notice__name"
|
|
29
28
|
}, [t._v(t._s(s[t.titleKey]))]), s[t.tagKey] ? e("span", {
|
|
30
29
|
staticClass: "avue-notice__tag"
|
|
31
|
-
}, [e(
|
|
30
|
+
}, [e("ElTag", {
|
|
32
31
|
attrs: {
|
|
33
32
|
size: "small",
|
|
34
33
|
type: t.getType(s[t.statusKey])
|
|
@@ -48,14 +47,14 @@ var c = function() {
|
|
|
48
47
|
click: t.handleClick
|
|
49
48
|
}
|
|
50
49
|
}, [t._v("加载更多")])], 2);
|
|
51
|
-
},
|
|
50
|
+
}, c = [];
|
|
52
51
|
const i = {
|
|
53
52
|
img: "img",
|
|
54
53
|
title: "title",
|
|
55
54
|
subtile: "title",
|
|
56
55
|
tag: "tag",
|
|
57
56
|
status: "status"
|
|
58
|
-
},
|
|
57
|
+
}, u = {
|
|
59
58
|
name: "Notice",
|
|
60
59
|
props: {
|
|
61
60
|
finish: {
|
|
@@ -121,24 +120,24 @@ const i = {
|
|
|
121
120
|
return "success";
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
|
-
},
|
|
125
|
-
var
|
|
126
|
-
_,
|
|
127
|
-
c,
|
|
123
|
+
}, n = {};
|
|
124
|
+
var _ = /* @__PURE__ */ l(
|
|
128
125
|
u,
|
|
126
|
+
o,
|
|
127
|
+
c,
|
|
129
128
|
!1,
|
|
130
|
-
|
|
129
|
+
p,
|
|
131
130
|
null,
|
|
132
131
|
null,
|
|
133
132
|
null
|
|
134
133
|
);
|
|
135
|
-
function
|
|
136
|
-
for (let
|
|
137
|
-
this[
|
|
134
|
+
function p(t) {
|
|
135
|
+
for (let a in n)
|
|
136
|
+
this[a] = n[a];
|
|
138
137
|
}
|
|
139
|
-
const
|
|
140
|
-
return
|
|
138
|
+
const d = /* @__PURE__ */ function() {
|
|
139
|
+
return _.exports;
|
|
141
140
|
}();
|
|
142
141
|
export {
|
|
143
|
-
|
|
142
|
+
d as default
|
|
144
143
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
3
|
"description": "Web Components",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.5",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"min-dash": "^4.1.1",
|
|
34
34
|
"min-dom": "^4.1.0",
|
|
35
35
|
"monaco-editor": "^0.44.0",
|
|
36
|
-
"overlayscrollbars": "^2.4.
|
|
36
|
+
"overlayscrollbars": "^2.4.4",
|
|
37
37
|
"photoswipe": "^5.4.2",
|
|
38
38
|
"qrcode": "^1.5.3",
|
|
39
39
|
"quill": "^1.3.7",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"simple-uploader.js": "^0.6.0",
|
|
42
42
|
"tiny-svg": "^3.0.1",
|
|
43
43
|
"tinymce": "4.9.11",
|
|
44
|
-
"video.js": "^8.6.
|
|
44
|
+
"video.js": "^8.6.1",
|
|
45
45
|
"viewerjs": "^1.11.6",
|
|
46
46
|
"vue-cropper": "^0.6.4",
|
|
47
47
|
"vuedraggable": "^2.24.3",
|
package/page-index/index.mjs
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
var r = (t, a, e) => new Promise((s,
|
|
2
|
-
var u = (
|
|
1
|
+
var r = (t, a, e) => new Promise((s, i) => {
|
|
2
|
+
var u = (n) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
d(e.next(n));
|
|
5
|
+
} catch (o) {
|
|
6
|
+
i(o);
|
|
7
7
|
}
|
|
8
|
-
}, h = (
|
|
8
|
+
}, h = (n) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
d(e.throw(n));
|
|
11
|
+
} catch (o) {
|
|
12
|
+
i(o);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, d = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(u, h);
|
|
15
|
+
d((e = e.apply(t, a)).next());
|
|
16
16
|
});
|
|
17
|
-
import { treeToArray as p, findFirstMatchNode as
|
|
18
|
-
import f from "element-ui/lib/tree";
|
|
17
|
+
import { treeToArray as p, findFirstMatchNode as l } from "@web-utils/core";
|
|
19
18
|
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
20
|
-
var
|
|
19
|
+
var f = function() {
|
|
21
20
|
var t = this, a = t.$createElement, e = t._self._c || a;
|
|
22
21
|
return e("div", {
|
|
23
22
|
staticClass: "egd-container"
|
|
@@ -34,7 +33,7 @@ var _ = function() {
|
|
|
34
33
|
}, [e("span", {
|
|
35
34
|
staticClass: "section-title flex-not-shrink"
|
|
36
35
|
}, [t._v(t._s(t.sectionTitle))])]), t._t("menu", function() {
|
|
37
|
-
return [e(
|
|
36
|
+
return [e("ElTree", {
|
|
38
37
|
ref: "menuTree",
|
|
39
38
|
attrs: {
|
|
40
39
|
data: t.menus,
|
|
@@ -51,13 +50,13 @@ var _ = function() {
|
|
|
51
50
|
scopedSlots: t._u([{
|
|
52
51
|
key: "default",
|
|
53
52
|
fn: function(s) {
|
|
54
|
-
var
|
|
53
|
+
var i = s.data, u = s.node;
|
|
55
54
|
return [t._t("tree-node", function() {
|
|
56
55
|
return [e("span", [e("i", {
|
|
57
|
-
class:
|
|
58
|
-
}), t._v(" " + t._s(
|
|
56
|
+
class: i.icon
|
|
57
|
+
}), t._v(" " + t._s(i.label))])];
|
|
59
58
|
}, {
|
|
60
|
-
data:
|
|
59
|
+
data: i,
|
|
61
60
|
node: u
|
|
62
61
|
})];
|
|
63
62
|
}
|
|
@@ -74,8 +73,8 @@ var _ = function() {
|
|
|
74
73
|
staticClass: "page-index-content-empty"
|
|
75
74
|
}, [t._v(" " + t._s(t.tips) + " ")])];
|
|
76
75
|
})], 2)]);
|
|
77
|
-
},
|
|
78
|
-
const
|
|
76
|
+
}, _ = [];
|
|
77
|
+
const m = {
|
|
79
78
|
name: "PageIndex",
|
|
80
79
|
props: {
|
|
81
80
|
menus: {
|
|
@@ -128,7 +127,7 @@ const v = {
|
|
|
128
127
|
if (p(this.menus).map((a) => a.path).filter((a) => a).includes(this.$route.path))
|
|
129
128
|
yield this.setCurrentKey(this.$route.path);
|
|
130
129
|
else {
|
|
131
|
-
const a =
|
|
130
|
+
const a = l(this.menus, (e) => e.path);
|
|
132
131
|
a && (yield this.$router.push({ path: a.path, query: a.query }), yield this.setCurrentKey(a.path));
|
|
133
132
|
}
|
|
134
133
|
});
|
|
@@ -146,31 +145,31 @@ const v = {
|
|
|
146
145
|
beforeRouteUpdate(t, a, e) {
|
|
147
146
|
return r(this, null, function* () {
|
|
148
147
|
if (t.path === this.schema) {
|
|
149
|
-
const s =
|
|
148
|
+
const s = l(this.menus, (i) => i.path);
|
|
150
149
|
s ? (yield e({ path: s.path, query: s.query }), yield this.setCurrentKey(s.path)) : yield e(!1);
|
|
151
150
|
} else
|
|
152
151
|
yield e(), yield this.setCurrentKey(this.$route.path);
|
|
153
152
|
});
|
|
154
153
|
}
|
|
155
154
|
}
|
|
156
|
-
},
|
|
157
|
-
var
|
|
158
|
-
v,
|
|
159
|
-
_,
|
|
155
|
+
}, c = {};
|
|
156
|
+
var v = /* @__PURE__ */ y(
|
|
160
157
|
m,
|
|
158
|
+
f,
|
|
159
|
+
_,
|
|
161
160
|
!1,
|
|
162
|
-
|
|
161
|
+
C,
|
|
163
162
|
null,
|
|
164
163
|
null,
|
|
165
164
|
null
|
|
166
165
|
);
|
|
167
|
-
function
|
|
168
|
-
for (let a in
|
|
169
|
-
this[a] =
|
|
166
|
+
function C(t) {
|
|
167
|
+
for (let a in c)
|
|
168
|
+
this[a] = c[a];
|
|
170
169
|
}
|
|
171
|
-
const
|
|
172
|
-
return
|
|
170
|
+
const $ = /* @__PURE__ */ function() {
|
|
171
|
+
return v.exports;
|
|
173
172
|
}();
|
|
174
173
|
export {
|
|
175
|
-
|
|
174
|
+
$ as default
|
|
176
175
|
};
|