@web-utils/component 3.0.6 → 3.1.0
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 +20 -57
- package/affix/index.mjs +26 -47
- package/aside-menu/index.mjs +18 -43
- package/avatar/index.mjs +27 -49
- package/awesome-button/index.mjs +35 -43
- package/capsule-tab/index.mjs +16 -34
- package/card/index.mjs +21 -76
- package/carousel/index.mjs +14 -49
- package/chat/index.mjs +104 -414
- package/chunk-file-uploader/index.mjs +21 -38
- package/chunks/FormTemp.aa57efb4.mjs +125 -0
- package/code-mirror-editor/index.mjs +69 -79
- package/color-picker/index.mjs +29 -60
- package/comment/index.mjs +17 -48
- package/confirm-button/index.mjs +11 -19
- package/confirmable/index.mjs +12 -20
- package/context-menu/index.mjs +42 -144
- package/count-up/index.mjs +18 -25
- package/custom-scrollbar/index.mjs +13 -22
- package/data-box/index.mjs +15 -66
- package/data-card/index.mjs +16 -65
- package/data-cardtext/index.mjs +16 -52
- package/data-display/index.mjs +18 -62
- package/data-icons/index.mjs +16 -68
- package/data-imgtext/index.mjs +18 -79
- package/data-operatext/index.mjs +18 -75
- package/data-panel/index.mjs +16 -63
- package/data-pay/index.mjs +20 -122
- package/data-price/index.mjs +18 -60
- package/data-progress/index.mjs +16 -67
- package/data-rotate/index.mjs +16 -66
- package/data-table-picker/index.mjs +25 -88
- package/data-tabs/index.mjs +16 -64
- package/dialog-form/index.mjs +48 -94
- package/dynamic-table/index.mjs +43 -127
- package/e-charts/index.mjs +21 -34
- package/easy-popup/index.mjs +35 -61
- package/editable-progress/index.mjs +22 -77
- package/editable-tree/index.mjs +235 -546
- package/egd-collapse/index.mjs +13 -26
- package/egd-collapse-item/index.mjs +27 -87
- package/element-dialog/index.mjs +69 -133
- package/empty-view/index.mjs +13 -33
- package/error-view/index.mjs +14 -34
- package/flex-column/index.mjs +15 -23
- package/flex-item/index.mjs +18 -26
- package/flex-row/index.mjs +23 -31
- package/flex-scroller/index.mjs +16 -27
- package/flow/index.mjs +70 -110
- package/flow-designer/index.mjs +1215 -4804
- package/flow-node/index.mjs +15 -51
- package/flow-viewer/index.mjs +64 -89
- package/form-block/index.mjs +43 -62
- package/form-button/index.mjs +10 -18
- package/form-cascader/index.mjs +49 -100
- package/form-checkbox-group/index.mjs +43 -110
- package/form-date-picker/index.mjs +51 -97
- package/form-holder/index.mjs +25 -42
- package/form-input/index.mjs +40 -90
- package/form-input-email/index.mjs +35 -79
- package/form-input-id-card/index.mjs +40 -87
- package/form-input-number/index.mjs +42 -102
- package/form-input-phone-number/index.mjs +34 -75
- package/form-input-tag/index.mjs +31 -73
- package/form-input-time/index.mjs +42 -87
- package/form-item/index.mjs +70 -89
- package/form-item-config-provider/index.mjs +12 -20
- package/form-item-group/index.mjs +46 -65
- package/form-radio-group/index.mjs +50 -108
- package/form-select/index.mjs +44 -95
- package/form-switch/index.mjs +38 -85
- package/form-textarea/index.mjs +31 -75
- package/form-view/index.mjs +112 -260
- package/fy-array/index.mjs +35 -121
- package/fy-article/index.mjs +12 -43
- package/fy-cascader/index.mjs +26 -67
- package/fy-checkbox/index.mjs +27 -77
- package/fy-code/index.mjs +19 -33
- package/fy-curd/index.mjs +810 -2017
- package/fy-date/index.mjs +18 -59
- package/fy-draggable/index.mjs +81 -140
- package/fy-dynamic/index.mjs +85 -204
- package/fy-empty/index.mjs +14 -35
- package/fy-form/index.mjs +254 -571
- package/fy-form-design/index.mjs +1489 -6084
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +34 -104
- package/fy-input-color/index.mjs +22 -67
- package/fy-input-icon/index.mjs +37 -122
- package/fy-input-map/index.mjs +57 -149
- package/fy-input-number/index.mjs +18 -53
- package/fy-input-table/index.mjs +36 -102
- package/fy-input-tree/index.mjs +51 -138
- package/fy-progress/index.mjs +12 -31
- package/fy-radio/index.mjs +20 -51
- package/fy-rate/index.mjs +18 -51
- package/fy-select/index.mjs +49 -134
- package/fy-slider/index.mjs +19 -52
- package/fy-switch/index.mjs +18 -48
- package/fy-tabs/index.mjs +19 -51
- package/fy-time/index.mjs +22 -62
- package/fy-title/index.mjs +14 -25
- package/fy-tree/index.mjs +74 -216
- package/fy-u-editor/index.mjs +50 -64
- package/fy-upload/index.mjs +167 -338
- package/guide-steps/index.mjs +33 -53
- package/highlight-j-s/index.mjs +13 -27
- package/icon-card/index.mjs +12 -36
- package/icon-temp/index.mjs +12 -34
- package/iframe-window/index.mjs +13 -40
- package/image-cropper/index.mjs +46 -171
- package/image-preview/index.mjs +54 -168
- package/image-viewer/index.mjs +24 -50
- package/index.css +1 -0
- package/index.mjs +3973 -501
- package/input-number/index.mjs +84 -173
- package/input-number-range/index.mjs +20 -70
- package/j-s-x-component/index.mjs +3 -3
- package/keep-view-alive/index.mjs +47 -55
- package/keyboard/index.mjs +100 -113
- package/license/index.mjs +34 -51
- package/loading-view/index.mjs +14 -34
- package/login/index.mjs +33 -161
- package/monaco-editor/index.mjs +13 -21
- package/name-avatar/index.mjs +13 -32
- package/nav-bar/index.mjs +12 -31
- package/not-implement/index.mjs +14 -25
- package/notice/index.mjs +32 -80
- package/package.json +1 -1
- package/page/index.mjs +11 -23
- package/page-header/index.mjs +16 -37
- package/page-index/index.mjs +42 -93
- package/page-index-top/index.mjs +42 -84
- package/page-skeleton/index.mjs +24 -39
- package/page-skeleton-new/index.mjs +21 -68
- package/pageable-table/index.mjs +105 -227
- package/pageable-view/index.mjs +30 -83
- package/photo-swipe/index.mjs +62 -87
- package/present-view/index.mjs +114 -267
- package/queue/index.mjs +14 -29
- package/record-video/index.mjs +29 -66
- package/resize-observer/index.mjs +18 -30
- package/search/index.mjs +47 -81
- package/search-popover/index.mjs +57 -329
- package/sign/index.mjs +43 -60
- package/sign-panel/index.mjs +40 -151
- package/skeleton/index.mjs +18 -44
- package/split-pane/index.mjs +45 -129
- package/stateful/index.mjs +18 -26
- package/static-pageable-table/index.mjs +18 -44
- package/swiper/index.mjs +53 -94
- package/tab/index.mjs +13 -39
- package/tab-item/index.mjs +23 -37
- package/table-column/index.mjs +27 -35
- package/table-view/index.mjs +89 -209
- package/tag-render/index.mjs +34 -69
- package/text-ellipsis/index.mjs +22 -47
- package/tinymce-editor/index.mjs +174 -285
- package/toolbar/index.mjs +21 -42
- package/toolbar-button/index.mjs +25 -54
- package/verify/index.mjs +16 -29
- package/vue-cron/index.mjs +272 -1089
- package/vue-qr-code/index.mjs +19 -27
- package/vue-quill-editor/index.mjs +15 -27
- package/vue-tags-input/index.mjs +104 -224
- package/vue-tree-select/index.mjs +595 -742
- package/vue-video-player/index.mjs +42 -57
- package/watermark/index.mjs +27 -35
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +50 -112
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
package/sign-panel/index.mjs
CHANGED
|
@@ -1,123 +1,5 @@
|
|
|
1
|
-
import { n } from "../chunks/
|
|
2
|
-
|
|
3
|
-
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
4
|
-
return i("div", {
|
|
5
|
-
staticClass: "sign-panel flex-column"
|
|
6
|
-
}, [i("div", {
|
|
7
|
-
directives: [{
|
|
8
|
-
name: "show",
|
|
9
|
-
rawName: "v-show",
|
|
10
|
-
value: !t.disabled && t.edit,
|
|
11
|
-
expression: "!disabled && edit"
|
|
12
|
-
}],
|
|
13
|
-
staticClass: "sign-edit"
|
|
14
|
-
}, [i("div", {
|
|
15
|
-
staticClass: "sign-draw-area",
|
|
16
|
-
style: {
|
|
17
|
-
width: `${t.width + 2}px`,
|
|
18
|
-
height: `${t.height + 2}px`
|
|
19
|
-
}
|
|
20
|
-
}, [i("div", {
|
|
21
|
-
staticClass: "sign-watermark",
|
|
22
|
-
style: {
|
|
23
|
-
fontSize: `${t.fontSize}px`
|
|
24
|
-
}
|
|
25
|
-
}, [t._v(" " + t._s(t.text) + " ")]), i("canvas", {
|
|
26
|
-
ref: "canvas",
|
|
27
|
-
staticClass: "sign-canvas",
|
|
28
|
-
attrs: {
|
|
29
|
-
width: t.width,
|
|
30
|
-
height: t.height
|
|
31
|
-
},
|
|
32
|
-
on: {
|
|
33
|
-
touchstart: function(s) {
|
|
34
|
-
return s.stopPropagation(), t.touchstart.apply(null, arguments);
|
|
35
|
-
},
|
|
36
|
-
touchmove: function(s) {
|
|
37
|
-
return s.stopPropagation(), t.touchmove.apply(null, arguments);
|
|
38
|
-
},
|
|
39
|
-
mousedown: function(s) {
|
|
40
|
-
return s.stopPropagation(), t.down.apply(null, arguments);
|
|
41
|
-
},
|
|
42
|
-
touchend: function(s) {
|
|
43
|
-
return s.stopPropagation(), t.touchend.apply(null, arguments);
|
|
44
|
-
},
|
|
45
|
-
mouseup: function(s) {
|
|
46
|
-
return s.stopPropagation(), t.up.apply(null, arguments);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}, [t._v("当前浏览器不支持手写签名 ")])]), i("div", {
|
|
50
|
-
staticClass: "sign-tool-bar"
|
|
51
|
-
}, [i("div", {
|
|
52
|
-
staticClass: "sign-button flex-item",
|
|
53
|
-
staticStyle: {
|
|
54
|
-
color: "red"
|
|
55
|
-
},
|
|
56
|
-
on: {
|
|
57
|
-
click: t.clear
|
|
58
|
-
}
|
|
59
|
-
}, [i("i", {
|
|
60
|
-
staticClass: "fa fa-trash"
|
|
61
|
-
}), t._v(" 清除")]), i("div", {
|
|
62
|
-
staticClass: "sign-button flex-item",
|
|
63
|
-
staticStyle: {
|
|
64
|
-
color: "red"
|
|
65
|
-
},
|
|
66
|
-
on: {
|
|
67
|
-
click: t.cancel
|
|
68
|
-
}
|
|
69
|
-
}, [i("i", {
|
|
70
|
-
staticClass: "fa fa-close"
|
|
71
|
-
}), t._v(" 取消")]), i("div", {
|
|
72
|
-
staticClass: "sign-button flex-item",
|
|
73
|
-
staticStyle: {
|
|
74
|
-
color: "orange"
|
|
75
|
-
},
|
|
76
|
-
on: {
|
|
77
|
-
click: t.rollback
|
|
78
|
-
}
|
|
79
|
-
}, [i("i", {
|
|
80
|
-
staticClass: "fa fa-repeat"
|
|
81
|
-
}), t._v(" 撤销 ")]), i("div", {
|
|
82
|
-
staticClass: "sign-button flex-item",
|
|
83
|
-
staticStyle: {
|
|
84
|
-
color: "green"
|
|
85
|
-
},
|
|
86
|
-
on: {
|
|
87
|
-
click: t.save
|
|
88
|
-
}
|
|
89
|
-
}, [i("i", {
|
|
90
|
-
staticClass: "fa fa-check"
|
|
91
|
-
}), t._v(" 确定")])])]), i("div", {
|
|
92
|
-
directives: [{
|
|
93
|
-
name: "show",
|
|
94
|
-
rawName: "v-show",
|
|
95
|
-
value: t.disabled || !t.edit,
|
|
96
|
-
expression: "disabled || !edit"
|
|
97
|
-
}],
|
|
98
|
-
staticClass: "sign-view",
|
|
99
|
-
style: {
|
|
100
|
-
cursor: t.disabled ? "not-allowed" : "pointer"
|
|
101
|
-
},
|
|
102
|
-
on: {
|
|
103
|
-
click: t.showSign
|
|
104
|
-
}
|
|
105
|
-
}, [t.value ? i("img", {
|
|
106
|
-
staticClass: "sign-image",
|
|
107
|
-
attrs: {
|
|
108
|
-
src: t.value,
|
|
109
|
-
alt: "签名"
|
|
110
|
-
}
|
|
111
|
-
}) : t._e(), t.value ? t._e() : i("p", {
|
|
112
|
-
staticClass: "sign-tips",
|
|
113
|
-
style: {
|
|
114
|
-
color: !t.value && t.disabled ? "red" : ""
|
|
115
|
-
}
|
|
116
|
-
}, [t._v(" " + t._s(t.disabled ? "未签名" : "点击进行签名") + " ")]), t.disabled ? t._e() : i("i", {
|
|
117
|
-
staticClass: "el-icon-edit-outline sign-edit-icon"
|
|
118
|
-
})])]);
|
|
119
|
-
}, l = [];
|
|
120
|
-
const c = {
|
|
1
|
+
import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
|
+
const n = {
|
|
121
3
|
name: "SignPanel",
|
|
122
4
|
props: {
|
|
123
5
|
width: {
|
|
@@ -164,15 +46,15 @@ const c = {
|
|
|
164
46
|
},
|
|
165
47
|
rollback() {
|
|
166
48
|
if (this.stack.length > 0) {
|
|
167
|
-
const
|
|
168
|
-
this.ctx.putImageData(
|
|
49
|
+
const i = this.stack[this.stack.length - 1];
|
|
50
|
+
this.ctx.putImageData(i, 0, 0), this.stack.length = this.stack.length - 1;
|
|
169
51
|
}
|
|
170
52
|
},
|
|
171
53
|
// 位置初始化
|
|
172
54
|
position() {
|
|
173
55
|
this.restorePoint = this.ctx.getImageData(0, 0, this.canvas.width, this.canvas.height);
|
|
174
|
-
const
|
|
175
|
-
this.start =
|
|
56
|
+
const i = this.canvas.getBoundingClientRect();
|
|
57
|
+
this.start = i.left, this.end = i.top;
|
|
176
58
|
},
|
|
177
59
|
// 画布初始化
|
|
178
60
|
canvasInit() {
|
|
@@ -185,32 +67,32 @@ const c = {
|
|
|
185
67
|
this.ctx.font = `${this.fontSize}px bold 黑体`, this.ctx.fillStyle = "#eee", this.ctx.textAlign = "center", this.ctx.shadowBlur = 1, this.ctx.textBaseline = "middle", this.ctx.fillText(this.text, this.width / 2, this.height / 2);
|
|
186
68
|
},
|
|
187
69
|
// PC 端鼠标按下开始绘画
|
|
188
|
-
down(
|
|
189
|
-
this.position(), this.startLine(
|
|
70
|
+
down(i) {
|
|
71
|
+
this.position(), this.startLine(i.clientX, i.clientY, i), this.target = i.target, this.target.addEventListener("mousemove", this.move), window.addEventListener("mouseup", this.up);
|
|
190
72
|
},
|
|
191
73
|
// PC 端鼠标按下开始绘画后,跟踪移动轨迹
|
|
192
|
-
move(
|
|
193
|
-
this.moveLine(
|
|
74
|
+
move(i) {
|
|
75
|
+
this.moveLine(i.clientX, i.clientY, i);
|
|
194
76
|
},
|
|
195
77
|
// PC 端鼠标松开结束绘画
|
|
196
78
|
up() {
|
|
197
79
|
this.target && this.target.removeEventListener("mousemove", this.move), window.removeEventListener("mouseup", this.up), this.record();
|
|
198
80
|
},
|
|
199
81
|
// 移动端触摸开始绘画
|
|
200
|
-
touchstart(
|
|
201
|
-
this.position(), this.startLine(
|
|
82
|
+
touchstart(i) {
|
|
83
|
+
this.position(), this.startLine(i.changedTouches[0].clientX, i.changedTouches[0].clientY, i);
|
|
202
84
|
},
|
|
203
85
|
// 移动端触摸开始绘画后,跟踪滑动轨迹
|
|
204
|
-
touchmove(
|
|
205
|
-
this.moveLine(
|
|
86
|
+
touchmove(i) {
|
|
87
|
+
this.moveLine(i.touches[0].clientX, i.touches[0].clientY, i);
|
|
206
88
|
},
|
|
207
89
|
// 开始绘画
|
|
208
|
-
startLine(
|
|
209
|
-
this.ctx.beginPath(),
|
|
90
|
+
startLine(i, t) {
|
|
91
|
+
this.ctx.beginPath(), i -= this.start, t -= this.end, this.ctx.moveTo(i, t);
|
|
210
92
|
},
|
|
211
93
|
// 绘制移动轨迹
|
|
212
|
-
moveLine(
|
|
213
|
-
|
|
94
|
+
moveLine(i, t, s) {
|
|
95
|
+
s && s.preventDefault(), i -= this.start, t -= this.end, this.ctx.lineTo(i, t), this.ctx.stroke();
|
|
214
96
|
},
|
|
215
97
|
clear() {
|
|
216
98
|
this.ctx.clearRect(0, 0, this.width, this.height);
|
|
@@ -225,31 +107,38 @@ const c = {
|
|
|
225
107
|
this.stack.push(this.restorePoint);
|
|
226
108
|
},
|
|
227
109
|
save() {
|
|
228
|
-
const
|
|
229
|
-
this.blank ===
|
|
110
|
+
const i = this.canvas.toDataURL("image/png");
|
|
111
|
+
this.blank === i ? this.$emit("input", "") : this.$emit("input", i), this.edit = !1, this.stack.length = 0, this.ctx.clearRect(0, 0, this.width, this.height);
|
|
230
112
|
},
|
|
231
113
|
showSign() {
|
|
232
114
|
this.disabled || (this.edit = !0);
|
|
233
115
|
}
|
|
234
116
|
}
|
|
235
|
-
}
|
|
236
|
-
var
|
|
237
|
-
|
|
238
|
-
|
|
117
|
+
};
|
|
118
|
+
var l = function() {
|
|
119
|
+
var t = this, s = t._self._c;
|
|
120
|
+
return s("div", { staticClass: "sign-panel flex-column" }, [s("div", { directives: [{ name: "show", rawName: "v-show", value: !t.disabled && t.edit, expression: "!disabled && edit" }], staticClass: "sign-edit" }, [s("div", { staticClass: "sign-draw-area", style: { width: `${t.width + 2}px`, height: `${t.height + 2}px` } }, [s("div", { staticClass: "sign-watermark", style: { fontSize: `${t.fontSize}px` } }, [t._v(" " + t._s(t.text) + " ")]), s("canvas", { ref: "canvas", staticClass: "sign-canvas", attrs: { width: t.width, height: t.height }, on: { touchstart: function(e) {
|
|
121
|
+
return e.stopPropagation(), t.touchstart.apply(null, arguments);
|
|
122
|
+
}, touchmove: function(e) {
|
|
123
|
+
return e.stopPropagation(), t.touchmove.apply(null, arguments);
|
|
124
|
+
}, mousedown: function(e) {
|
|
125
|
+
return e.stopPropagation(), t.down.apply(null, arguments);
|
|
126
|
+
}, touchend: function(e) {
|
|
127
|
+
return e.stopPropagation(), t.touchend.apply(null, arguments);
|
|
128
|
+
}, mouseup: function(e) {
|
|
129
|
+
return e.stopPropagation(), t.up.apply(null, arguments);
|
|
130
|
+
} } }, [t._v("当前浏览器不支持手写签名 ")])]), s("div", { staticClass: "sign-tool-bar" }, [s("div", { staticClass: "sign-button flex-item", staticStyle: { color: "red" }, on: { click: t.clear } }, [s("i", { staticClass: "fa fa-trash" }), t._v(" 清除")]), s("div", { staticClass: "sign-button flex-item", staticStyle: { color: "red" }, on: { click: t.cancel } }, [s("i", { staticClass: "fa fa-close" }), t._v(" 取消")]), s("div", { staticClass: "sign-button flex-item", staticStyle: { color: "orange" }, on: { click: t.rollback } }, [s("i", { staticClass: "fa fa-repeat" }), t._v(" 撤销 ")]), s("div", { staticClass: "sign-button flex-item", staticStyle: { color: "green" }, on: { click: t.save } }, [s("i", { staticClass: "fa fa-check" }), t._v(" 确定")])])]), s("div", { directives: [{ name: "show", rawName: "v-show", value: t.disabled || !t.edit, expression: "disabled || !edit" }], staticClass: "sign-view", style: { cursor: t.disabled ? "not-allowed" : "pointer" }, on: { click: t.showSign } }, [t.value ? s("img", { staticClass: "sign-image", attrs: { src: t.value, alt: "签名" } }) : t._e(), t.value ? t._e() : s("p", { staticClass: "sign-tips", style: { color: !t.value && t.disabled ? "red" : "" } }, [t._v(" " + t._s(t.disabled ? "未签名" : "点击进行签名") + " ")]), t.disabled ? t._e() : s("i", { staticClass: "el-icon-edit-outline sign-edit-icon" })])]);
|
|
131
|
+
}, o = [], c = /* @__PURE__ */ a(
|
|
132
|
+
n,
|
|
239
133
|
l,
|
|
134
|
+
o,
|
|
240
135
|
!1,
|
|
241
|
-
|
|
136
|
+
null,
|
|
242
137
|
null,
|
|
243
138
|
null,
|
|
244
139
|
null
|
|
245
140
|
);
|
|
246
|
-
|
|
247
|
-
for (let e in a)
|
|
248
|
-
this[e] = a[e];
|
|
249
|
-
}
|
|
250
|
-
const u = /* @__PURE__ */ function() {
|
|
251
|
-
return h.exports;
|
|
252
|
-
}();
|
|
141
|
+
const r = c.exports;
|
|
253
142
|
export {
|
|
254
|
-
|
|
143
|
+
r as default
|
|
255
144
|
};
|
package/skeleton/index.mjs
CHANGED
|
@@ -1,32 +1,5 @@
|
|
|
1
|
-
import { n
|
|
2
|
-
|
|
3
|
-
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
4
|
-
return t("div", {
|
|
5
|
-
staticClass: "avue-skeleton"
|
|
6
|
-
}, [e.loading ? e._l(e.number, function(d, n) {
|
|
7
|
-
return t("div", {
|
|
8
|
-
key: n,
|
|
9
|
-
staticClass: "avue-skeleton__item"
|
|
10
|
-
}, [t("div", {
|
|
11
|
-
staticClass: "avue-skeleton__header"
|
|
12
|
-
}, [e.avatar ? t("span", {
|
|
13
|
-
staticClass: "avue-skeleton__vatar'),className]"
|
|
14
|
-
}) : e._e()]), t("div", {
|
|
15
|
-
staticClass: "avue-skeleton__content"
|
|
16
|
-
}, [t("h3", {
|
|
17
|
-
class: ["avue-skeleton__title", e.className]
|
|
18
|
-
}), t("div", {
|
|
19
|
-
staticClass: "avue-skeleton__list"
|
|
20
|
-
}, e._l(e.rows, function(m, l) {
|
|
21
|
-
return t("p", {
|
|
22
|
-
key: l,
|
|
23
|
-
class: ["avue-skeleton__li", e.className],
|
|
24
|
-
style: e.styleName
|
|
25
|
-
});
|
|
26
|
-
}), 0)])]);
|
|
27
|
-
}) : t("div", [e._t("default")], 2)], 2);
|
|
28
|
-
}, _ = [];
|
|
29
|
-
const i = "avue-skeleton", u = {
|
|
1
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
|
+
const o = "avue-skeleton", _ = {
|
|
30
3
|
name: "Skeleton",
|
|
31
4
|
props: {
|
|
32
5
|
loading: {
|
|
@@ -55,28 +28,29 @@ const i = "avue-skeleton", u = {
|
|
|
55
28
|
} : {};
|
|
56
29
|
},
|
|
57
30
|
className() {
|
|
58
|
-
const { active:
|
|
59
|
-
return { [`${
|
|
31
|
+
const { active: a } = this;
|
|
32
|
+
return { [`${o}__loading`]: a };
|
|
60
33
|
}
|
|
61
34
|
}
|
|
62
|
-
}
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
|
|
35
|
+
};
|
|
36
|
+
var r = function() {
|
|
37
|
+
var e = this, t = e._self._c;
|
|
38
|
+
return t("div", { staticClass: "avue-skeleton" }, [e.loading ? e._l(e.number, function(c, s) {
|
|
39
|
+
return t("div", { key: s, staticClass: "avue-skeleton__item" }, [t("div", { staticClass: "avue-skeleton__header" }, [e.avatar ? t("span", { staticClass: "avue-skeleton__vatar'),className]" }) : e._e()]), t("div", { staticClass: "avue-skeleton__content" }, [t("h3", { class: ["avue-skeleton__title", e.className] }), t("div", { staticClass: "avue-skeleton__list" }, e._l(e.rows, function(v, l) {
|
|
40
|
+
return t("p", { key: l, class: ["avue-skeleton__li", e.className], style: e.styleName });
|
|
41
|
+
}), 0)])]);
|
|
42
|
+
}) : t("div", [e._t("default")], 2)], 2);
|
|
43
|
+
}, i = [], u = /* @__PURE__ */ n(
|
|
66
44
|
_,
|
|
45
|
+
r,
|
|
46
|
+
i,
|
|
67
47
|
!1,
|
|
68
|
-
|
|
48
|
+
null,
|
|
69
49
|
null,
|
|
70
50
|
null,
|
|
71
51
|
null
|
|
72
52
|
);
|
|
73
|
-
|
|
74
|
-
for (let a in s)
|
|
75
|
-
this[a] = s[a];
|
|
76
|
-
}
|
|
77
|
-
const p = /* @__PURE__ */ function() {
|
|
78
|
-
return c.exports;
|
|
79
|
-
}();
|
|
53
|
+
const m = u.exports;
|
|
80
54
|
export {
|
|
81
|
-
|
|
55
|
+
m as default
|
|
82
56
|
};
|
package/split-pane/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
1
|
+
var l = (t, e, s) => new Promise((o, i) => {
|
|
2
2
|
var n = (r) => {
|
|
3
3
|
try {
|
|
4
4
|
a(s.next(r));
|
|
5
|
-
} catch (
|
|
6
|
-
i(
|
|
5
|
+
} catch (f) {
|
|
6
|
+
i(f);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, c = (r) => {
|
|
9
9
|
try {
|
|
10
10
|
a(s.throw(r));
|
|
11
|
-
} catch (
|
|
12
|
-
i(
|
|
11
|
+
} catch (f) {
|
|
12
|
+
i(f);
|
|
13
13
|
}
|
|
14
|
-
}, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(n,
|
|
14
|
+
}, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(n, c);
|
|
15
15
|
a((s = s.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { n as
|
|
18
|
-
import
|
|
17
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
18
|
+
import d from "@web-utils/component/resize-observer";
|
|
19
19
|
import "@web-utils/component/resize-observer/style.css";
|
|
20
|
-
function
|
|
20
|
+
function g(t, e) {
|
|
21
21
|
for (let s = 0; s < e.length; s++)
|
|
22
22
|
if (t === e[s])
|
|
23
23
|
return !0;
|
|
@@ -35,24 +35,7 @@ const h = function() {
|
|
|
35
35
|
} : function(t, e, s) {
|
|
36
36
|
t && e && t.detachEvent(`on${e}`, s);
|
|
37
37
|
};
|
|
38
|
-
}()
|
|
39
|
-
var x = function() {
|
|
40
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
41
|
-
return s("div", {
|
|
42
|
-
class: t.classes
|
|
43
|
-
}, [t.showIcon ? s("div", {
|
|
44
|
-
class: t.barConClasses
|
|
45
|
-
}, t._m(0), 0) : t._e()]);
|
|
46
|
-
}, _ = [function() {
|
|
47
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
48
|
-
return t._l(8, function(o) {
|
|
49
|
-
return s("i", {
|
|
50
|
-
key: `trigger-${o}`,
|
|
51
|
-
class: `${t.prefix}-bar`
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
}];
|
|
55
|
-
const $ = {
|
|
38
|
+
}(), m = {
|
|
56
39
|
name: "Trigger",
|
|
57
40
|
props: {
|
|
58
41
|
mode: String,
|
|
@@ -82,99 +65,31 @@ const $ = {
|
|
|
82
65
|
return [`${this.prefix}-bar-con`, this.isVertical ? "vertical" : "horizontal"];
|
|
83
66
|
}
|
|
84
67
|
}
|
|
85
|
-
}
|
|
86
|
-
var
|
|
87
|
-
|
|
68
|
+
};
|
|
69
|
+
var v = function() {
|
|
70
|
+
var e = this, s = e._self._c;
|
|
71
|
+
return s("div", { class: e.classes }, [e.showIcon ? s("div", { class: e.barConClasses }, e._m(0), 0) : e._e()]);
|
|
72
|
+
}, x = [function() {
|
|
73
|
+
var t = this, e = t._self._c;
|
|
74
|
+
return t._l(8, function(s) {
|
|
75
|
+
return e("i", { key: `trigger-${s}`, class: `${t.prefix}-bar` });
|
|
76
|
+
});
|
|
77
|
+
}], _ = /* @__PURE__ */ u(
|
|
78
|
+
m,
|
|
79
|
+
v,
|
|
88
80
|
x,
|
|
89
|
-
_,
|
|
90
81
|
!1,
|
|
91
|
-
|
|
82
|
+
null,
|
|
92
83
|
null,
|
|
93
84
|
null,
|
|
94
85
|
null
|
|
95
86
|
);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
this[e] = u[e];
|
|
99
|
-
}
|
|
100
|
-
const O = /* @__PURE__ */ function() {
|
|
101
|
-
return M.exports;
|
|
102
|
-
}();
|
|
103
|
-
var S = function() {
|
|
104
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
105
|
-
return s("div", {
|
|
106
|
-
ref: "outerWrapper",
|
|
107
|
-
class: t.wrapperClasses
|
|
108
|
-
}, [t.isHorizontal ? s("div", {
|
|
109
|
-
class: `${t.prefix}-horizontal`
|
|
110
|
-
}, [t.hideLeft ? s("div", {
|
|
111
|
-
class: [`${t.prefix}-pane`, "right-pane"],
|
|
112
|
-
staticStyle: {
|
|
113
|
-
left: "0"
|
|
114
|
-
}
|
|
115
|
-
}, [t._t("right")], 2) : [s("div", {
|
|
116
|
-
class: [`${t.prefix}-pane`, "left-pane"],
|
|
117
|
-
style: {
|
|
118
|
-
right: `${t.anotherOffset}%`
|
|
119
|
-
}
|
|
120
|
-
}, [t._t("left")], 2), s("div", {
|
|
121
|
-
class: `${t.prefix}-trigger-con`,
|
|
122
|
-
style: {
|
|
123
|
-
left: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
|
|
124
|
-
width: `${t.triggerSize}px`
|
|
125
|
-
},
|
|
126
|
-
on: {
|
|
127
|
-
mousedown: t.handleMousedown
|
|
128
|
-
}
|
|
129
|
-
}, [t._t("trigger", function() {
|
|
130
|
-
return [s("Trigger", {
|
|
131
|
-
attrs: {
|
|
132
|
-
mode: "vertical"
|
|
133
|
-
}
|
|
134
|
-
})];
|
|
135
|
-
})], 2), s("div", {
|
|
136
|
-
class: [`${t.prefix}-pane`, "right-pane"],
|
|
137
|
-
style: {
|
|
138
|
-
left: `calc(${t.offset}% + ${t.triggerSize}px)`
|
|
139
|
-
}
|
|
140
|
-
}, [t._t("right")], 2)]], 2) : s("div", {
|
|
141
|
-
class: `${t.prefix}-vertical`
|
|
142
|
-
}, [s("div", {
|
|
143
|
-
class: [`${t.prefix}-pane`, "top-pane"],
|
|
144
|
-
style: {
|
|
145
|
-
bottom: `${t.anotherOffset}%`
|
|
146
|
-
}
|
|
147
|
-
}, [t._t("top")], 2), s("div", {
|
|
148
|
-
class: `${t.prefix}-trigger-con`,
|
|
149
|
-
style: {
|
|
150
|
-
top: `calc(${t.offset}% + ${t.triggerSize / 2}px)`,
|
|
151
|
-
height: `${t.triggerSize}px`
|
|
152
|
-
},
|
|
153
|
-
on: {
|
|
154
|
-
mousedown: t.handleMousedown
|
|
155
|
-
}
|
|
156
|
-
}, [t._t("trigger", function() {
|
|
157
|
-
return [s("Trigger", {
|
|
158
|
-
attrs: {
|
|
159
|
-
mode: "horizontal"
|
|
160
|
-
}
|
|
161
|
-
})];
|
|
162
|
-
})], 2), s("div", {
|
|
163
|
-
class: [`${t.prefix}-pane`, "bottom-pane"],
|
|
164
|
-
style: {
|
|
165
|
-
top: `calc(${t.offset}% + ${t.triggerSize}px)`
|
|
166
|
-
}
|
|
167
|
-
}, [t._t("bottom")], 2)]), s("ResizeObserver", {
|
|
168
|
-
on: {
|
|
169
|
-
notify: t.resetOffset
|
|
170
|
-
}
|
|
171
|
-
})], 1);
|
|
172
|
-
}, w = [];
|
|
173
|
-
const y = {
|
|
87
|
+
const $ = _.exports;
|
|
88
|
+
const z = {
|
|
174
89
|
name: "SplitPane",
|
|
175
90
|
components: {
|
|
176
|
-
Trigger:
|
|
177
|
-
ResizeObserver:
|
|
91
|
+
Trigger: $,
|
|
92
|
+
ResizeObserver: d
|
|
178
93
|
},
|
|
179
94
|
props: {
|
|
180
95
|
value: {
|
|
@@ -183,7 +98,7 @@ const y = {
|
|
|
183
98
|
},
|
|
184
99
|
mode: {
|
|
185
100
|
validator(t) {
|
|
186
|
-
return
|
|
101
|
+
return g(t, ["horizontal", "vertical"]);
|
|
187
102
|
},
|
|
188
103
|
default: "horizontal"
|
|
189
104
|
},
|
|
@@ -242,7 +157,7 @@ const y = {
|
|
|
242
157
|
value: "resetOffset"
|
|
243
158
|
},
|
|
244
159
|
mounted() {
|
|
245
|
-
return
|
|
160
|
+
return l(this, null, function* () {
|
|
246
161
|
yield this.$nextTick(), this.resetOffset();
|
|
247
162
|
});
|
|
248
163
|
},
|
|
@@ -280,24 +195,25 @@ const y = {
|
|
|
280
195
|
this.initOffset = this.isHorizontal ? t.pageX : t.pageY, this.oldOffset = this.value, this.isMoving = !0, h(window, "mousemove", this.handleMove), h(window, "mouseup", this.handleUp), this.$emit("on-move-start");
|
|
281
196
|
}
|
|
282
197
|
}
|
|
283
|
-
}
|
|
284
|
-
var
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
198
|
+
};
|
|
199
|
+
var M = function() {
|
|
200
|
+
var e = this, s = e._self._c;
|
|
201
|
+
return s("div", { ref: "outerWrapper", class: e.wrapperClasses }, [e.isHorizontal ? s("div", { class: `${e.prefix}-horizontal` }, [e.hideLeft ? s("div", { class: [`${e.prefix}-pane`, "right-pane"], staticStyle: { left: "0" } }, [e._t("right")], 2) : [s("div", { class: [`${e.prefix}-pane`, "left-pane"], style: { right: `${e.anotherOffset}%` } }, [e._t("left")], 2), s("div", { class: `${e.prefix}-trigger-con`, style: { left: `calc(${e.offset}% + ${e.triggerSize / 2}px)`, width: `${e.triggerSize}px` }, on: { mousedown: e.handleMousedown } }, [e._t("trigger", function() {
|
|
202
|
+
return [s("Trigger", { attrs: { mode: "vertical" } })];
|
|
203
|
+
})], 2), s("div", { class: [`${e.prefix}-pane`, "right-pane"], style: { left: `calc(${e.offset}% + ${e.triggerSize}px)` } }, [e._t("right")], 2)]], 2) : s("div", { class: `${e.prefix}-vertical` }, [s("div", { class: [`${e.prefix}-pane`, "top-pane"], style: { bottom: `${e.anotherOffset}%` } }, [e._t("top")], 2), s("div", { class: `${e.prefix}-trigger-con`, style: { top: `calc(${e.offset}% + ${e.triggerSize / 2}px)`, height: `${e.triggerSize}px` }, on: { mousedown: e.handleMousedown } }, [e._t("trigger", function() {
|
|
204
|
+
return [s("Trigger", { attrs: { mode: "horizontal" } })];
|
|
205
|
+
})], 2), s("div", { class: [`${e.prefix}-pane`, "bottom-pane"], style: { top: `calc(${e.offset}% + ${e.triggerSize}px)` } }, [e._t("bottom")], 2)]), s("ResizeObserver", { on: { notify: e.resetOffset } })], 1);
|
|
206
|
+
}, O = [], w = /* @__PURE__ */ u(
|
|
207
|
+
z,
|
|
208
|
+
M,
|
|
209
|
+
O,
|
|
288
210
|
!1,
|
|
289
|
-
|
|
211
|
+
null,
|
|
290
212
|
null,
|
|
291
213
|
null,
|
|
292
214
|
null
|
|
293
215
|
);
|
|
294
|
-
|
|
295
|
-
for (let e in c)
|
|
296
|
-
this[e] = c[e];
|
|
297
|
-
}
|
|
298
|
-
const T = /* @__PURE__ */ function() {
|
|
299
|
-
return F.exports;
|
|
300
|
-
}();
|
|
216
|
+
const P = w.exports;
|
|
301
217
|
export {
|
|
302
|
-
|
|
218
|
+
P as default
|
|
303
219
|
};
|
package/stateful/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as A } from "../chunks/
|
|
2
|
-
const
|
|
1
|
+
import { n as A } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
|
+
const _ = {
|
|
3
3
|
name: "Stateful",
|
|
4
4
|
functional: !0,
|
|
5
5
|
props: {
|
|
@@ -42,43 +42,35 @@ const v = {
|
|
|
42
42
|
type: String
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
render(r, { props:
|
|
46
|
-
const { draft:
|
|
47
|
-
draft: Array.isArray(
|
|
45
|
+
render(r, { props: u, data: i, children: y }) {
|
|
46
|
+
const { draft: t, doing: a, overdue: n, error: o, done: s, closed: l, status: e, tag: c, size: d, type: f } = u, p = {
|
|
47
|
+
draft: Array.isArray(t) ? t.includes(e) : t,
|
|
48
48
|
doing: Array.isArray(a) ? a.includes(e) : a,
|
|
49
|
-
overdue: Array.isArray(
|
|
50
|
-
error: Array.isArray(
|
|
51
|
-
done: Array.isArray(
|
|
52
|
-
closed: Array.isArray(
|
|
49
|
+
overdue: Array.isArray(n) ? n.includes(e) : n,
|
|
50
|
+
error: Array.isArray(o) ? o.includes(e) : o,
|
|
51
|
+
done: Array.isArray(s) ? s.includes(e) : s,
|
|
52
|
+
closed: Array.isArray(l) ? l.includes(e) : l
|
|
53
53
|
};
|
|
54
|
-
return r(
|
|
54
|
+
return r(c, i, [
|
|
55
55
|
r("span", {
|
|
56
|
-
style: { width:
|
|
56
|
+
style: { width: d, height: d },
|
|
57
57
|
class: ["stateful", f, p]
|
|
58
58
|
}),
|
|
59
|
-
|
|
59
|
+
y
|
|
60
60
|
]);
|
|
61
61
|
}
|
|
62
|
-
};
|
|
63
|
-
let g, S;
|
|
64
|
-
const i = {};
|
|
62
|
+
}, g = null, v = null;
|
|
65
63
|
var m = /* @__PURE__ */ A(
|
|
66
|
-
|
|
64
|
+
_,
|
|
67
65
|
g,
|
|
68
|
-
|
|
66
|
+
v,
|
|
69
67
|
!1,
|
|
70
|
-
|
|
68
|
+
null,
|
|
71
69
|
null,
|
|
72
70
|
null,
|
|
73
71
|
null
|
|
74
72
|
);
|
|
75
|
-
|
|
76
|
-
for (let t in i)
|
|
77
|
-
this[t] = i[t];
|
|
78
|
-
}
|
|
79
|
-
const h = /* @__PURE__ */ function() {
|
|
80
|
-
return m.exports;
|
|
81
|
-
}();
|
|
73
|
+
const B = m.exports;
|
|
82
74
|
export {
|
|
83
|
-
|
|
75
|
+
B as default
|
|
84
76
|
};
|