@web-utils/component 2.0.14 → 2.7.1
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/dist/chunks/config.46422d7f.js +73 -0
- package/dist/chunks/{3a79781b.js → confirmable-mixin.3a79781b.js} +0 -0
- package/dist/chunks/dataformat.fb35ee10.js +61 -0
- package/dist/chunks/detail.a3249549.js +28 -0
- package/dist/chunks/dic.5f7e3523.js +132 -0
- package/dist/chunks/event.50c365eb.js +235 -0
- package/dist/chunks/{76680a03.js → form-input-mixin.ff5b58f7.js} +2 -2
- package/dist/chunks/{b4acd3a6.js → form-item-mixin.79f6eaff.js} +3 -1
- package/dist/chunks/{61ad06b2.js → form-pick-mixin.61ad06b2.js} +0 -0
- package/dist/chunks/init.352281f5.js +121 -0
- package/dist/chunks/{41a066be.js → input-number-mixin.41a066be.js} +0 -0
- package/dist/chunks/{5a78e0db.js → mixins.5a78e0db.js} +0 -0
- package/dist/chunks/packages.5d7a86c4.js +114 -0
- package/dist/chunks/permission.ce5d2121.js +16 -0
- package/dist/chunks/slot.1b8d2b1b.js +27 -0
- package/dist/chunks/{8c0142e0.js → tab-mixin.8c0142e0.js} +0 -0
- package/dist/chunks/util.5053d54e.js +264 -0
- package/dist/chunks/{97652d86.js → utils.97652d86.js} +0 -0
- package/dist/chunks/{f71045fc.js → utils.fa73de78.js} +1 -0
- package/dist/chunks/{5d4282fb.js → vueComponentNormalizer.71e2aa87.js} +3 -1
- package/dist/components/address-input/index.js +1 -1
- package/dist/components/affix/index.js +102 -0
- package/dist/components/affix/style.css +1 -0
- package/dist/components/array/index.js +156 -0
- package/dist/components/array/style.css +1 -0
- package/dist/components/article/index.js +93 -0
- package/dist/components/article/style.css +1 -0
- package/dist/components/aside-menu/index.js +1 -1
- package/dist/components/avatar/index.js +106 -0
- package/dist/components/avatar/style.css +1 -0
- package/dist/components/awesome-button/index.js +1 -1
- package/dist/components/base.css +1 -1
- package/dist/components/capsule-tab/index.js +1 -1
- package/dist/components/card/index.js +130 -0
- package/dist/components/card/style.css +1 -0
- package/dist/components/carousel/index.js +70 -0
- package/dist/components/carousel/style.css +1 -0
- package/dist/components/chat/index.js +567 -0
- package/dist/components/chat/style.css +1 -0
- package/dist/components/chunk-file-uploader/index.js +2 -2
- package/dist/components/chunk-file-uploader-button/index.js +2 -2
- package/dist/components/chunk-file-uploader-drop/index.js +2 -2
- package/dist/components/chunk-file-uploader-file/index.js +2 -2
- package/dist/components/chunk-file-uploader-files/index.js +2 -2
- package/dist/components/chunk-file-uploader-list/index.js +2 -2
- package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
- package/dist/components/code/index.js +66 -0
- package/dist/components/code-mirror-editor/index.js +4 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/column/index.js +114 -0
- package/dist/components/column-default/index.js +105 -0
- package/dist/components/column-dynamic/index.js +93 -0
- package/dist/components/column-menu/index.js +286 -0
- package/dist/components/column-slot/index.js +265 -0
- package/dist/components/comment/index.js +94 -0
- package/dist/components/comment/style.css +1 -0
- package/dist/components/confirm-button/index.js +2 -2
- package/dist/components/confirmable/index.js +2 -2
- package/dist/components/context-menu/index.js +11 -1
- package/dist/components/count-up/index.js +120 -0
- package/dist/components/custom-scrollbar/index.js +2 -2
- package/dist/components/data-box/index.js +97 -0
- package/dist/components/data-box/style.css +1 -0
- package/dist/components/data-card/index.js +98 -0
- package/dist/components/data-card/style.css +1 -0
- package/dist/components/data-cardtext/index.js +82 -0
- package/dist/components/data-cardtext/style.css +1 -0
- package/dist/components/data-display/index.js +93 -0
- package/dist/components/data-display/style.css +1 -0
- package/dist/components/data-icons/index.js +104 -0
- package/dist/components/data-icons/style.css +1 -0
- package/dist/components/data-imgtext/index.js +106 -0
- package/dist/components/data-imgtext/style.css +1 -0
- package/dist/components/data-operatext/index.js +99 -0
- package/dist/components/data-operatext/style.css +1 -0
- package/dist/components/data-panel/index.js +93 -0
- package/dist/components/data-panel/style.css +1 -0
- package/dist/components/data-pay/index.js +149 -0
- package/dist/components/data-pay/style.css +1 -0
- package/dist/components/data-price/index.js +84 -0
- package/dist/components/data-price/style.css +1 -0
- package/dist/components/data-progress/index.js +97 -0
- package/dist/components/data-progress/style.css +1 -0
- package/dist/components/data-rotate/index.js +96 -0
- package/dist/components/data-rotate/style.css +1 -0
- package/dist/components/data-table-picker/index.js +2 -2
- package/dist/components/data-tabs/index.js +94 -0
- package/dist/components/data-tabs/style.css +1 -0
- package/dist/components/dialog-column/index.js +138 -0
- package/dist/components/dialog-excel/index.js +214 -0
- package/dist/components/dialog-filter/index.js +245 -0
- package/dist/components/dialog-form/index.js +275 -0
- package/dist/components/draggable/index.js +384 -0
- package/dist/components/draggable/style.css +1 -0
- package/dist/components/dynamic-table/index.js +1 -1
- package/dist/components/e-charts/index.js +7 -1
- package/dist/components/editable-progress/index.js +1 -1
- package/dist/components/editable-tree/index.js +2 -2
- package/dist/components/egd-collapse/index.js +1 -1
- package/dist/components/egd-collapse-item/index.js +1 -1
- package/dist/components/element-dialog/index.js +1 -1
- package/dist/components/empty/index.js +59 -0
- package/dist/components/empty/style.css +1 -0
- package/dist/components/empty-view/index.js +1 -1
- package/dist/components/error-view/index.js +1 -1
- package/dist/components/flex-column/index.js +2 -2
- package/dist/components/flex-item/index.js +2 -2
- package/dist/components/flex-row/index.js +2 -2
- package/dist/components/flex-scroller/index.js +1 -1
- package/dist/components/flow/index.js +278 -0
- package/dist/components/flow/style.css +1 -0
- package/dist/components/flow-node/index.js +102 -0
- package/dist/components/form-button/index.js +2 -2
- package/dist/components/form-cascader/index.js +4 -4
- package/dist/components/form-checkbox-group/index.js +4 -4
- package/dist/components/form-date-picker/index.js +4 -4
- package/dist/components/form-group/index.js +122 -0
- package/dist/components/form-group/style.css +1 -0
- package/dist/components/form-holder/index.js +23 -2
- package/dist/components/form-input/index.js +3 -3
- package/dist/components/form-input-email/index.js +3 -3
- package/dist/components/form-input-id-card/index.js +3 -3
- package/dist/components/form-input-number/index.js +4 -4
- package/dist/components/form-input-phone-number/index.js +3 -3
- package/dist/components/form-input-time/index.js +3 -3
- package/dist/components/form-item/index.js +2 -2
- package/dist/components/form-item-config-provider/index.js +1 -1
- package/dist/components/form-item-group/index.js +1 -1
- package/dist/components/form-radio-group/index.js +4 -4
- package/dist/components/form-select/index.js +4 -4
- package/dist/components/form-switch/index.js +3 -3
- package/dist/components/form-temp/index.js +149 -0
- package/dist/components/form-textarea/index.js +3 -3
- package/dist/components/form-view/index.js +1 -1
- package/dist/components/fy-cascader/index.js +132 -0
- package/dist/components/fy-checkbox/index.js +116 -0
- package/dist/components/fy-checkbox/style.css +1 -0
- package/dist/components/fy-curd/index.js +846 -0
- package/dist/components/fy-curd/style.css +1 -0
- package/dist/components/fy-date/index.js +84 -0
- package/dist/components/fy-date/style.css +1 -0
- package/dist/components/fy-dialog-form/index.js +278 -0
- package/dist/components/fy-dialog-form/style.css +1 -0
- package/dist/components/fy-dynamic/index.js +335 -0
- package/dist/components/fy-dynamic/style.css +1 -0
- package/dist/components/fy-form/index.js +754 -0
- package/dist/components/fy-form/style.css +1 -0
- package/dist/components/fy-form-menu/index.js +95 -0
- package/dist/components/fy-input/index.js +162 -0
- package/dist/components/fy-input-color/index.js +96 -0
- package/dist/components/fy-input-icon/index.js +161 -0
- package/dist/components/fy-input-icon/style.css +1 -0
- package/dist/components/fy-input-map/index.js +275 -0
- package/dist/components/fy-input-map/style.css +1 -0
- package/dist/components/fy-input-number/index.js +87 -0
- package/dist/components/fy-input-table/index.js +172 -0
- package/dist/components/fy-input-table/style.css +1 -0
- package/dist/components/fy-input-tree/index.js +265 -0
- package/dist/components/fy-input-tree/style.css +1 -0
- package/dist/components/fy-radio/index.js +68 -0
- package/dist/components/fy-radio/style.css +1 -0
- package/dist/components/fy-rate/index.js +105 -0
- package/dist/components/fy-rate/style.css +1 -0
- package/dist/components/fy-select/index.js +223 -0
- package/dist/components/fy-select/style.css +1 -0
- package/dist/components/fy-slider/index.js +79 -0
- package/dist/components/fy-switch/index.js +73 -0
- package/dist/components/fy-tabs/index.js +90 -0
- package/dist/components/fy-tabs/style.css +0 -0
- package/dist/components/fy-time/index.js +95 -0
- package/dist/components/fy-title/index.js +40 -0
- package/dist/components/fy-title/style.css +1 -0
- package/dist/components/fy-tree/index.js +427 -0
- package/dist/components/fy-tree/style.css +1 -0
- package/dist/components/fy-upload/index.js +704 -0
- package/dist/components/fy-upload/style.css +1 -0
- package/dist/components/guide-steps/index.js +1 -1
- package/dist/components/header-menu/index.js +238 -0
- package/dist/components/header-search/index.js +246 -0
- package/dist/components/icon-card/index.js +1 -1
- package/dist/components/icon-temp/index.js +50 -0
- package/dist/components/icon-temp/style.css +1 -0
- package/dist/components/iframe-window/index.js +1 -1
- package/dist/components/image-viewer/index.js +1 -1
- package/dist/components/input-number/index.js +2 -2
- package/dist/components/input-number-range/index.js +1 -1
- package/dist/components/keep-view-alive/index.js +6 -2
- package/dist/components/keyboard/index.js +389 -0
- package/dist/components/keyboard/style.css +1 -0
- package/dist/components/license/index.js +134 -0
- package/dist/components/loading-view/index.js +1 -1
- package/dist/components/login/index.js +244 -0
- package/dist/components/login/style.css +1 -0
- package/dist/components/name-avatar/index.js +66 -0
- package/dist/components/name-avatar/style.css +1 -0
- package/dist/components/nav-bar/index.js +1 -1
- package/dist/components/not-implement/index.js +1 -1
- package/dist/components/notice/index.js +143 -0
- package/dist/components/notice/style.css +1 -0
- package/dist/components/page/index.js +1 -1
- package/dist/components/page-header/index.js +1 -1
- package/dist/components/page-index/index.js +1 -1
- package/dist/components/page-index-top/index.js +1 -1
- package/dist/components/page-skeleton/index.js +1 -1
- package/dist/components/page-skeleton-new/index.js +1 -1
- package/dist/components/pageable-table/index.js +6 -2
- package/dist/components/pageable-view/index.js +7 -2
- package/dist/components/photo-swipe/index.js +7 -1
- package/dist/components/progress/index.js +60 -0
- package/dist/components/queue/index.js +76 -0
- package/dist/components/record-video/index.js +173 -0
- package/dist/components/record-video/style.css +1 -0
- package/dist/components/resize-observer/index.js +2 -2
- package/dist/components/search/index.js +142 -0
- package/dist/components/search/style.css +1 -0
- package/dist/components/search-popover/index.js +1 -1
- package/dist/components/sign/index.js +128 -0
- package/dist/components/sign/style.css +1 -0
- package/dist/components/sign-panel/index.js +14 -1
- package/dist/components/skeleton/index.js +82 -0
- package/dist/components/skeleton/style.css +1 -0
- package/dist/components/split-pane/index.js +7 -1
- package/dist/components/stateful/index.js +1 -1
- package/dist/components/static-pageable-table/index.js +1 -1
- package/dist/components/swiper/index.js +1 -1
- package/dist/components/tab/index.js +4 -2
- package/dist/components/tab-item/index.js +2 -2
- package/dist/components/table-column/index.js +1 -1
- package/dist/components/table-page/index.js +129 -0
- package/dist/components/table-view/index.js +2 -2
- package/dist/components/tag-render/index.js +1 -1
- package/dist/components/text-ellipsis/index.js +107 -0
- package/dist/components/text-ellipsis/style.css +1 -0
- package/dist/components/tinymce-editor/index.js +1 -1
- package/dist/components/tinymce-wrapper/index.js +1 -1
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/toolbar-button/index.js +1 -1
- package/dist/components/trigger/index.js +1 -1
- package/dist/components/verify/index.js +80 -0
- package/dist/components/verify/style.css +1 -0
- package/dist/components/vue-tags-input/index.js +115 -1
- package/dist/components/watermark/index.js +20 -2
- package/dist/index.css +4138 -755
- package/dist/index.es.js +21037 -6467
- package/package.json +20 -4
- package/web-types.json +12735 -2746
- package/dist/components/x-dialog/index.js +0 -173
- package/dist/components/x-dialog/style.css +0 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var s = function() {
|
|
3
|
+
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
4
|
+
return n("div", {
|
|
5
|
+
class: ["avue-queue", {
|
|
6
|
+
"avue-queue--block": e.block
|
|
7
|
+
}]
|
|
8
|
+
}, [n("div", {
|
|
9
|
+
ref: "queue",
|
|
10
|
+
staticClass: "animated",
|
|
11
|
+
class: e.animate
|
|
12
|
+
}, [e._t("default")], 2)]);
|
|
13
|
+
}, i = [];
|
|
14
|
+
const o = {
|
|
15
|
+
name: "Queue",
|
|
16
|
+
props: {
|
|
17
|
+
enter: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "fadeInLeft"
|
|
20
|
+
},
|
|
21
|
+
leave: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "fadeOutRight"
|
|
24
|
+
},
|
|
25
|
+
block: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
delay: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 0
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
data() {
|
|
35
|
+
return {
|
|
36
|
+
isFixed: 0,
|
|
37
|
+
animate: []
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
mounted() {
|
|
41
|
+
this.$nextTick(() => {
|
|
42
|
+
addEventListener("scroll", this.handleAnimate), this.handleAnimate();
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
destroyed() {
|
|
46
|
+
removeEventListener("scroll", this.handleAnimate);
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
handleAnimate() {
|
|
50
|
+
let e = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop, t = document.documentElement.clientHeight, n = this.$refs.queue;
|
|
51
|
+
e + t > n.offsetTop ? setTimeout(() => {
|
|
52
|
+
this.animate = [this.enter, "avue-opacity--active"];
|
|
53
|
+
}, this.delay) : this.animate = ["avue-opacity"];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}, a = {};
|
|
57
|
+
var u = /* @__PURE__ */ l(
|
|
58
|
+
o,
|
|
59
|
+
s,
|
|
60
|
+
i,
|
|
61
|
+
!1,
|
|
62
|
+
r,
|
|
63
|
+
null,
|
|
64
|
+
null,
|
|
65
|
+
null
|
|
66
|
+
);
|
|
67
|
+
function r(e) {
|
|
68
|
+
for (let t in a)
|
|
69
|
+
this[t] = a[t];
|
|
70
|
+
}
|
|
71
|
+
const d = /* @__PURE__ */ function() {
|
|
72
|
+
return u.exports;
|
|
73
|
+
}();
|
|
74
|
+
export {
|
|
75
|
+
d as default
|
|
76
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { s } from "../../chunks/util.5053d54e.js";
|
|
2
|
+
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
let n = class {
|
|
4
|
+
/**
|
|
5
|
+
* 构造函数
|
|
6
|
+
*
|
|
7
|
+
* @param {Object} videoObj 视频对象
|
|
8
|
+
*/
|
|
9
|
+
constructor(t) {
|
|
10
|
+
this.video = t, this.mediaRecorder = null, this.chunks = [];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 初始化
|
|
14
|
+
*
|
|
15
|
+
* @return {Object} promise
|
|
16
|
+
*/
|
|
17
|
+
init() {
|
|
18
|
+
return new Promise((t, i) => {
|
|
19
|
+
navigator.mediaDevices.getUserMedia({
|
|
20
|
+
audio: !0,
|
|
21
|
+
video: !0
|
|
22
|
+
// video: {
|
|
23
|
+
// width: this.videoWidth,
|
|
24
|
+
// height: this.videoHeight
|
|
25
|
+
// }
|
|
26
|
+
}).then((r) => {
|
|
27
|
+
"srcObject" in this.video ? this.video.srcObject = r : this.video.src = window.URL.createObjectURL(r), this.video.addEventListener("loadmetadata", () => {
|
|
28
|
+
this.video.play();
|
|
29
|
+
}), this.mediaRecorder = new MediaRecorder(r), this.mediaRecorder.addEventListener("dataavailable", (d) => {
|
|
30
|
+
this.chunks.push(d.data);
|
|
31
|
+
}), t();
|
|
32
|
+
}).catch((r) => {
|
|
33
|
+
i(r);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 视频开始录制
|
|
39
|
+
*/
|
|
40
|
+
startRecord() {
|
|
41
|
+
this.mediaRecorder.state === "inactive" && this.mediaRecorder.start();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 视频结束录制
|
|
45
|
+
*/
|
|
46
|
+
stopRecord() {
|
|
47
|
+
this.mediaRecorder.state === "recording" && this.mediaRecorder.stop();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 检测当前浏览器对否支持
|
|
51
|
+
*
|
|
52
|
+
* @return {boolean} 当前浏览器是否支持
|
|
53
|
+
*/
|
|
54
|
+
isSupport() {
|
|
55
|
+
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia)
|
|
56
|
+
return !0;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var c = function() {
|
|
60
|
+
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
61
|
+
return i("div", {
|
|
62
|
+
staticClass: "avue-video",
|
|
63
|
+
style: e.styleName
|
|
64
|
+
}, [i("div", {
|
|
65
|
+
staticClass: "avue-video__border"
|
|
66
|
+
}, [i("span", {
|
|
67
|
+
style: e.borderStyleName
|
|
68
|
+
}), i("span", {
|
|
69
|
+
style: e.borderStyleName
|
|
70
|
+
}), i("span", {
|
|
71
|
+
style: e.borderStyleName
|
|
72
|
+
}), i("span", {
|
|
73
|
+
style: e.borderStyleName
|
|
74
|
+
})]), i("img", {
|
|
75
|
+
staticClass: "avue-video__img",
|
|
76
|
+
style: e.imgStyleName,
|
|
77
|
+
attrs: {
|
|
78
|
+
src: e.background,
|
|
79
|
+
alt: ""
|
|
80
|
+
}
|
|
81
|
+
}), i("video", {
|
|
82
|
+
ref: "main",
|
|
83
|
+
staticClass: "avue-video__main",
|
|
84
|
+
attrs: {
|
|
85
|
+
autoplay: "",
|
|
86
|
+
muted: ""
|
|
87
|
+
},
|
|
88
|
+
domProps: {
|
|
89
|
+
muted: !0
|
|
90
|
+
}
|
|
91
|
+
})]);
|
|
92
|
+
}, l = [];
|
|
93
|
+
const v = {
|
|
94
|
+
name: "RecordVideo",
|
|
95
|
+
props: {
|
|
96
|
+
background: {
|
|
97
|
+
type: String
|
|
98
|
+
},
|
|
99
|
+
width: {
|
|
100
|
+
type: [String, Number],
|
|
101
|
+
default: 500
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
data() {
|
|
105
|
+
return {
|
|
106
|
+
videoObj: null
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
computed: {
|
|
110
|
+
styleName() {
|
|
111
|
+
return {
|
|
112
|
+
width: s(this.width)
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
imgStyleName() {
|
|
116
|
+
return {
|
|
117
|
+
width: s(this.width / 2)
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
borderStyleName() {
|
|
121
|
+
return {
|
|
122
|
+
width: s(this.width / 15),
|
|
123
|
+
height: s(this.width / 15),
|
|
124
|
+
borderWidth: s(5)
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
mounted() {
|
|
129
|
+
this.init();
|
|
130
|
+
},
|
|
131
|
+
methods: {
|
|
132
|
+
init() {
|
|
133
|
+
this.videoObj = new n(this.$refs.main), this.videoObj.init().then(() => {
|
|
134
|
+
this.videoObj.mediaRecorder.addEventListener("stop", this.getData, !1);
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
startRecord() {
|
|
138
|
+
this.videoObj.startRecord();
|
|
139
|
+
},
|
|
140
|
+
stopRecord() {
|
|
141
|
+
this.videoObj.stopRecord();
|
|
142
|
+
},
|
|
143
|
+
getData() {
|
|
144
|
+
const e = new Blob(this.videoObj.chunks, {
|
|
145
|
+
type: "video/mp4"
|
|
146
|
+
}), t = new FileReader();
|
|
147
|
+
t.readAsDataURL(e), t.addEventListener("loadend", () => {
|
|
148
|
+
var i = t.result;
|
|
149
|
+
this.$emit("data-change", i);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}, a = {};
|
|
154
|
+
var h = /* @__PURE__ */ o(
|
|
155
|
+
v,
|
|
156
|
+
c,
|
|
157
|
+
l,
|
|
158
|
+
!1,
|
|
159
|
+
m,
|
|
160
|
+
null,
|
|
161
|
+
null,
|
|
162
|
+
null
|
|
163
|
+
);
|
|
164
|
+
function m(e) {
|
|
165
|
+
for (let t in a)
|
|
166
|
+
this[t] = a[t];
|
|
167
|
+
}
|
|
168
|
+
const b = /* @__PURE__ */ function() {
|
|
169
|
+
return h.exports;
|
|
170
|
+
}();
|
|
171
|
+
export {
|
|
172
|
+
b as default
|
|
173
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-video{position:relative;width:500px;overflow:hidden}.avue-video__border span{position:absolute;width:30px;height:30px;border-width:4px;color:#0073eb;border-style:solid}.avue-video__border span:nth-child(1){left:15px;top:15px;border-right:0;border-bottom:0}.avue-video__border span:nth-child(2){right:15px;top:15px;border-left:0;border-bottom:0}.avue-video__border span:nth-child(3){bottom:15px;left:15px;border-right:0;border-top:0}.avue-video__border span:nth-child(4){bottom:15px;right:15px;border-left:0;border-top:0}.avue-video__img{width:100px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.avue-video__main{width:100%}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as o } from "../../chunks/
|
|
2
|
-
import { n as h } from "../../chunks/
|
|
1
|
+
import { g as o } from "../../chunks/utils.fa73de78.js";
|
|
2
|
+
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
var a = function() {
|
|
4
4
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
5
5
|
return r("div", {
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { a as i, c as n } from "../../chunks/util.5053d54e.js";
|
|
2
|
+
import { i as o } from "../../chunks/init.352281f5.js";
|
|
3
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
|
+
var h = function() {
|
|
5
|
+
var t = this, e = t.$createElement, r = t._self._c || e;
|
|
6
|
+
return r("ElRow", {
|
|
7
|
+
class: ["avue-search", {
|
|
8
|
+
"avue--card": t.isCard
|
|
9
|
+
}],
|
|
10
|
+
attrs: {
|
|
11
|
+
span: 24
|
|
12
|
+
}
|
|
13
|
+
}, t._l(t.columnOption, function(s) {
|
|
14
|
+
return r("ElCol", {
|
|
15
|
+
key: s.prop,
|
|
16
|
+
staticClass: "avue-search__item",
|
|
17
|
+
attrs: {
|
|
18
|
+
span: s.span || 24
|
|
19
|
+
}
|
|
20
|
+
}, [r("p", {
|
|
21
|
+
staticClass: "avue-search__title"
|
|
22
|
+
}, [t._v(" " + t._s(s.label) + ": ")]), r("div", {
|
|
23
|
+
staticClass: "avue-search__content"
|
|
24
|
+
}, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, {
|
|
25
|
+
dic: t.DIC[s.prop]
|
|
26
|
+
}) : t._l(t.DIC[s.prop], function(a) {
|
|
27
|
+
return r("span", {
|
|
28
|
+
key: t.getKey(a, s.props, t.valueKey),
|
|
29
|
+
class: ["avue-search__tags", {
|
|
30
|
+
"avue-search__tags--active": t.getActive(a, s)
|
|
31
|
+
}],
|
|
32
|
+
on: {
|
|
33
|
+
click: function(f) {
|
|
34
|
+
return t.handleClick(s, a);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, [t._v(t._s(t.getKey(a, s.props, t.labelKey)))]);
|
|
38
|
+
})], 2)]);
|
|
39
|
+
}), 1);
|
|
40
|
+
}, u = [];
|
|
41
|
+
const c = {
|
|
42
|
+
name: "Search",
|
|
43
|
+
mixins: [o],
|
|
44
|
+
props: {
|
|
45
|
+
value: {}
|
|
46
|
+
},
|
|
47
|
+
computed: {
|
|
48
|
+
form: {
|
|
49
|
+
get() {
|
|
50
|
+
return this.value;
|
|
51
|
+
},
|
|
52
|
+
set(t) {
|
|
53
|
+
this.setVal(t);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
props() {
|
|
57
|
+
return this.parentOption.props || {};
|
|
58
|
+
},
|
|
59
|
+
labelKey() {
|
|
60
|
+
return i.label;
|
|
61
|
+
},
|
|
62
|
+
valueKey() {
|
|
63
|
+
return i.value;
|
|
64
|
+
},
|
|
65
|
+
mainSlot() {
|
|
66
|
+
let t = [];
|
|
67
|
+
return this.propOption.forEach((e) => {
|
|
68
|
+
this.$scopedSlots[e.prop] && t.push(e.prop);
|
|
69
|
+
}), t;
|
|
70
|
+
},
|
|
71
|
+
isCard() {
|
|
72
|
+
return this.parentOption.card;
|
|
73
|
+
},
|
|
74
|
+
parentOption() {
|
|
75
|
+
return this.tableOption;
|
|
76
|
+
},
|
|
77
|
+
propOption() {
|
|
78
|
+
return this.columnOption;
|
|
79
|
+
},
|
|
80
|
+
columnOption() {
|
|
81
|
+
return this.parentOption.column;
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
watch: {
|
|
85
|
+
value: {
|
|
86
|
+
handler(t) {
|
|
87
|
+
this.setVal(t);
|
|
88
|
+
},
|
|
89
|
+
deep: !0
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
created() {
|
|
93
|
+
this.dataFormat();
|
|
94
|
+
},
|
|
95
|
+
methods: {
|
|
96
|
+
setVal(t) {
|
|
97
|
+
this.$emit("input", t), this.$emit("change", t);
|
|
98
|
+
},
|
|
99
|
+
getKey(t = {}, e = {}, r) {
|
|
100
|
+
return t[e[r] || this.props[r] || r];
|
|
101
|
+
},
|
|
102
|
+
dataFormat() {
|
|
103
|
+
this.propOption.forEach((t) => {
|
|
104
|
+
const e = t.prop;
|
|
105
|
+
n(this.form[e]) && this.$set(this.form, e, t.multiple === !1 ? "" : []);
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
getActive(t, e) {
|
|
109
|
+
const r = this.getKey(t, e.props, this.valueKey);
|
|
110
|
+
return e.multiple === !1 ? this.form[e.prop] === r : this.form[e.prop].includes(r);
|
|
111
|
+
},
|
|
112
|
+
handleClick(t, e) {
|
|
113
|
+
const r = this.getKey(e, t.props, this.valueKey);
|
|
114
|
+
if (t.multiple === !1)
|
|
115
|
+
this.form[t.prop] = r;
|
|
116
|
+
else {
|
|
117
|
+
const s = this.form[t.prop].indexOf(r);
|
|
118
|
+
s === -1 ? this.form[t.prop].push(r) : this.form[t.prop].splice(s, 1);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}, p = {};
|
|
123
|
+
var _ = /* @__PURE__ */ l(
|
|
124
|
+
c,
|
|
125
|
+
h,
|
|
126
|
+
u,
|
|
127
|
+
!1,
|
|
128
|
+
v,
|
|
129
|
+
null,
|
|
130
|
+
null,
|
|
131
|
+
null
|
|
132
|
+
);
|
|
133
|
+
function v(t) {
|
|
134
|
+
for (let e in p)
|
|
135
|
+
this[e] = p[e];
|
|
136
|
+
}
|
|
137
|
+
const O = /* @__PURE__ */ function() {
|
|
138
|
+
return _.exports;
|
|
139
|
+
}();
|
|
140
|
+
export {
|
|
141
|
+
O as default
|
|
142
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-search{padding:0 20px}.avue-search__item{padding:20px 0 10px;display:flex;align-items:flex-start;border-bottom:1px dashed #e8e8e8}.avue-search__item:last-child{border-bottom:none}.avue-search__tags{padding:0 12px;margin-right:24px;margin-bottom:12px;font-size:14px;color:#000000a6;cursor:pointer;white-space:nowrap;display:inline-block}.avue-search__tags:hover{color:#1890ff}.avue-search__tags--active{color:#fff;background-color:#1890ff;border-radius:5px}.avue-search__tags--active:hover{opacity:.85;color:#fff}.avue-search__title{margin:0;padding:0 20px;width:120px;font-size:14px;text-align:right;display:inline-block;box-sizing:border-box}.avue-search__content{width:calc(100% - 190px);display:inline-block}.avue-search__content .el-tag{margin-right:10px;margin-bottom:10px}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { copy, isInContainer } from "@web-utils/core";
|
|
2
2
|
import ClickOutside from "element-ui/lib/utils/clickoutside";
|
|
3
|
-
import { n as normalizeComponent } from "../../chunks/
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
4
4
|
var render = function() {
|
|
5
5
|
var t = this, r = t.$createElement, e = t._self._c || r;
|
|
6
6
|
return e("div", {
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { s as g } from "../../chunks/util.5053d54e.js";
|
|
2
|
+
import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var m = function() {
|
|
4
|
+
var e = this, a = e.$createElement, n = e._self._c || a;
|
|
5
|
+
return n("div", {
|
|
6
|
+
staticClass: "avue-sige"
|
|
7
|
+
}, [n("canvas", {
|
|
8
|
+
ref: "canvas",
|
|
9
|
+
staticClass: "avue-sige__canvas",
|
|
10
|
+
attrs: {
|
|
11
|
+
width: e.width,
|
|
12
|
+
height: e.height
|
|
13
|
+
}
|
|
14
|
+
})]);
|
|
15
|
+
}, x = [];
|
|
16
|
+
function _(e, a, n, o, t, l) {
|
|
17
|
+
e.save(), e.fillStyle = t, e.translate(a, n), e.rotate(Math.PI + l), e.beginPath();
|
|
18
|
+
for (var i = Math.sin(0), v = Math.cos(0), c = Math.PI / 5 * 4, h = 0; h < 5; h++) {
|
|
19
|
+
var i = Math.sin(h * c), v = Math.cos(h * c);
|
|
20
|
+
e.lineTo(i * o, v * o);
|
|
21
|
+
}
|
|
22
|
+
e.closePath(), e.stroke(), e.fill(), e.restore();
|
|
23
|
+
}
|
|
24
|
+
const w = {
|
|
25
|
+
name: "Sign",
|
|
26
|
+
props: {
|
|
27
|
+
width: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 600
|
|
30
|
+
},
|
|
31
|
+
height: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 400
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
data() {
|
|
37
|
+
return {
|
|
38
|
+
disabled: !1,
|
|
39
|
+
linex: [],
|
|
40
|
+
liney: [],
|
|
41
|
+
linen: [],
|
|
42
|
+
canvas: {},
|
|
43
|
+
context: {}
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
computed: {
|
|
47
|
+
styleName() {
|
|
48
|
+
return {
|
|
49
|
+
width: g(this.width),
|
|
50
|
+
height: g(this.height)
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
mounted() {
|
|
55
|
+
this.init();
|
|
56
|
+
},
|
|
57
|
+
methods: {
|
|
58
|
+
getStar(e, a, n) {
|
|
59
|
+
var o = this.canvas, t = this.context, l = o.width / 2, i = o.height / 2;
|
|
60
|
+
t.lineWidth = 7, t.strokeStyle = "#f00", t.beginPath(), t.arc(l, i, 110, 0, Math.PI * 2), t.stroke(), _(t, l, i, 20, "#f00", 0), t.font = "18px 黑体", t.textBaseline = "middle", t.textAlign = "center", t.lineWidth = 1, t.strokeStyle = "#f00", t.strokeText(e, l, i + 50), t.font = "14px 黑体", t.textBaseline = "middle", t.textAlign = "center", t.lineWidth = 1, t.strokeStyle = "#f00", t.strokeText(n, l, i + 80), t.translate(l, i), t.font = "22px 黑体";
|
|
61
|
+
for (var v = a.length, c = 4 * Math.PI / (3 * (v - 1)), h = a.split(""), r, s = 0; s < v; s++)
|
|
62
|
+
r = h[s], s == 0 ? t.rotate(5 * Math.PI / 6) : t.rotate(c), t.save(), t.translate(90, 0), t.rotate(Math.PI / 2), t.strokeText(r, 0, 0), t.restore(), t.save();
|
|
63
|
+
this.disabled = !0;
|
|
64
|
+
},
|
|
65
|
+
submit(e, a) {
|
|
66
|
+
return e || (e = this.width), a || (a = this.height), this.canvas.toDataURL("i/png");
|
|
67
|
+
},
|
|
68
|
+
clear() {
|
|
69
|
+
this.linex = new Array(), this.liney = new Array(), this.linen = new Array(), this.disabled = !1, this.canvas.width = this.canvas.width;
|
|
70
|
+
},
|
|
71
|
+
init() {
|
|
72
|
+
this.canvas = this.$refs.canvas;
|
|
73
|
+
var e = this.canvas, a = this;
|
|
74
|
+
typeof document.ontouchstart < "u" ? (e.addEventListener("touchmove", v, !1), e.addEventListener("touchstart", c, !1), e.addEventListener("touchend", h, !1)) : (e.addEventListener("mousemove", v, !1), e.addEventListener("mousedown", c, !1), e.addEventListener("mouseup", h, !1), e.addEventListener("mouseleave", h, !1)), this.context = e.getContext("2d");
|
|
75
|
+
var n = this.context;
|
|
76
|
+
this.linex = new Array(), this.liney = new Array(), this.linen = new Array();
|
|
77
|
+
var o = 1, t = 30, l = 0;
|
|
78
|
+
function i(r, s) {
|
|
79
|
+
var u = r.getBoundingClientRect(), d, f;
|
|
80
|
+
return s.targetTouches ? (d = s.targetTouches[0].clientX, f = s.targetTouches[0].clientY) : (d = s.clientX, f = s.clientY), {
|
|
81
|
+
x: (d - u.left) * (r.width / u.width),
|
|
82
|
+
y: (f - u.top) * (r.height / u.height)
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function v(r) {
|
|
86
|
+
if (!a.disabled) {
|
|
87
|
+
var s = i(e, r).x, u = i(e, r).y;
|
|
88
|
+
if (l == 1) {
|
|
89
|
+
a.linex.push(s), a.liney.push(u), a.linen.push(1), n.save(), n.translate(n.canvas.width / 2, n.canvas.height / 2), n.translate(-n.canvas.width / 2, -n.canvas.height / 2), n.beginPath(), n.lineWidth = 2;
|
|
90
|
+
for (var d = 1; d < a.linex.length; d++)
|
|
91
|
+
o = a.linex[d], t = a.liney[d], a.linen[d] == 0 ? n.moveTo(o, t) : n.lineTo(o, t);
|
|
92
|
+
n.shadowBlur = 10, n.stroke(), n.restore();
|
|
93
|
+
}
|
|
94
|
+
r.preventDefault();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function c(r) {
|
|
98
|
+
if (!a.disabled) {
|
|
99
|
+
var s = i(e, r).x, u = i(e, r).y;
|
|
100
|
+
l = 1, a.linex.push(s), a.liney.push(u), a.linen.push(0);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function h() {
|
|
104
|
+
a.disabled || (l = 0);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}, y = {};
|
|
109
|
+
var M = /* @__PURE__ */ p(
|
|
110
|
+
w,
|
|
111
|
+
m,
|
|
112
|
+
x,
|
|
113
|
+
!1,
|
|
114
|
+
b,
|
|
115
|
+
null,
|
|
116
|
+
null,
|
|
117
|
+
null
|
|
118
|
+
);
|
|
119
|
+
function b(e) {
|
|
120
|
+
for (let a in y)
|
|
121
|
+
this[a] = y[a];
|
|
122
|
+
}
|
|
123
|
+
const S = /* @__PURE__ */ function() {
|
|
124
|
+
return M.exports;
|
|
125
|
+
}();
|
|
126
|
+
export {
|
|
127
|
+
S as default
|
|
128
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-sign{padding:5px}.avue-sign__canvas{border:1px solid #ccc}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n } from "../../chunks/
|
|
1
|
+
import { n } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
2
|
var o = function() {
|
|
3
3
|
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
4
4
|
return i("div", {
|
|
@@ -154,6 +154,7 @@ const c = {
|
|
|
154
154
|
this.init();
|
|
155
155
|
},
|
|
156
156
|
methods: {
|
|
157
|
+
// 初始化
|
|
157
158
|
init() {
|
|
158
159
|
if (this.stack = [], this.canvas = this.$refs.canvas, !this.canvas.getContext) {
|
|
159
160
|
alert("当前浏览器不支持手写签名");
|
|
@@ -167,35 +168,47 @@ const c = {
|
|
|
167
168
|
this.ctx.putImageData(t, 0, 0), this.stack.length = this.stack.length - 1;
|
|
168
169
|
}
|
|
169
170
|
},
|
|
171
|
+
// 位置初始化
|
|
170
172
|
position() {
|
|
171
173
|
this.restorePoint = this.ctx.getImageData(0, 0, this.canvas.width, this.canvas.height);
|
|
172
174
|
const t = this.canvas.getBoundingClientRect();
|
|
173
175
|
this.start = t.left, this.end = t.top;
|
|
174
176
|
},
|
|
177
|
+
// 画布初始化
|
|
175
178
|
canvasInit() {
|
|
176
179
|
this.ctx = this.canvas.getContext("2d"), this.ctx.lineCap = "round", this.ctx.lineWidth = this.lineWidth, this.ctx.clearRect(0, 0, this.width, this.height), this.blank = this.canvas.toDataURL("image/png");
|
|
177
180
|
},
|
|
181
|
+
/**
|
|
182
|
+
* 绘制水印
|
|
183
|
+
*/
|
|
178
184
|
drawWaterMark() {
|
|
179
185
|
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);
|
|
180
186
|
},
|
|
187
|
+
// PC 端鼠标按下开始绘画
|
|
181
188
|
down(t) {
|
|
182
189
|
this.position(), this.startLine(t.clientX, t.clientY, t), this.target = t.target, this.target.addEventListener("mousemove", this.move), window.addEventListener("mouseup", this.up);
|
|
183
190
|
},
|
|
191
|
+
// PC 端鼠标按下开始绘画后,跟踪移动轨迹
|
|
184
192
|
move(t) {
|
|
185
193
|
this.moveLine(t.clientX, t.clientY, t);
|
|
186
194
|
},
|
|
195
|
+
// PC 端鼠标松开结束绘画
|
|
187
196
|
up() {
|
|
188
197
|
this.target && this.target.removeEventListener("mousemove", this.move), window.removeEventListener("mouseup", this.up), this.record();
|
|
189
198
|
},
|
|
199
|
+
// 移动端触摸开始绘画
|
|
190
200
|
touchstart(t) {
|
|
191
201
|
this.position(), this.startLine(t.changedTouches[0].clientX, t.changedTouches[0].clientY, t);
|
|
192
202
|
},
|
|
203
|
+
// 移动端触摸开始绘画后,跟踪滑动轨迹
|
|
193
204
|
touchmove(t) {
|
|
194
205
|
this.moveLine(t.touches[0].clientX, t.touches[0].clientY, t);
|
|
195
206
|
},
|
|
207
|
+
// 开始绘画
|
|
196
208
|
startLine(t, e) {
|
|
197
209
|
this.ctx.beginPath(), t -= this.start, e -= this.end, this.ctx.moveTo(t, e);
|
|
198
210
|
},
|
|
211
|
+
// 绘制移动轨迹
|
|
199
212
|
moveLine(t, e, i) {
|
|
200
213
|
i && i.preventDefault(), t -= this.start, e -= this.end, this.ctx.lineTo(t, e), this.ctx.stroke();
|
|
201
214
|
},
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var r = function() {
|
|
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 = {
|
|
30
|
+
name: "Skeleton",
|
|
31
|
+
props: {
|
|
32
|
+
loading: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !0
|
|
35
|
+
},
|
|
36
|
+
avatar: Boolean,
|
|
37
|
+
active: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !0
|
|
40
|
+
},
|
|
41
|
+
block: Boolean,
|
|
42
|
+
number: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 1
|
|
45
|
+
},
|
|
46
|
+
rows: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: 3
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
computed: {
|
|
52
|
+
styleName() {
|
|
53
|
+
return this.block ? {
|
|
54
|
+
width: "100%"
|
|
55
|
+
} : {};
|
|
56
|
+
},
|
|
57
|
+
className() {
|
|
58
|
+
let { active: e } = this;
|
|
59
|
+
return { [`${i}__loading`]: e };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, s = {};
|
|
63
|
+
var c = /* @__PURE__ */ o(
|
|
64
|
+
u,
|
|
65
|
+
r,
|
|
66
|
+
_,
|
|
67
|
+
!1,
|
|
68
|
+
v,
|
|
69
|
+
null,
|
|
70
|
+
null,
|
|
71
|
+
null
|
|
72
|
+
);
|
|
73
|
+
function v(e) {
|
|
74
|
+
for (let a in s)
|
|
75
|
+
this[a] = s[a];
|
|
76
|
+
}
|
|
77
|
+
const p = /* @__PURE__ */ function() {
|
|
78
|
+
return c.exports;
|
|
79
|
+
}();
|
|
80
|
+
export {
|
|
81
|
+
p as default
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-skeleton__avatar{width:40px;height:40px;line-height:40px;display:inline-block;border-radius:50%;background:#f2f2f2}.avue-skeleton__header{display:table-cell;vertical-align:top;padding-right:16px}.avue-skeleton__content{display:table-cell;vertical-align:top;width:100%}.avue-skeleton__title{margin-top:16px;height:16px;width:40%;background:#f2f2f2}.avue-skeleton__item{padding-top:16px;padding-bottom:16px;border-bottom:1px solid #e8e8e8}.avue-skeleton__item:last-child{border-bottom:none}.avue-skeleton__li{margin-bottom:10px;height:16px;background:#f2f2f2;list-style:none;width:100%}.avue-skeleton__li:last-child{width:50%}.avue-skeleton__loading{background:linear-gradient(90deg,#f2f2f2 25%,#e6e6e6 37%,#f2f2f2 63%);animation:avue-skeleton-loading 1.4s ease infinite;background-size:400% 100%}@keyframes avue-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}
|