@web-utils/component 4.0.0 → 4.0.2
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow-designer/index.mjs +343 -374
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +54 -40
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
package/image-cropper/index.mjs
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
for (var t in e || (e = {}))
|
|
6
|
-
l.call(e, t) && s(o, t, e[t]);
|
|
7
|
-
if (n)
|
|
8
|
-
for (var t of n(e))
|
|
9
|
-
c.call(e, t) && s(o, t, e[t]);
|
|
10
|
-
return o;
|
|
11
|
-
};
|
|
12
|
-
import { B as u } from "../chunks/util.DqFv_pWg.mjs";
|
|
13
|
-
import { VueCropper as f } from "vue-cropper";
|
|
14
|
-
import m from "vue";
|
|
15
|
-
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
16
|
-
const r = {
|
|
1
|
+
import { B as r } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
|
+
import { VueCropper as n } from "vue-cropper";
|
|
3
|
+
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const p = {
|
|
17
5
|
name: "ImageCropper",
|
|
18
6
|
components: {
|
|
19
|
-
VueCropper:
|
|
7
|
+
VueCropper: n
|
|
20
8
|
},
|
|
21
9
|
data() {
|
|
22
10
|
return {
|
|
@@ -49,7 +37,7 @@ const r = {
|
|
|
49
37
|
this.visible = !1, this.$refs.cropper.getCropData((o) => {
|
|
50
38
|
var t, i;
|
|
51
39
|
let e = o;
|
|
52
|
-
this.option.type === "file" && (e =
|
|
40
|
+
this.option.type === "file" && (e = r(o, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), (i = (t = this.option).callback) == null || i.call(t, e);
|
|
53
41
|
});
|
|
54
42
|
},
|
|
55
43
|
cancel(o) {
|
|
@@ -57,49 +45,10 @@ const r = {
|
|
|
57
45
|
o == null || o(), this.visible = !1, (t = (e = this.option).cancel) == null || t.call(e), typeof this.option.beforeClose == "function" && this.option.beforeClose(), this.$destroy(), this.$el.remove();
|
|
58
46
|
}
|
|
59
47
|
}
|
|
60
|
-
}, d = (o = {}) => {
|
|
61
|
-
const e = m.extend(r), t = a({
|
|
62
|
-
outputSize: 1,
|
|
63
|
-
// 裁剪生成图片的质量(可选0.1 - 1)
|
|
64
|
-
outputType: "jpeg",
|
|
65
|
-
// 裁剪生成图片的格式(jpeg || png || webp)
|
|
66
|
-
info: !0,
|
|
67
|
-
// 图片大小信息
|
|
68
|
-
canScale: !0,
|
|
69
|
-
// 图片是否允许滚轮缩放
|
|
70
|
-
autoCrop: !0,
|
|
71
|
-
// 是否默认生成截图框
|
|
72
|
-
fixed: !1,
|
|
73
|
-
// 是否开启截图框宽高固定比例
|
|
74
|
-
full: !1,
|
|
75
|
-
// false按原比例裁切图片,不失真
|
|
76
|
-
fixedBox: !1,
|
|
77
|
-
// 固定截图框大小,不允许改变
|
|
78
|
-
canMove: !0,
|
|
79
|
-
// 上传图片是否可以移动
|
|
80
|
-
canMoveBox: !0,
|
|
81
|
-
// 截图框能否拖动
|
|
82
|
-
original: !1,
|
|
83
|
-
// 上传图片按照原始比例渲染
|
|
84
|
-
centerBox: !0,
|
|
85
|
-
// 截图框是否被限制在图片里面
|
|
86
|
-
height: !0,
|
|
87
|
-
// 是否按照设备的dpr 输出等比例图片
|
|
88
|
-
infoTrue: !1,
|
|
89
|
-
// true为展示真实输出图片宽高,false展示看到的截图框宽高
|
|
90
|
-
enlarge: 1
|
|
91
|
-
}, o), i = new e({
|
|
92
|
-
data: {
|
|
93
|
-
option: t
|
|
94
|
-
}
|
|
95
|
-
}).$mount();
|
|
96
|
-
return document.body.appendChild(i.$el), i.show(), i;
|
|
97
48
|
};
|
|
98
|
-
|
|
99
|
-
const v = r;
|
|
100
|
-
var g = function() {
|
|
49
|
+
var a = function() {
|
|
101
50
|
var e = this, t = e._self._c;
|
|
102
|
-
return
|
|
51
|
+
return t("ElementDialog", { staticClass: "avue-cropper", attrs: { visible: e.visible, "before-close": e.cancel, title: "图片剪裁", "close-on-press-escape": !1, "close-on-click-modal": !1, "modal-append-to-body": e.$AVUE.modalAppendToBody, "append-to-body": e.$AVUE.appendToBody, width: "1000px" }, on: { "update:visible": function(i) {
|
|
103
52
|
e.visible = i;
|
|
104
53
|
} }, scopedSlots: e._u([{ key: "footer", fn: function() {
|
|
105
54
|
return [t("ElButton", { attrs: { size: "small", type: "primary" }, on: { click: e.submit } }, [e._v(" 确 定 ")]), t("ElButton", { attrs: { size: "small" }, on: { click: function(i) {
|
|
@@ -110,15 +59,15 @@ var g = function() {
|
|
|
110
59
|
} } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-out" }, on: { click: function(i) {
|
|
111
60
|
return e.changeScale(-1);
|
|
112
61
|
} } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-left" }, on: { click: e.rotateLeft } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-right" }, on: { click: e.rotateRight } })], 1)]), t("div", { staticClass: "show-preview" }, [t("div", { staticClass: "preview", style: e.previews.div }, [t("img", { style: e.previews.img, attrs: { src: e.previews.url, alt: "" } })])])])]);
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
62
|
+
}, l = [], c = /* @__PURE__ */ s(
|
|
63
|
+
p,
|
|
64
|
+
a,
|
|
65
|
+
l,
|
|
117
66
|
!1,
|
|
118
67
|
null,
|
|
119
68
|
null
|
|
120
69
|
);
|
|
121
|
-
const
|
|
70
|
+
const h = c.exports;
|
|
122
71
|
export {
|
|
123
|
-
|
|
72
|
+
h as default
|
|
124
73
|
};
|
package/image-preview/index.mjs
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
for (var t in e || (e = {}))
|
|
6
|
-
h.call(e, t) && r(i, t, e[t]);
|
|
7
|
-
if (l)
|
|
8
|
-
for (var t of l(e))
|
|
9
|
-
v.call(e, t) && r(i, t, e[t]);
|
|
10
|
-
return i;
|
|
11
|
-
};
|
|
12
|
-
import { i as _ } from "../chunks/util.DqFv_pWg.mjs";
|
|
13
|
-
import { setPx as u } from "@web-utils/core";
|
|
14
|
-
import f from "vue";
|
|
15
|
-
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
16
|
-
const o = {
|
|
1
|
+
import { i as r } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
|
+
import { setPx as o } from "@web-utils/core";
|
|
3
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const u = {
|
|
17
5
|
name: "ImagePreview",
|
|
18
6
|
data() {
|
|
19
7
|
return {
|
|
@@ -30,8 +18,8 @@ const o = {
|
|
|
30
18
|
computed: {
|
|
31
19
|
styleBoxName() {
|
|
32
20
|
return {
|
|
33
|
-
marginLeft:
|
|
34
|
-
marginTop:
|
|
21
|
+
marginLeft: o(this.left),
|
|
22
|
+
marginTop: o(this.top)
|
|
35
23
|
};
|
|
36
24
|
},
|
|
37
25
|
styleName() {
|
|
@@ -65,7 +53,7 @@ const o = {
|
|
|
65
53
|
});
|
|
66
54
|
},
|
|
67
55
|
isMediaType(i) {
|
|
68
|
-
return
|
|
56
|
+
return r(i.url, i.type);
|
|
69
57
|
},
|
|
70
58
|
subScale() {
|
|
71
59
|
this.scale !== 0.2 && (this.scale = parseFloat((this.scale - 0.2).toFixed(2)));
|
|
@@ -80,8 +68,8 @@ const o = {
|
|
|
80
68
|
let e = i.clientX, t = i.clientY;
|
|
81
69
|
const s = 2;
|
|
82
70
|
document.onmousemove = (a) => {
|
|
83
|
-
const n = a.clientX - e,
|
|
84
|
-
e = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top +
|
|
71
|
+
const n = a.clientX - e, l = a.clientY - t;
|
|
72
|
+
e = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + l * s;
|
|
85
73
|
}, document.onmouseup = () => {
|
|
86
74
|
document.onmousemove = null, document.onmouseup = null;
|
|
87
75
|
};
|
|
@@ -93,26 +81,10 @@ const o = {
|
|
|
93
81
|
this.isShow = !1, typeof this.ops.beforeClose == "function" && this.ops.beforeClose(this.datas, this.index), this.$destroy(), this.$el.remove();
|
|
94
82
|
}
|
|
95
83
|
}
|
|
96
|
-
}, g = (i = [], e = 0, t = {}) => {
|
|
97
|
-
const s = f.extend(o), a = {
|
|
98
|
-
datas: i,
|
|
99
|
-
index: e,
|
|
100
|
-
ops: c({
|
|
101
|
-
closeOnClickModal: !1,
|
|
102
|
-
beforeClose: null,
|
|
103
|
-
click: null,
|
|
104
|
-
modal: !0
|
|
105
|
-
}, t)
|
|
106
|
-
}, n = new s({
|
|
107
|
-
data: a
|
|
108
|
-
}).$mount();
|
|
109
|
-
return document.body.appendChild(n.$el), n.isShow = !0, n;
|
|
110
84
|
};
|
|
111
|
-
|
|
112
|
-
const w = o;
|
|
113
|
-
var C = function() {
|
|
85
|
+
var d = function() {
|
|
114
86
|
var e = this, t = e._self._c;
|
|
115
|
-
return e.
|
|
87
|
+
return e.isShow ? t("div", { staticClass: "avue-image-preview" }, [e.ops.modal ? t("div", { staticClass: "avue-image-preview__mask", on: { click: e.close } }) : e._e(), t("span", { staticClass: "el-image-viewer__btn el-image-viewer__close", on: { click: e.close } }, [t("i", { staticClass: "el-icon-circle-close" })]), e.isRrrow ? t("span", { staticClass: "el-image-viewer__btn el-image-viewer__prev", on: { click: function(s) {
|
|
116
88
|
return e.handlePrev();
|
|
117
89
|
} } }, [t("i", { staticClass: "el-icon-arrow-left" })]) : e._e(), e.isRrrow ? t("span", { staticClass: "el-image-viewer__btn el-image-viewer__next", on: { click: function(s) {
|
|
118
90
|
return e.handleNext();
|
|
@@ -130,15 +102,15 @@ var C = function() {
|
|
|
130
102
|
} } }), t("i", { staticClass: "el-icon-refresh-right", on: { click: function(s) {
|
|
131
103
|
e.rotate = e.rotate + 90;
|
|
132
104
|
} } })])])]) : e._e();
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
105
|
+
}, h = [], m = /* @__PURE__ */ c(
|
|
106
|
+
u,
|
|
107
|
+
d,
|
|
108
|
+
h,
|
|
137
109
|
!1,
|
|
138
110
|
null,
|
|
139
111
|
null
|
|
140
112
|
);
|
|
141
|
-
const
|
|
113
|
+
const p = m.exports;
|
|
142
114
|
export {
|
|
143
|
-
|
|
115
|
+
p as default
|
|
144
116
|
};
|
package/image-preview/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-img--center{justify-content:center;align-items:center;display:flex}.avue-img--fullscreen .el-dialog__body{height:100%}.avue-image-preview{z-index:9998;width:100%;height:100%;transition:all .5s;position:fixed;top:0;left:0}.avue-image-preview .el-image-viewer__close i{color:#fff}.avue-image-preview .el-image-viewer__btn{z-index:1024}.avue-image-preview img{cursor:pointer;transition:all .5s}.avue-image-preview__file{text-align:center}.avue-image-preview__file a{color:#fff}.avue-image-preview__file i{cursor:pointer;font-size:80px}.avue-image-preview__mask{background
|
|
1
|
+
.avue-img--center{justify-content:center;align-items:center;display:flex}.avue-img--fullscreen .el-dialog__body{height:100%}.avue-image-preview{z-index:9998;width:100%;height:100%;transition:all .5s;position:fixed;top:0;left:0}.avue-image-preview .el-image-viewer__close i{color:#fff}.avue-image-preview .el-image-viewer__btn{z-index:1024}.avue-image-preview img{cursor:pointer;transition:all .5s}.avue-image-preview__file{text-align:center}.avue-image-preview__file a{color:#fff}.avue-image-preview__file i{cursor:pointer;font-size:80px}.avue-image-preview__mask{background:#00000080;width:100%;height:100%;position:absolute;top:0;left:0}.avue-image-preview__box{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.avue-image-preview__box .el-carousel{width:90%;height:100%}.avue-image-preview__box .el-carousel__container{height:100%}.avue-image-preview__box .el-carousel__item{justify-content:center;align-items:center;width:100%;height:100%;display:flex}
|
package/image-viewer/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.image-viewer .image-item{cursor:pointer;background-color
|
|
1
|
+
.image-viewer .image-item{cursor:pointer;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:cover;border:none;outline:none;width:100px;height:100px;display:inline-block}.viewer-backdrop{background-color:#5e5e5e}
|