@web-utils/component 3.0.3 → 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 +31 -39
- 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 -663
- 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/image-cropper/index.mjs
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var r = Object.getOwnPropertySymbols;
|
|
3
|
+
var l = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var a = (e, o, t) => o in e ? c(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, s = (e, o) => {
|
|
5
|
+
for (var t in o || (o = {}))
|
|
6
|
+
l.call(o, t) && a(e, t, o[t]);
|
|
7
|
+
if (r)
|
|
8
|
+
for (var t of r(o))
|
|
9
|
+
u.call(o, t) && a(e, t, o[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import { B as
|
|
13
|
-
import { VueCropper as
|
|
14
|
-
import
|
|
15
|
-
import n from "
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
return o("ElementDialog", {
|
|
12
|
+
import { B as f } from "../chunks/util.ae730cde.mjs";
|
|
13
|
+
import { VueCropper as m } from "vue-cropper";
|
|
14
|
+
import d from "vue";
|
|
15
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
+
var v = function() {
|
|
17
|
+
var e = this, o = e.$createElement, t = e._self._c || o;
|
|
18
|
+
return t("ElementDialog", {
|
|
20
19
|
staticClass: "avue-cropper",
|
|
21
20
|
attrs: {
|
|
22
21
|
visible: e.visible,
|
|
@@ -36,7 +35,7 @@ var g = function() {
|
|
|
36
35
|
scopedSlots: e._u([{
|
|
37
36
|
key: "footer",
|
|
38
37
|
fn: function() {
|
|
39
|
-
return [
|
|
38
|
+
return [t("ElButton", {
|
|
40
39
|
attrs: {
|
|
41
40
|
size: "small",
|
|
42
41
|
type: "primary"
|
|
@@ -44,7 +43,7 @@ var g = function() {
|
|
|
44
43
|
on: {
|
|
45
44
|
click: e.submit
|
|
46
45
|
}
|
|
47
|
-
}, [e._v(" 确 定 ")]),
|
|
46
|
+
}, [e._v(" 确 定 ")]), t("ElButton", {
|
|
48
47
|
attrs: {
|
|
49
48
|
size: "small"
|
|
50
49
|
},
|
|
@@ -57,13 +56,13 @@ var g = function() {
|
|
|
57
56
|
},
|
|
58
57
|
proxy: !0
|
|
59
58
|
}])
|
|
60
|
-
}, [
|
|
59
|
+
}, [t("div", {
|
|
61
60
|
staticClass: "cropper-content"
|
|
62
|
-
}, [
|
|
61
|
+
}, [t("div", {
|
|
63
62
|
staticClass: "cropper-box"
|
|
64
|
-
}, [
|
|
63
|
+
}, [t("div", {
|
|
65
64
|
staticClass: "cropper"
|
|
66
|
-
}, [
|
|
65
|
+
}, [t("VueCropper", {
|
|
67
66
|
ref: "cropper",
|
|
68
67
|
attrs: {
|
|
69
68
|
img: e.option.img,
|
|
@@ -91,9 +90,9 @@ var g = function() {
|
|
|
91
90
|
on: {
|
|
92
91
|
realTime: e.realTime
|
|
93
92
|
}
|
|
94
|
-
})], 1),
|
|
93
|
+
})], 1), t("div", {
|
|
95
94
|
staticClass: "footer-btn"
|
|
96
|
-
}, [
|
|
95
|
+
}, [t("ElButton", {
|
|
97
96
|
attrs: {
|
|
98
97
|
size: "mini",
|
|
99
98
|
type: "danger",
|
|
@@ -104,7 +103,7 @@ var g = function() {
|
|
|
104
103
|
return e.changeScale(1);
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
|
-
}),
|
|
106
|
+
}), t("ElButton", {
|
|
108
107
|
attrs: {
|
|
109
108
|
size: "mini",
|
|
110
109
|
type: "danger",
|
|
@@ -115,7 +114,7 @@ var g = function() {
|
|
|
115
114
|
return e.changeScale(-1);
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
|
-
}),
|
|
117
|
+
}), t("ElButton", {
|
|
119
118
|
attrs: {
|
|
120
119
|
size: "mini",
|
|
121
120
|
icon: "el-icon-back",
|
|
@@ -124,7 +123,7 @@ var g = function() {
|
|
|
124
123
|
on: {
|
|
125
124
|
click: e.rotateLeft
|
|
126
125
|
}
|
|
127
|
-
}),
|
|
126
|
+
}), t("ElButton", {
|
|
128
127
|
attrs: {
|
|
129
128
|
size: "mini",
|
|
130
129
|
type: "danger",
|
|
@@ -133,23 +132,23 @@ var g = function() {
|
|
|
133
132
|
on: {
|
|
134
133
|
click: e.rotateRight
|
|
135
134
|
}
|
|
136
|
-
})], 1)]),
|
|
135
|
+
})], 1)]), t("div", {
|
|
137
136
|
staticClass: "show-preview"
|
|
138
|
-
}, [
|
|
137
|
+
}, [t("div", {
|
|
139
138
|
staticClass: "preview",
|
|
140
139
|
style: e.previews.div
|
|
141
|
-
}, [
|
|
140
|
+
}, [t("img", {
|
|
142
141
|
style: e.previews.img,
|
|
143
142
|
attrs: {
|
|
144
143
|
src: e.previews.url,
|
|
145
144
|
alt: ""
|
|
146
145
|
}
|
|
147
146
|
})])])])]);
|
|
148
|
-
},
|
|
149
|
-
const
|
|
147
|
+
}, g = [];
|
|
148
|
+
const n = {
|
|
150
149
|
name: "ImageCropper",
|
|
151
150
|
components: {
|
|
152
|
-
VueCropper:
|
|
151
|
+
VueCropper: m
|
|
153
152
|
},
|
|
154
153
|
data() {
|
|
155
154
|
return {
|
|
@@ -180,8 +179,8 @@ const r = {
|
|
|
180
179
|
},
|
|
181
180
|
submit() {
|
|
182
181
|
this.visible = !1, this.$refs.cropper.getCropData((e) => {
|
|
183
|
-
let
|
|
184
|
-
this.option.type === "file" && (
|
|
182
|
+
let o = e;
|
|
183
|
+
this.option.type === "file" && (o = f(e, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), this.option.callback && this.option.callback(o);
|
|
185
184
|
});
|
|
186
185
|
},
|
|
187
186
|
cancel(e) {
|
|
@@ -189,7 +188,7 @@ const r = {
|
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
190
|
}, x = (e = {}) => {
|
|
192
|
-
const
|
|
191
|
+
const o = d.extend(n), t = s({
|
|
193
192
|
outputSize: 1,
|
|
194
193
|
// 裁剪生成图片的质量(可选0.1 - 1)
|
|
195
194
|
outputType: "jpeg",
|
|
@@ -219,32 +218,32 @@ const r = {
|
|
|
219
218
|
infoTrue: !1,
|
|
220
219
|
// true为展示真实输出图片宽高,false展示看到的截图框宽高
|
|
221
220
|
enlarge: 1
|
|
222
|
-
}, e), i = new
|
|
221
|
+
}, e), i = new o({
|
|
223
222
|
data: {
|
|
224
|
-
option:
|
|
223
|
+
option: t
|
|
225
224
|
}
|
|
226
225
|
}).$mount();
|
|
227
226
|
return document.body.appendChild(i.$el), i.show(), i;
|
|
228
227
|
};
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
var
|
|
232
|
-
b,
|
|
233
|
-
g,
|
|
228
|
+
n.imageCropper = x;
|
|
229
|
+
const _ = n, p = {};
|
|
230
|
+
var b = /* @__PURE__ */ h(
|
|
234
231
|
_,
|
|
232
|
+
v,
|
|
233
|
+
g,
|
|
235
234
|
!1,
|
|
236
|
-
|
|
235
|
+
C,
|
|
237
236
|
null,
|
|
238
237
|
null,
|
|
239
238
|
null
|
|
240
239
|
);
|
|
241
|
-
function
|
|
242
|
-
for (let
|
|
243
|
-
this[
|
|
240
|
+
function C(e) {
|
|
241
|
+
for (let o in p)
|
|
242
|
+
this[o] = p[o];
|
|
244
243
|
}
|
|
245
|
-
const
|
|
246
|
-
return
|
|
244
|
+
const k = /* @__PURE__ */ function() {
|
|
245
|
+
return b.exports;
|
|
247
246
|
}();
|
|
248
247
|
export {
|
|
249
|
-
|
|
248
|
+
k as default
|
|
250
249
|
};
|
package/image-preview/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
2
|
var l = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var r = (e, i, t) => i in e ?
|
|
3
|
+
var _ = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var r = (e, i, t) => i in e ? v(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, c = (e, i) => {
|
|
5
5
|
for (var t in i || (i = {}))
|
|
6
|
-
|
|
6
|
+
_.call(i, t) && r(e, t, i[t]);
|
|
7
7
|
if (l)
|
|
8
8
|
for (var t of l(i))
|
|
9
9
|
h.call(i, t) && r(e, t, i[t]);
|
|
@@ -12,10 +12,8 @@ var r = (e, i, t) => i in e ? d(e, i, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
import { i as p } from "../chunks/util.ae730cde.mjs";
|
|
13
13
|
import { setPx as u } from "@web-utils/core";
|
|
14
14
|
import f from "vue";
|
|
15
|
-
import g from "
|
|
16
|
-
|
|
17
|
-
import { n as C } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
18
|
-
var x = function() {
|
|
15
|
+
import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
+
var w = function() {
|
|
19
17
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
20
18
|
return e.isShow ? t("div", {
|
|
21
19
|
staticClass: "avue-image-preview"
|
|
@@ -52,7 +50,7 @@ var x = function() {
|
|
|
52
50
|
})]) : e._e(), t("div", {
|
|
53
51
|
ref: "box",
|
|
54
52
|
staticClass: "avue-image-preview__box"
|
|
55
|
-
}, [t(
|
|
53
|
+
}, [t("ElCarousel", {
|
|
56
54
|
ref: "carousel",
|
|
57
55
|
attrs: {
|
|
58
56
|
"show-indicators": !1,
|
|
@@ -66,7 +64,7 @@ var x = function() {
|
|
|
66
64
|
change: e.handleChange
|
|
67
65
|
}
|
|
68
66
|
}, e._l(e.datas, function(s, a) {
|
|
69
|
-
return t(
|
|
67
|
+
return t("ElCarouselItem", {
|
|
70
68
|
key: a,
|
|
71
69
|
nativeOn: {
|
|
72
70
|
click: function(n) {
|
|
@@ -143,7 +141,7 @@ var x = function() {
|
|
|
143
141
|
}
|
|
144
142
|
}
|
|
145
143
|
})])])]) : e._e();
|
|
146
|
-
},
|
|
144
|
+
}, C = [];
|
|
147
145
|
const o = {
|
|
148
146
|
name: "ImagePreview",
|
|
149
147
|
data() {
|
|
@@ -210,8 +208,8 @@ const o = {
|
|
|
210
208
|
let i = e.clientX, t = e.clientY;
|
|
211
209
|
const s = 2;
|
|
212
210
|
document.onmousemove = (a) => {
|
|
213
|
-
const n = a.clientX - i,
|
|
214
|
-
i = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top +
|
|
211
|
+
const n = a.clientX - i, m = a.clientY - t;
|
|
212
|
+
i = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + m * s;
|
|
215
213
|
}, document.onmouseup = () => {
|
|
216
214
|
document.onmousemove = null, document.onmouseup = null;
|
|
217
215
|
};
|
|
@@ -223,7 +221,7 @@ const o = {
|
|
|
223
221
|
this.isShow = !1, typeof this.ops.beforeClose == "function" && this.ops.beforeClose(this.datas, this.index), this.$destroy(), this.$el.remove();
|
|
224
222
|
}
|
|
225
223
|
}
|
|
226
|
-
},
|
|
224
|
+
}, x = (e = [], i = 0, t = {}) => {
|
|
227
225
|
const s = f.extend(o), a = {
|
|
228
226
|
datas: e,
|
|
229
227
|
index: i,
|
|
@@ -238,25 +236,25 @@ const o = {
|
|
|
238
236
|
}).$mount();
|
|
239
237
|
return document.body.appendChild(n.$el), n.isShow = !0, n;
|
|
240
238
|
};
|
|
241
|
-
o.imagePreview =
|
|
242
|
-
const
|
|
243
|
-
var
|
|
244
|
-
y,
|
|
245
|
-
x,
|
|
239
|
+
o.imagePreview = x;
|
|
240
|
+
const k = o, d = {};
|
|
241
|
+
var $ = /* @__PURE__ */ g(
|
|
246
242
|
k,
|
|
243
|
+
w,
|
|
244
|
+
C,
|
|
247
245
|
!1,
|
|
248
|
-
|
|
246
|
+
y,
|
|
249
247
|
null,
|
|
250
248
|
null,
|
|
251
249
|
null
|
|
252
250
|
);
|
|
253
|
-
function
|
|
254
|
-
for (let i in
|
|
255
|
-
this[i] =
|
|
251
|
+
function y(e) {
|
|
252
|
+
for (let i in d)
|
|
253
|
+
this[i] = d[i];
|
|
256
254
|
}
|
|
257
|
-
const
|
|
258
|
-
return
|
|
255
|
+
const M = /* @__PURE__ */ function() {
|
|
256
|
+
return $.exports;
|
|
259
257
|
}();
|
|
260
258
|
export {
|
|
261
|
-
|
|
259
|
+
M as default
|
|
262
260
|
};
|