@web-utils/component 2.0.13 → 2.7.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/dist/chunks/config.46422d7f.js +73 -0
- package/dist/chunks/confirmable-mixin.3a79781b.js +75 -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/form-input-mixin.ff5b58f7.js +24 -0
- package/dist/chunks/form-item-mixin.79f6eaff.js +128 -0
- package/dist/chunks/{822300f3.js → form-pick-mixin.61ad06b2.js} +3 -3
- package/dist/chunks/init.352281f5.js +121 -0
- package/dist/chunks/{44b78389.js → input-number-mixin.41a066be.js} +8 -8
- package/dist/chunks/{e1939731.js → mixins.5a78e0db.js} +5 -6
- 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/tab-mixin.8c0142e0.js +81 -0
- package/dist/chunks/util.5053d54e.js +264 -0
- package/dist/chunks/utils.97652d86.js +26 -0
- package/dist/chunks/utils.fa73de78.js +185 -0
- package/dist/chunks/vueComponentNormalizer.71e2aa87.js +32 -0
- package/dist/components/address-input/index.js +43 -56
- package/dist/components/address-input/style.css +1 -15
- 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 +30 -36
- package/dist/components/aside-menu/style.css +1 -9
- package/dist/components/avatar/index.js +106 -0
- package/dist/components/avatar/style.css +1 -0
- package/dist/components/awesome-button/index.js +32 -35
- package/dist/components/base.css +1 -66
- package/dist/components/capsule-tab/index.js +27 -33
- package/dist/components/capsule-tab/style.css +1 -32
- 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 +54 -88
- package/dist/components/chunk-file-uploader/style.css +1 -4
- package/dist/components/chunk-file-uploader-button/index.js +25 -31
- package/dist/components/chunk-file-uploader-button/style.css +1 -17
- package/dist/components/chunk-file-uploader-drop/index.js +28 -42
- package/dist/components/chunk-file-uploader-drop/style.css +1 -12
- package/dist/components/chunk-file-uploader-file/index.js +134 -211
- package/dist/components/chunk-file-uploader-file/style.css +1 -125
- package/dist/components/chunk-file-uploader-files/index.js +28 -34
- package/dist/components/chunk-file-uploader-files/style.css +1 -9
- package/dist/components/chunk-file-uploader-list/index.js +29 -35
- package/dist/components/chunk-file-uploader-list/style.css +1 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +30 -38
- package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
- package/dist/components/code/index.js +66 -0
- package/dist/components/code-mirror-editor/index.js +156 -181
- package/dist/components/code-mirror-editor/style.css +1 -17
- package/dist/components/color-picker/index.js +49 -68
- 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 +19 -21
- package/dist/components/confirmable/index.js +18 -19
- package/dist/components/context-menu/index.js +118 -130
- package/dist/components/context-menu/style.css +1 -88
- package/dist/components/count-up/index.js +120 -0
- package/dist/components/custom-scrollbar/index.js +50 -68
- 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 +62 -81
- 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 +89 -113
- package/dist/components/dynamic-table/style.css +1 -30
- package/dist/components/e-charts/index.js +126 -201
- package/dist/components/e-charts/style.css +1 -10
- package/dist/components/editable-progress/index.js +60 -93
- package/dist/components/editable-progress/style.css +1 -37
- package/dist/components/editable-tree/index.js +423 -638
- package/dist/components/editable-tree/style.css +1 -82
- package/dist/components/egd-collapse/index.js +33 -46
- package/dist/components/egd-collapse-item/index.js +60 -76
- package/dist/components/element-dialog/index.js +95 -147
- package/dist/components/element-dialog/style.css +1 -102
- package/dist/components/empty/index.js +59 -0
- package/dist/components/empty/style.css +1 -0
- package/dist/components/empty-view/index.js +28 -34
- package/dist/components/empty-view/style.css +1 -17
- package/dist/components/error-view/index.js +26 -32
- package/dist/components/error-view/style.css +1 -17
- package/dist/components/flex-column/index.js +25 -40
- package/dist/components/flex-item/index.js +29 -57
- package/dist/components/flex-row/index.js +25 -40
- package/dist/components/flex-scroller/index.js +26 -32
- package/dist/components/flex-scroller/style.css +1 -20
- 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 +34 -38
- package/dist/components/form-cascader/index.js +71 -81
- package/dist/components/form-checkbox-group/index.js +88 -113
- package/dist/components/form-checkbox-group/style.css +1 -51
- package/dist/components/form-date-picker/index.js +70 -132
- 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 +53 -39
- package/dist/components/form-input/index.js +56 -62
- package/dist/components/form-input-email/index.js +48 -60
- package/dist/components/form-input-id-card/index.js +53 -59
- package/dist/components/form-input-number/index.js +61 -68
- package/dist/components/form-input-number/style.css +1 -12
- package/dist/components/form-input-phone-number/index.js +49 -55
- package/dist/components/form-input-time/index.js +53 -59
- package/dist/components/form-item/index.js +80 -123
- package/dist/components/form-item/style.css +1 -11
- package/dist/components/form-item-config-provider/index.js +25 -26
- package/dist/components/form-item-group/index.js +85 -111
- package/dist/components/form-item-group/style.css +1 -30
- package/dist/components/form-radio-group/index.js +85 -104
- package/dist/components/form-radio-group/style.css +1 -53
- package/dist/components/form-select/index.js +76 -91
- package/dist/components/form-switch/index.js +51 -57
- package/dist/components/form-temp/index.js +149 -0
- package/dist/components/form-textarea/index.js +51 -57
- package/dist/components/form-view/index.js +165 -232
- package/dist/components/form-view/style.css +1 -158
- 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-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-upload/index.js +704 -0
- package/dist/components/fy-upload/style.css +1 -0
- package/dist/components/guide-steps/index.js +44 -58
- package/dist/components/guide-steps/style.css +1 -34
- 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 +29 -35
- package/dist/components/icon-card/style.css +1 -56
- 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 +29 -35
- package/dist/components/iframe-window/style.css +1 -20
- package/dist/components/image-viewer/index.js +48 -66
- package/dist/components/image-viewer/style.css +1 -21
- package/dist/components/input-number/index.js +127 -193
- package/dist/components/input-number/style.css +1 -15
- package/dist/components/input-number-range/index.js +45 -57
- package/dist/components/input-number-range/style.css +1 -12
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +77 -120
- 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 +26 -32
- package/dist/components/loading-view/style.css +1 -17
- 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 +27 -37
- package/dist/components/nav-bar/style.css +1 -17
- package/dist/components/not-implement/index.js +23 -31
- package/dist/components/not-implement/style.css +1 -15
- package/dist/components/notice/index.js +143 -0
- package/dist/components/notice/style.css +1 -0
- package/dist/components/page/index.js +22 -28
- package/dist/components/page/style.css +1 -12
- package/dist/components/page-header/index.js +30 -36
- package/dist/components/page-header/style.css +1 -14
- package/dist/components/page-index/index.js +62 -83
- package/dist/components/page-index/style.css +1 -23
- package/dist/components/page-index-top/index.js +53 -68
- package/dist/components/page-skeleton/index.js +31 -37
- package/dist/components/page-skeleton/style.css +1 -23
- package/dist/components/page-skeleton-new/index.js +42 -48
- package/dist/components/page-skeleton-new/style.css +1 -42
- package/dist/components/pageable-table/index.js +190 -253
- package/dist/components/pageable-table/style.css +1 -72
- package/dist/components/pageable-view/index.js +134 -199
- package/dist/components/pageable-view/style.css +1 -69
- package/dist/components/photo-swipe/index.js +116 -151
- package/dist/components/photo-swipe/style.css +1 -20
- 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 +34 -68
- package/dist/components/resize-observer/style.css +1 -31
- package/dist/components/search/index.js +142 -0
- package/dist/components/search/style.css +1 -0
- package/dist/components/search-popover/index.js +153 -211
- package/dist/components/search-popover/style.css +1 -93
- package/dist/components/sign/index.js +128 -0
- package/dist/components/sign/style.css +1 -0
- package/dist/components/sign-panel/index.js +105 -142
- package/dist/components/sign-panel/style.css +1 -97
- package/dist/components/skeleton/index.js +82 -0
- package/dist/components/skeleton/style.css +1 -0
- package/dist/components/split-pane/index.js +107 -162
- package/dist/components/split-pane/style.css +1 -100
- package/dist/components/stateful/index.js +31 -34
- package/dist/components/stateful/style.css +1 -33
- package/dist/components/static-pageable-table/index.js +37 -44
- package/dist/components/static-pageable-table/style.css +1 -9
- package/dist/components/swiper/index.js +85 -150
- package/dist/components/swiper/style.css +1 -43
- package/dist/components/tab/index.js +56 -72
- package/dist/components/tab/style.css +1 -122
- package/dist/components/tab-item/index.js +30 -35
- package/dist/components/table-column/index.js +30 -32
- package/dist/components/table-page/index.js +129 -0
- package/dist/components/table-view/index.js +156 -227
- package/dist/components/table-view/style.css +1 -95
- package/dist/components/tabs/index.js +90 -0
- package/dist/components/tabs/style.css +0 -0
- package/dist/components/tag-render/index.js +44 -58
- package/dist/components/tag-render/style.css +1 -33
- 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 +79 -95
- package/dist/components/tinymce-editor/style.css +1 -43
- package/dist/components/tinymce-wrapper/index.js +92 -121
- package/dist/components/tinymce-wrapper/style.css +1 -36
- package/dist/components/toolbar/index.js +63 -84
- package/dist/components/toolbar/style.css +1 -39
- package/dist/components/toolbar-button/index.js +41 -48
- package/dist/components/toolbar-button/style.css +1 -21
- package/dist/components/tree/index.js +427 -0
- package/dist/components/tree/style.css +1 -0
- package/dist/components/trigger/index.js +29 -36
- package/dist/components/verify/index.js +80 -0
- package/dist/components/verify/style.css +1 -0
- package/dist/components/vue-tags-input/index.js +305 -311
- package/dist/components/vue-tags-input/style.css +1 -682
- package/dist/components/watermark/index.js +43 -37
- package/dist/components/watermark/style.css +1 -11
- package/dist/index.css +4157 -1686
- package/dist/index.es.js +23131 -11014
- package/package.json +20 -4
- package/web-types.json +12777 -2788
- package/dist/chunks/3d28cc08.js +0 -57
- package/dist/chunks/5d33812d.js +0 -147
- package/dist/chunks/9d848bf6.js +0 -99
- package/dist/chunks/a0bb327b.js +0 -96
- package/dist/chunks/a8891d2c.js +0 -30
- package/dist/chunks/c69d5628.js +0 -248
- package/dist/chunks/de9fe802.js +0 -24
- package/dist/components/x-dialog/index.js +0 -199
- package/dist/components/x-dialog/style.css +0 -15
|
@@ -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,96 +1,62 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var _c = _vm._self._c || _h;
|
|
7
|
-
return _c("div", {
|
|
1
|
+
import { g as o } from "../../chunks/utils.fa73de78.js";
|
|
2
|
+
import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var a = function() {
|
|
4
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
5
|
+
return r("div", {
|
|
8
6
|
staticClass: "resize-observer",
|
|
9
7
|
attrs: {
|
|
10
|
-
|
|
8
|
+
tabindex: "-1"
|
|
11
9
|
}
|
|
12
10
|
});
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function initCompat() {
|
|
18
|
-
if (!initCompat.init) {
|
|
19
|
-
initCompat.init = true;
|
|
20
|
-
isIE = getInternetExplorerVersion() !== -1;
|
|
21
|
-
}
|
|
11
|
+
}, l = [];
|
|
12
|
+
let i;
|
|
13
|
+
function s() {
|
|
14
|
+
s.init || (s.init = !0, i = o() !== -1);
|
|
22
15
|
}
|
|
23
|
-
const
|
|
16
|
+
const c = {
|
|
24
17
|
name: "ResizeObserver",
|
|
25
18
|
mounted() {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
this._w = this.$el.offsetWidth;
|
|
29
|
-
this._h = this.$el.offsetHeight;
|
|
19
|
+
s(), this.$nextTick(() => {
|
|
20
|
+
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
|
|
30
21
|
});
|
|
31
|
-
const
|
|
32
|
-
this._resizeObject =
|
|
33
|
-
object.setAttribute("aria-hidden", "true");
|
|
34
|
-
object.setAttribute("tabindex", -1);
|
|
35
|
-
object.onload = this.addResizeHandlers;
|
|
36
|
-
object.type = "text/html";
|
|
37
|
-
if (isIE) {
|
|
38
|
-
this.$el.appendChild(object);
|
|
39
|
-
}
|
|
40
|
-
object.data = "about:blank";
|
|
41
|
-
if (!isIE) {
|
|
42
|
-
this.$el.appendChild(object);
|
|
43
|
-
}
|
|
22
|
+
const e = document.createElement("object");
|
|
23
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", i && this.$el.appendChild(e), e.data = "about:blank", i || this.$el.appendChild(e);
|
|
44
24
|
},
|
|
45
25
|
beforeDestroy() {
|
|
46
26
|
this.removeResizeHandlers();
|
|
47
27
|
},
|
|
48
28
|
methods: {
|
|
49
29
|
compareAndNotify() {
|
|
50
|
-
|
|
51
|
-
this._w
|
|
52
|
-
this._h
|
|
53
|
-
|
|
54
|
-
width: this._w,
|
|
55
|
-
height: this._h
|
|
56
|
-
});
|
|
57
|
-
}
|
|
30
|
+
(this._w !== this.$el.offsetWidth || this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.$emit("notify", {
|
|
31
|
+
width: this._w,
|
|
32
|
+
height: this._h
|
|
33
|
+
}));
|
|
58
34
|
},
|
|
59
35
|
addResizeHandlers() {
|
|
60
|
-
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify);
|
|
61
|
-
this.compareAndNotify();
|
|
36
|
+
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
62
37
|
},
|
|
63
38
|
removeResizeHandlers() {
|
|
64
|
-
|
|
65
|
-
if (!isIE && this._resizeObject.contentDocument) {
|
|
66
|
-
this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify);
|
|
67
|
-
}
|
|
68
|
-
this.$el.removeChild(this._resizeObject);
|
|
69
|
-
this._resizeObject.onload = null;
|
|
70
|
-
this._resizeObject = null;
|
|
71
|
-
}
|
|
39
|
+
this._resizeObject && this._resizeObject.onload && (!i && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
72
40
|
}
|
|
73
41
|
}
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
__vue2_injectStyles,
|
|
42
|
+
}, n = {};
|
|
43
|
+
var d = /* @__PURE__ */ h(
|
|
44
|
+
c,
|
|
45
|
+
a,
|
|
46
|
+
l,
|
|
47
|
+
!1,
|
|
48
|
+
_,
|
|
82
49
|
null,
|
|
83
50
|
null,
|
|
84
51
|
null
|
|
85
52
|
);
|
|
86
|
-
function
|
|
87
|
-
for (let
|
|
88
|
-
this[
|
|
89
|
-
}
|
|
53
|
+
function _(e) {
|
|
54
|
+
for (let t in n)
|
|
55
|
+
this[t] = n[t];
|
|
90
56
|
}
|
|
91
|
-
const
|
|
92
|
-
return
|
|
57
|
+
const m = /* @__PURE__ */ function() {
|
|
58
|
+
return d.exports;
|
|
93
59
|
}();
|
|
94
60
|
export {
|
|
95
|
-
|
|
61
|
+
m as default
|
|
96
62
|
};
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* 应用头部高度 */
|
|
3
|
-
/* 页面宽度 */
|
|
4
|
-
/* 侧栏宽度 */
|
|
5
|
-
/* 标签高度 */
|
|
6
|
-
/* 页面头部工具条高度 */
|
|
7
|
-
.resize-observer {
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 0;
|
|
10
|
-
left: 0;
|
|
11
|
-
z-index: -1;
|
|
12
|
-
display: block;
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 100%;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
border: none;
|
|
18
|
-
opacity: 0;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
}
|
|
21
|
-
.resize-observer > object {
|
|
22
|
-
position: absolute;
|
|
23
|
-
top: 0;
|
|
24
|
-
left: 0;
|
|
25
|
-
z-index: -1;
|
|
26
|
-
display: block;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
pointer-events: none;
|
|
31
|
-
}
|
|
1
|
+
.resize-observer{position:absolute;top:0;left:0;z-index:-1;display:block;width:100%;height:100%;overflow:hidden;background-color:transparent;border:none;opacity:0;pointer-events:none}.resize-observer>object{position:absolute;top:0;left:0;z-index:-1;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}
|
|
@@ -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}
|