@web-utils/component 2.7.29 → 2.7.31
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.7dec2bf2.js → config.75161c38.js} +29 -29
- package/dist/chunks/confirmable-mixin.851d6299.js +137 -0
- package/dist/chunks/dataformat.b8c8c01a.js +237 -0
- package/dist/chunks/detail.6135ade5.js +55 -0
- package/dist/chunks/dic.e57b75f2.js +215 -0
- package/dist/chunks/{event.fc358074.js → event.812c361c.js} +54 -23
- package/dist/chunks/{form-input-mixin.760cd65d.js → form-input-mixin.3e63b57f.js} +4 -4
- package/dist/chunks/{form-item-mixin.fa314b67.js → form-item-mixin.a56c101a.js} +44 -17
- package/dist/chunks/{form-pick-mixin.c4e0391b.js → form-pick-mixin.822300f3.js} +1 -1
- package/dist/chunks/{init.e0133910.js → init.38cbb3a2.js} +41 -21
- package/dist/chunks/{input-number-mixin.6849fa63.js → input-number-mixin.44b78389.js} +4 -4
- package/dist/chunks/{mixins.6a394a6c.js → mixins.e1939731.js} +3 -2
- package/dist/chunks/{packages.419bde01.js → packages.c4ea639d.js} +12 -6
- package/dist/chunks/{permission.07c49abf.js → permission.9c766972.js} +6 -1
- package/dist/chunks/slot.55598d0f.js +35 -0
- package/dist/chunks/{tab-mixin.9d568df9.js → tab-mixin.9d848bf6.js} +29 -11
- package/dist/chunks/util.b0d0b0ad.js +478 -0
- package/dist/chunks/{utils.d7f73f8d.js → utils.2a3ffac9.js} +89 -24
- package/dist/chunks/{utils.f44207f4.js → utils.a8891d2c.js} +9 -5
- package/dist/chunks/vueComponentNormalizer.9c6b8b3d.js +59 -0
- package/dist/components/address-input/index.js +30 -17
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/affix/index.js +78 -28
- package/dist/components/affix/style.css +5 -1
- package/dist/components/aside-menu/index.js +14 -8
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/avatar/index.js +33 -15
- package/dist/components/avatar/style.css +57 -1
- package/dist/components/awesome-button/index.js +45 -31
- package/dist/components/base.css +410 -1
- package/dist/components/capsule-tab/index.js +13 -7
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/card/index.js +33 -20
- package/dist/components/card/style.css +90 -1
- package/dist/components/carousel/index.js +18 -12
- package/dist/components/carousel/style.css +41 -1
- package/dist/components/chat/index.js +245 -139
- package/dist/components/chat/style.css +279 -1
- package/dist/components/chunk-file-uploader/index.js +63 -29
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/index.js +15 -9
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.js +45 -27
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/index.js +150 -73
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/index.js +15 -9
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/index.js +16 -10
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +18 -10
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/index.js +75 -47
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/index.js +62 -39
- package/dist/components/column/index.js +54 -29
- package/dist/components/column-default/index.js +47 -33
- package/dist/components/column-dynamic/index.js +26 -19
- package/dist/components/column-menu/index.js +98 -86
- package/dist/components/column-slot/index.js +135 -75
- package/dist/components/comment/index.js +28 -15
- package/dist/components/comment/style.css +92 -1
- package/dist/components/confirm-button/index.js +7 -5
- package/dist/components/confirmable/index.js +5 -4
- package/dist/components/context-menu/index.js +54 -32
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/count-up/index.js +55 -38
- package/dist/components/custom-scrollbar/index.js +45 -21
- package/dist/components/data-box/index.js +22 -16
- package/dist/components/data-box/style.css +58 -1
- package/dist/components/data-card/index.js +21 -15
- package/dist/components/data-card/style.css +46 -1
- package/dist/components/data-cardtext/index.js +19 -13
- package/dist/components/data-cardtext/style.css +36 -1
- package/dist/components/data-display/index.js +22 -16
- package/dist/components/data-display/style.css +37 -1
- package/dist/components/data-icons/index.js +23 -17
- package/dist/components/data-icons/style.css +53 -1
- package/dist/components/data-imgtext/index.js +26 -20
- package/dist/components/data-imgtext/style.css +70 -1
- package/dist/components/data-operatext/index.js +20 -14
- package/dist/components/data-operatext/style.css +81 -1
- package/dist/components/data-panel/index.js +21 -15
- package/dist/components/data-panel/style.css +37 -1
- package/dist/components/data-pay/index.js +29 -23
- package/dist/components/data-pay/style.css +102 -1
- package/dist/components/data-price/index.js +19 -13
- package/dist/components/data-price/style.css +81 -1
- package/dist/components/data-progress/index.js +26 -20
- package/dist/components/data-progress/style.css +30 -1
- package/dist/components/data-rotate/index.js +21 -15
- package/dist/components/data-rotate/style.css +50 -1
- package/dist/components/data-table-picker/index.js +47 -28
- package/dist/components/data-tabs/index.js +22 -16
- package/dist/components/data-tabs/style.css +70 -1
- package/dist/components/dialog-column/index.js +46 -33
- package/dist/components/dialog-excel/index.js +102 -53
- package/dist/components/dialog-filter/index.js +64 -51
- package/dist/components/dialog-form/index.js +56 -115
- package/dist/components/dialog-form/style.css +10 -1
- package/dist/components/dynamic-table/index.js +66 -42
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/index.js +127 -46
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/easy-popup/index.js +32 -14
- package/dist/components/easy-popup/style.css +18 -1
- package/dist/components/editable-progress/index.js +64 -31
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/index.js +513 -287
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/index.js +25 -12
- package/dist/components/egd-collapse-item/index.js +41 -25
- package/dist/components/element-dialog/index.js +101 -48
- package/dist/components/element-dialog/style.css +88 -1
- package/dist/components/empty-view/index.js +13 -7
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/index.js +12 -6
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.js +39 -17
- package/dist/components/flex-item/index.js +59 -24
- package/dist/components/flex-row/index.js +39 -17
- package/dist/components/flex-scroller/index.js +13 -7
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/flow/index.js +116 -64
- package/dist/components/flow/style.css +44 -1
- package/dist/components/flow-node/index.js +29 -21
- package/dist/components/flow-viewer/index.js +97 -52
- package/dist/components/flow-viewer/style.css +19 -1
- package/dist/components/form-button/index.js +12 -8
- package/dist/components/form-cascader/index.js +55 -40
- package/dist/components/form-checkbox-group/index.js +90 -60
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/index.js +113 -44
- package/dist/components/form-group/index.js +23 -17
- package/dist/components/form-group/style.css +76 -1
- package/dist/components/form-holder/index.js +41 -30
- package/dist/components/form-input/index.js +42 -31
- package/dist/components/form-input-email/index.js +47 -30
- package/dist/components/form-input-id-card/index.js +40 -29
- package/dist/components/form-input-number/index.js +50 -38
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/index.js +40 -29
- package/dist/components/form-input-time/index.js +40 -29
- package/dist/components/form-item/index.js +99 -47
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/index.js +9 -8
- package/dist/components/form-item-group/index.js +69 -43
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/index.js +77 -53
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/index.js +71 -51
- package/dist/components/form-switch/index.js +41 -30
- package/dist/components/form-temp/index.js +49 -29
- package/dist/components/form-textarea/index.js +45 -34
- package/dist/components/form-view/index.js +152 -81
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/fy-array/index.js +51 -43
- package/dist/components/fy-array/style.css +18 -1
- package/dist/components/fy-article/index.js +24 -13
- package/dist/components/fy-article/style.css +40 -1
- package/dist/components/fy-cascader/index.js +39 -29
- package/dist/components/fy-checkbox/index.js +38 -27
- package/dist/components/fy-checkbox/style.css +15 -1
- package/dist/components/fy-code/index.js +19 -12
- package/dist/components/fy-curd/index.js +290 -152
- package/dist/components/fy-curd/style.css +239 -1
- package/dist/components/fy-date/index.js +24 -18
- package/dist/components/fy-date/style.css +21 -1
- package/dist/components/fy-dialog-form/index.js +127 -54
- package/dist/components/fy-draggable/index.js +196 -73
- package/dist/components/fy-draggable/style.css +136 -1
- package/dist/components/fy-dynamic/index.js +116 -73
- package/dist/components/fy-dynamic/style.css +35 -1
- package/dist/components/fy-empty/index.js +15 -9
- package/dist/components/fy-empty/style.css +24 -1
- package/dist/components/fy-form/index.js +399 -221
- package/dist/components/fy-form/style.css +79 -1
- package/dist/components/fy-form-design/index.js +2267 -1630
- package/dist/components/fy-form-design/style.css +578 -1
- package/dist/components/fy-form-menu/index.js +43 -35
- package/dist/components/fy-input/index.js +46 -35
- package/dist/components/fy-input-color/index.js +40 -33
- package/dist/components/fy-input-icon/index.js +58 -37
- package/dist/components/fy-input-icon/style.css +39 -1
- package/dist/components/fy-input-map/index.js +113 -68
- package/dist/components/fy-input-map/style.css +50 -1
- package/dist/components/fy-input-number/index.js +29 -24
- package/dist/components/fy-input-table/index.js +82 -48
- package/dist/components/fy-input-table/style.css +10 -1
- package/dist/components/fy-input-tree/index.js +104 -60
- package/dist/components/fy-input-tree/style.css +25 -1
- package/dist/components/fy-progress/index.js +15 -10
- package/dist/components/fy-radio/index.js +20 -14
- package/dist/components/fy-radio/style.css +12 -1
- package/dist/components/fy-rate/index.js +21 -15
- package/dist/components/fy-rate/style.css +9 -1
- package/dist/components/fy-select/index.js +73 -55
- package/dist/components/fy-select/style.css +25 -1
- package/dist/components/fy-slider/index.js +22 -17
- package/dist/components/fy-switch/index.js +17 -12
- package/dist/components/fy-tabs/index.js +20 -12
- package/dist/components/fy-tabs/style.css +6 -0
- package/dist/components/fy-time/index.js +29 -18
- package/dist/components/fy-title/index.js +16 -8
- package/dist/components/fy-title/style.css +11 -1
- package/dist/components/fy-tree/index.js +135 -72
- package/dist/components/fy-tree/style.css +46 -1
- package/dist/components/fy-u-editor/index.js +172 -67
- package/dist/components/fy-u-editor/style.css +15 -1
- package/dist/components/fy-upload/index.js +317 -148
- package/dist/components/fy-upload/style.css +60 -1
- package/dist/components/guide-steps/index.js +31 -17
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/header-menu/index.js +86 -66
- package/dist/components/header-search/index.js +92 -60
- package/dist/components/highlight-j-s/index.js +28 -15
- package/dist/components/highlight-j-s/style.css +21 -1
- package/dist/components/icon-card/index.js +13 -7
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/icon-temp/index.js +12 -6
- package/dist/components/icon-temp/style.css +21 -1
- package/dist/components/iframe-window/index.js +20 -14
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-cropper/index.js +71 -162
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/index.js +78 -170
- package/dist/components/image-preview/style.css +72 -1
- package/dist/components/image-viewer/index.js +40 -22
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/index.js +122 -56
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/index.js +32 -20
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/keep-view-alive/index.js +68 -21
- package/dist/components/keyboard/index.js +217 -132
- package/dist/components/keyboard/style.css +547 -1
- package/dist/components/license/index.js +81 -35
- package/dist/components/loading-view/index.js +12 -6
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/login/index.js +91 -62
- package/dist/components/login/style.css +25 -1
- package/dist/components/name-avatar/index.js +32 -10
- package/dist/components/name-avatar/style.css +35 -1
- package/dist/components/nav-bar/index.js +21 -11
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/index.js +16 -8
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/notice/index.js +40 -27
- package/dist/components/notice/style.css +54 -1
- package/dist/components/page/index.js +13 -7
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/index.js +15 -9
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/index.js +62 -37
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/index.js +53 -34
- package/dist/components/page-skeleton/index.js +15 -9
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/index.js +15 -9
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/index.js +187 -106
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/index.js +164 -80
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.js +92 -46
- package/dist/components/process-designer/index.js +961 -772
- package/dist/components/process-designer/style.css +1186 -1
- package/dist/components/properties-panel/index.js +1488 -1044
- package/dist/components/properties-panel/style.css +122 -1
- package/dist/components/queue/index.js +24 -12
- package/dist/components/record-video/index.js +53 -27
- package/dist/components/record-video/style.css +53 -1
- package/dist/components/resize-observer/index.js +52 -18
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search/index.js +41 -22
- package/dist/components/search/style.css +57 -1
- package/dist/components/search-popover/index.js +153 -91
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign/index.js +138 -35
- package/dist/components/sign/style.css +12 -1
- package/dist/components/sign-panel/index.js +96 -46
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/skeleton/index.js +22 -12
- package/dist/components/skeleton/style.css +61 -1
- package/dist/components/split-pane/index.js +125 -60
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/index.js +8 -5
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/index.js +22 -15
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.js +127 -58
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/index.js +34 -16
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/index.js +14 -9
- package/dist/components/table-column/index.js +26 -17
- package/dist/components/table-page/index.js +42 -23
- package/dist/components/table-view/index.js +162 -87
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/index.js +41 -22
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/text-ellipsis/index.js +48 -26
- package/dist/components/text-ellipsis/style.css +9 -1
- package/dist/components/tinymce-editor/index.js +80 -60
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/index.js +77 -41
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/index.js +46 -25
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/index.js +46 -35
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/index.js +15 -8
- package/dist/components/verify/index.js +15 -8
- package/dist/components/verify/style.css +15 -1
- package/dist/components/vue-tags-input/index.js +233 -113
- package/dist/components/vue-tags-input/style.css +688 -1
- package/dist/components/watermark/index.js +33 -14
- package/dist/components/watermark/style.css +11 -1
- package/dist/index.css +2434 -1750
- package/dist/index.es.js +15982 -9409
- package/package.json +4 -4
- package/web-types.json +1 -1
- package/dist/chunks/confirmable-mixin.35bd1934.js +0 -104
- package/dist/chunks/dataformat.9cc4428a.js +0 -158
- package/dist/chunks/detail.544c52b0.js +0 -29
- package/dist/chunks/dic.9de2fe5a.js +0 -135
- package/dist/chunks/slot.a7387ecc.js +0 -27
- package/dist/chunks/util.89913643.js +0 -261
- package/dist/chunks/vueComponentNormalizer.77ec6792.js +0 -32
|
@@ -1,38 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
|
|
5
|
-
for (var prop in b || (b = {}))
|
|
6
|
-
__hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
|
|
7
|
-
if (__getOwnPropSymbols)
|
|
8
|
-
for (var prop of __getOwnPropSymbols(b))
|
|
9
|
-
__propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
|
|
10
|
-
return a;
|
|
11
|
-
};
|
|
12
|
-
import { i as isMediaType } from "../../chunks/util.89913643.js";
|
|
1
|
+
import { i as isMediaType } from "../../chunks/util.b0d0b0ad.js";
|
|
13
2
|
import { setPx } from "@web-utils/core";
|
|
14
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
15
|
-
import Vue from "vue";
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
16
4
|
var render = function() {
|
|
17
|
-
var _vm = this
|
|
5
|
+
var _vm = this;
|
|
6
|
+
var _h = _vm.$createElement;
|
|
7
|
+
var _c = _vm._self._c || _h;
|
|
18
8
|
return _vm.isShow ? _c("div", {
|
|
19
9
|
staticClass: "avue-image-preview"
|
|
20
10
|
}, [_vm.ops.modal ? _c("div", {
|
|
21
11
|
staticClass: "avue-image-preview__mask",
|
|
22
12
|
on: {
|
|
23
|
-
click: _vm.close
|
|
13
|
+
"click": _vm.close
|
|
24
14
|
}
|
|
25
15
|
}) : _vm._e(), _c("span", {
|
|
26
16
|
staticClass: "el-image-viewer__btn el-image-viewer__close",
|
|
27
17
|
on: {
|
|
28
|
-
click: _vm.close
|
|
18
|
+
"click": _vm.close
|
|
29
19
|
}
|
|
30
20
|
}, [_c("i", {
|
|
31
21
|
staticClass: "el-icon-circle-close"
|
|
32
22
|
})]), _vm.isRrrow ? _c("span", {
|
|
33
23
|
staticClass: "el-image-viewer__btn el-image-viewer__prev",
|
|
34
24
|
on: {
|
|
35
|
-
click: function($event) {
|
|
25
|
+
"click": function($event) {
|
|
36
26
|
return _vm.handlePrev();
|
|
37
27
|
}
|
|
38
28
|
}
|
|
@@ -41,7 +31,7 @@ var render = function() {
|
|
|
41
31
|
})]) : _vm._e(), _vm.isRrrow ? _c("span", {
|
|
42
32
|
staticClass: "el-image-viewer__btn el-image-viewer__next",
|
|
43
33
|
on: {
|
|
44
|
-
click: function($event) {
|
|
34
|
+
"click": function($event) {
|
|
45
35
|
return _vm.handleNext();
|
|
46
36
|
}
|
|
47
37
|
}
|
|
@@ -53,51 +43,51 @@ var render = function() {
|
|
|
53
43
|
}, [_c("ElCarousel", {
|
|
54
44
|
ref: "carousel",
|
|
55
45
|
attrs: {
|
|
56
|
-
"show-indicators":
|
|
46
|
+
"show-indicators": false,
|
|
57
47
|
"initial-index": _vm.index,
|
|
58
48
|
"initial-swipe": _vm.index,
|
|
59
|
-
interval: 0,
|
|
60
|
-
arrow: "never",
|
|
49
|
+
"interval": 0,
|
|
50
|
+
"arrow": "never",
|
|
61
51
|
"indicator-position": "none"
|
|
62
52
|
},
|
|
63
53
|
on: {
|
|
64
|
-
change: _vm.handleChange
|
|
54
|
+
"change": _vm.handleChange
|
|
65
55
|
}
|
|
66
56
|
}, _vm._l(_vm.datas, function(item, indexs) {
|
|
67
57
|
return _c("ElCarouselItem", {
|
|
68
58
|
key: indexs,
|
|
69
59
|
nativeOn: {
|
|
70
|
-
click: function($event) {
|
|
60
|
+
"click": function($event) {
|
|
71
61
|
if ($event.target !== $event.currentTarget)
|
|
72
62
|
return null;
|
|
73
|
-
_vm.ops.closeOnClickModal
|
|
63
|
+
_vm.ops.closeOnClickModal ? _vm.close() : "";
|
|
74
64
|
}
|
|
75
65
|
}
|
|
76
66
|
}, [_vm.isMediaType(item) ? _c(_vm.isMediaType(item), {
|
|
77
67
|
ref: "item",
|
|
78
|
-
refInFor:
|
|
68
|
+
refInFor: true,
|
|
79
69
|
tag: "Component",
|
|
80
70
|
style: [_vm.styleName, _vm.styleBoxName],
|
|
81
71
|
attrs: {
|
|
82
|
-
id: `avue-image-preview__${indexs}`,
|
|
83
|
-
src: item.url,
|
|
84
|
-
controls: "controls",
|
|
85
|
-
ondragstart: "return false"
|
|
72
|
+
"id": `avue-image-preview__${indexs}`,
|
|
73
|
+
"src": item.url,
|
|
74
|
+
"controls": "controls",
|
|
75
|
+
"ondragstart": "return false"
|
|
86
76
|
},
|
|
87
77
|
on: {
|
|
88
|
-
click: function($event) {
|
|
78
|
+
"click": function($event) {
|
|
89
79
|
return _vm.handleClick(item, indexs);
|
|
90
80
|
},
|
|
91
|
-
mousedown: _vm.move
|
|
81
|
+
"mousedown": _vm.move
|
|
92
82
|
}
|
|
93
83
|
}) : _c("div", {
|
|
94
84
|
staticClass: "avue-image-preview__file",
|
|
95
85
|
attrs: {
|
|
96
|
-
id: `avue-image-preview__${indexs}`
|
|
86
|
+
"id": `avue-image-preview__${indexs}`
|
|
97
87
|
},
|
|
98
88
|
on: {
|
|
99
|
-
click: function($event) {
|
|
100
|
-
return _vm.handleClick(item, indexs,
|
|
89
|
+
"click": function($event) {
|
|
90
|
+
return _vm.handleClick(item, indexs, true);
|
|
101
91
|
}
|
|
102
92
|
}
|
|
103
93
|
}, [_c("span", [_c("i", {
|
|
@@ -110,41 +100,43 @@ var render = function() {
|
|
|
110
100
|
}, [_c("i", {
|
|
111
101
|
staticClass: "el-icon-zoom-out",
|
|
112
102
|
on: {
|
|
113
|
-
click: _vm.subScale
|
|
103
|
+
"click": _vm.subScale
|
|
114
104
|
}
|
|
115
105
|
}), _c("i", {
|
|
116
106
|
staticClass: "el-icon-zoom-in",
|
|
117
107
|
on: {
|
|
118
|
-
click: _vm.addScale
|
|
108
|
+
"click": _vm.addScale
|
|
119
109
|
}
|
|
120
110
|
}), _c("i", {
|
|
121
111
|
staticClass: "el-image-viewer__actions__divider"
|
|
122
112
|
}), _c("i", {
|
|
123
113
|
staticClass: "el-icon-printer",
|
|
124
114
|
on: {
|
|
125
|
-
click: _vm.handlePrint
|
|
115
|
+
"click": _vm.handlePrint
|
|
126
116
|
}
|
|
127
117
|
}), _c("i", {
|
|
128
118
|
staticClass: "el-image-viewer__actions__divider"
|
|
129
119
|
}), _c("i", {
|
|
130
120
|
staticClass: "el-icon-refresh-left",
|
|
131
121
|
on: {
|
|
132
|
-
click: function($event) {
|
|
122
|
+
"click": function($event) {
|
|
133
123
|
_vm.rotate = _vm.rotate - 90;
|
|
134
124
|
}
|
|
135
125
|
}
|
|
136
126
|
}), _c("i", {
|
|
137
127
|
staticClass: "el-icon-refresh-right",
|
|
138
128
|
on: {
|
|
139
|
-
click: function($event) {
|
|
129
|
+
"click": function($event) {
|
|
140
130
|
_vm.rotate = _vm.rotate + 90;
|
|
141
131
|
}
|
|
142
132
|
}
|
|
143
133
|
})])])]) : _vm._e();
|
|
144
|
-
}
|
|
145
|
-
|
|
134
|
+
};
|
|
135
|
+
var staticRenderFns = [];
|
|
136
|
+
const ImagePreview_vue_vue_type_style_index_0_lang = "";
|
|
137
|
+
const __vue2_script = {
|
|
146
138
|
name: "ImagePreview",
|
|
147
|
-
imagePreview,
|
|
139
|
+
// imagePreview,
|
|
148
140
|
data() {
|
|
149
141
|
return {
|
|
150
142
|
left: 0,
|
|
@@ -152,7 +144,7 @@ const __vue2_script$1 = {
|
|
|
152
144
|
scale: 1,
|
|
153
145
|
datas: [],
|
|
154
146
|
rotate: 0,
|
|
155
|
-
isShow:
|
|
147
|
+
isShow: false,
|
|
156
148
|
index: 0,
|
|
157
149
|
ops: {}
|
|
158
150
|
};
|
|
@@ -183,13 +175,19 @@ const __vue2_script$1 = {
|
|
|
183
175
|
this.$Print(`#avue-image-preview__${this.index}`);
|
|
184
176
|
},
|
|
185
177
|
handlePrev() {
|
|
186
|
-
this.$refs.carousel.prev()
|
|
178
|
+
this.$refs.carousel.prev();
|
|
179
|
+
this.index = this.$refs.carousel.activeIndex;
|
|
180
|
+
this.stopItem();
|
|
187
181
|
},
|
|
188
182
|
handleNext() {
|
|
189
|
-
this.$refs.carousel.next()
|
|
183
|
+
this.$refs.carousel.next();
|
|
184
|
+
this.index = this.$refs.carousel.activeIndex;
|
|
185
|
+
this.stopItem();
|
|
190
186
|
},
|
|
191
187
|
stopItem() {
|
|
192
|
-
this.left = 0
|
|
188
|
+
this.left = 0;
|
|
189
|
+
this.top = 0;
|
|
190
|
+
this.$refs.item.forEach((ele) => {
|
|
193
191
|
ele.pause && ele.pause();
|
|
194
192
|
});
|
|
195
193
|
},
|
|
@@ -197,156 +195,66 @@ const __vue2_script$1 = {
|
|
|
197
195
|
return isMediaType(item.url, item.type);
|
|
198
196
|
},
|
|
199
197
|
subScale() {
|
|
200
|
-
|
|
198
|
+
if (this.scale !== 0.2) {
|
|
199
|
+
this.scale = parseFloat((this.scale - 0.2).toFixed(2));
|
|
200
|
+
}
|
|
201
201
|
},
|
|
202
202
|
addScale() {
|
|
203
203
|
this.scale = parseFloat((this.scale + 0.2).toFixed(2));
|
|
204
204
|
},
|
|
205
205
|
handleChange() {
|
|
206
|
-
this.scale = 1
|
|
206
|
+
this.scale = 1;
|
|
207
|
+
this.rotate = 0;
|
|
207
208
|
},
|
|
208
209
|
move(e) {
|
|
209
|
-
let disX = e.clientX
|
|
210
|
+
let disX = e.clientX;
|
|
211
|
+
let disY = e.clientY;
|
|
210
212
|
const scale = 2;
|
|
211
213
|
document.onmousemove = (e2) => {
|
|
212
|
-
const left = e2.clientX - disX
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
const left = e2.clientX - disX;
|
|
215
|
+
const top = e2.clientY - disY;
|
|
216
|
+
disX = e2.clientX;
|
|
217
|
+
disY = e2.clientY;
|
|
218
|
+
this.left = this.left + left * scale;
|
|
219
|
+
this.top = this.top + top * scale;
|
|
216
220
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
},
|
|
221
|
-
close() {
|
|
222
|
-
this.isShow = !1, typeof this.ops.beforeClose == "function" && this.ops.beforeClose(this.datas, this.index), this.$destroy(), this.$el.remove();
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}, __cssModules$1 = {};
|
|
226
|
-
var __component__$1 = /* @__PURE__ */ normalizeComponent(
|
|
227
|
-
__vue2_script$1,
|
|
228
|
-
render,
|
|
229
|
-
staticRenderFns,
|
|
230
|
-
!1,
|
|
231
|
-
__vue2_injectStyles$1,
|
|
232
|
-
null,
|
|
233
|
-
null,
|
|
234
|
-
null
|
|
235
|
-
);
|
|
236
|
-
function __vue2_injectStyles$1(context) {
|
|
237
|
-
for (let o in __cssModules$1)
|
|
238
|
-
this[o] = __cssModules$1[o];
|
|
239
|
-
}
|
|
240
|
-
const ImagePreview$1 = /* @__PURE__ */ function() {
|
|
241
|
-
return __component__$1.exports;
|
|
242
|
-
}(), imagePreview = (datas = [], index = 0, ops = {}) => {
|
|
243
|
-
const ImagePreviewConstructor = Vue.extend(ImagePreview$1), options = {
|
|
244
|
-
datas,
|
|
245
|
-
index,
|
|
246
|
-
ops: __spreadValues({
|
|
247
|
-
closeOnClickModal: !1,
|
|
248
|
-
beforeClose: null,
|
|
249
|
-
click: null,
|
|
250
|
-
modal: !0
|
|
251
|
-
}, ops)
|
|
252
|
-
}, instance = new ImagePreviewConstructor({
|
|
253
|
-
data: options
|
|
254
|
-
}).$mount();
|
|
255
|
-
return document.body.appendChild(instance.$el), instance.isShow = !0, instance;
|
|
256
|
-
}, __vue2_script = {
|
|
257
|
-
name: "ImagePreview",
|
|
258
|
-
imagePreview,
|
|
259
|
-
data() {
|
|
260
|
-
return {
|
|
261
|
-
left: 0,
|
|
262
|
-
top: 0,
|
|
263
|
-
scale: 1,
|
|
264
|
-
datas: [],
|
|
265
|
-
rotate: 0,
|
|
266
|
-
isShow: !1,
|
|
267
|
-
index: 0,
|
|
268
|
-
ops: {}
|
|
269
|
-
};
|
|
270
|
-
},
|
|
271
|
-
computed: {
|
|
272
|
-
styleBoxName() {
|
|
273
|
-
return {
|
|
274
|
-
marginLeft: setPx(this.left),
|
|
275
|
-
marginTop: setPx(this.top)
|
|
276
|
-
};
|
|
277
|
-
},
|
|
278
|
-
styleName() {
|
|
279
|
-
return {
|
|
280
|
-
transform: `scale(${this.scale}) rotate(${this.rotate}deg)`,
|
|
281
|
-
maxWidth: "100%",
|
|
282
|
-
maxHeight: "100%"
|
|
221
|
+
document.onmouseup = () => {
|
|
222
|
+
document.onmousemove = null;
|
|
223
|
+
document.onmouseup = null;
|
|
283
224
|
};
|
|
284
225
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
return url.substring(url.lastIndexOf("/") + 1);
|
|
292
|
-
},
|
|
293
|
-
handlePrint() {
|
|
294
|
-
this.$Print(`#avue-image-preview__${this.index}`);
|
|
295
|
-
},
|
|
296
|
-
handlePrev() {
|
|
297
|
-
this.$refs.carousel.prev(), this.index = this.$refs.carousel.activeIndex, this.stopItem();
|
|
298
|
-
},
|
|
299
|
-
handleNext() {
|
|
300
|
-
this.$refs.carousel.next(), this.index = this.$refs.carousel.activeIndex, this.stopItem();
|
|
301
|
-
},
|
|
302
|
-
stopItem() {
|
|
303
|
-
this.left = 0, this.top = 0, this.$refs.item.forEach((ele) => {
|
|
304
|
-
ele.pause && ele.pause();
|
|
305
|
-
});
|
|
306
|
-
},
|
|
307
|
-
isMediaType(item) {
|
|
308
|
-
return isMediaType(item.url, item.type);
|
|
309
|
-
},
|
|
310
|
-
subScale() {
|
|
311
|
-
this.scale !== 0.2 && (this.scale = parseFloat((this.scale - 0.2).toFixed(2)));
|
|
312
|
-
},
|
|
313
|
-
addScale() {
|
|
314
|
-
this.scale = parseFloat((this.scale + 0.2).toFixed(2));
|
|
315
|
-
},
|
|
316
|
-
handleChange() {
|
|
317
|
-
this.scale = 1, this.rotate = 0;
|
|
318
|
-
},
|
|
319
|
-
move(e) {
|
|
320
|
-
let disX = e.clientX, disY = e.clientY;
|
|
321
|
-
const scale = 2;
|
|
322
|
-
document.onmousemove = (e2) => {
|
|
323
|
-
const left = e2.clientX - disX, top = e2.clientY - disY;
|
|
324
|
-
disX = e2.clientX, disY = e2.clientY, this.left = this.left + left * scale, this.top = this.top + top * scale;
|
|
325
|
-
}, document.onmouseup = () => {
|
|
326
|
-
document.onmousemove = null, document.onmouseup = null;
|
|
327
|
-
};
|
|
328
|
-
},
|
|
329
|
-
handleClick(item, index, df = !1) {
|
|
330
|
-
typeof this.ops.click == "function" ? this.ops.click(item, index) : df && window.open(item.url);
|
|
226
|
+
handleClick(item, index, df = false) {
|
|
227
|
+
if (typeof this.ops.click === "function") {
|
|
228
|
+
this.ops.click(item, index);
|
|
229
|
+
} else if (df) {
|
|
230
|
+
window.open(item.url);
|
|
231
|
+
}
|
|
331
232
|
},
|
|
332
233
|
close() {
|
|
333
|
-
this.isShow =
|
|
234
|
+
this.isShow = false;
|
|
235
|
+
if (typeof this.ops.beforeClose === "function") {
|
|
236
|
+
this.ops.beforeClose(this.datas, this.index);
|
|
237
|
+
}
|
|
238
|
+
this.$destroy();
|
|
239
|
+
this.$el.remove();
|
|
334
240
|
}
|
|
335
241
|
}
|
|
336
|
-
}
|
|
242
|
+
};
|
|
243
|
+
const __cssModules = {};
|
|
337
244
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
338
245
|
__vue2_script,
|
|
339
246
|
render,
|
|
340
247
|
staticRenderFns,
|
|
341
|
-
|
|
248
|
+
false,
|
|
342
249
|
__vue2_injectStyles,
|
|
343
250
|
null,
|
|
344
251
|
null,
|
|
345
252
|
null
|
|
346
253
|
);
|
|
347
254
|
function __vue2_injectStyles(context) {
|
|
348
|
-
for (let o in __cssModules)
|
|
255
|
+
for (let o in __cssModules) {
|
|
349
256
|
this[o] = __cssModules[o];
|
|
257
|
+
}
|
|
350
258
|
}
|
|
351
259
|
const ImagePreview = /* @__PURE__ */ function() {
|
|
352
260
|
return __component__.exports;
|
|
@@ -1 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.avue-img--center {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
}
|
|
12
|
+
.avue-img--fullscreen .el-dialog__body {
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
15
|
+
.avue-image-preview {
|
|
16
|
+
position: fixed;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
transition: all 0.5s;
|
|
22
|
+
z-index: 9998;
|
|
23
|
+
}
|
|
24
|
+
.avue-image-preview .el-image-viewer__close i {
|
|
25
|
+
color: #fff;
|
|
26
|
+
}
|
|
27
|
+
.avue-image-preview .el-image-viewer__btn {
|
|
28
|
+
z-index: 1024;
|
|
29
|
+
}
|
|
30
|
+
.avue-image-preview img {
|
|
31
|
+
transition: all 0.5s;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
.avue-image-preview__file {
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
.avue-image-preview__file a {
|
|
38
|
+
color: #fff;
|
|
39
|
+
}
|
|
40
|
+
.avue-image-preview__file i {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
font-size: 80px;
|
|
43
|
+
}
|
|
44
|
+
.avue-image-preview__mask {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
left: 0;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
background: rgba(0, 0, 0, 0.5);
|
|
51
|
+
}
|
|
52
|
+
.avue-image-preview__box {
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 100%;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
}
|
|
59
|
+
.avue-image-preview__box .el-carousel {
|
|
60
|
+
width: 90%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
}
|
|
63
|
+
.avue-image-preview__box .el-carousel__container {
|
|
64
|
+
height: 100%;
|
|
65
|
+
}
|
|
66
|
+
.avue-image-preview__box .el-carousel__item {
|
|
67
|
+
width: 100%;
|
|
68
|
+
height: 100%;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import Viewer from "viewerjs";
|
|
2
2
|
import "viewerjs/dist/viewer.css";
|
|
3
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
4
4
|
var render = function() {
|
|
5
|
-
var _vm = this
|
|
5
|
+
var _vm = this;
|
|
6
|
+
var _h = _vm.$createElement;
|
|
7
|
+
var _c = _vm._self._c || _h;
|
|
6
8
|
return _c("div", {
|
|
7
9
|
directives: [{
|
|
8
10
|
name: "show",
|
|
@@ -22,12 +24,14 @@ var render = function() {
|
|
|
22
24
|
},
|
|
23
25
|
attrs: {
|
|
24
26
|
"data-src": item.src,
|
|
25
|
-
alt: item.alt
|
|
27
|
+
"alt": item.alt
|
|
26
28
|
}
|
|
27
29
|
});
|
|
28
30
|
});
|
|
29
31
|
})], 2);
|
|
30
|
-
}
|
|
32
|
+
};
|
|
33
|
+
var staticRenderFns = [];
|
|
34
|
+
const ImageViewer_vue_vue_type_style_index_0_lang = "";
|
|
31
35
|
const __vue2_script = {
|
|
32
36
|
name: "ImageViewer",
|
|
33
37
|
props: {
|
|
@@ -39,53 +43,67 @@ const __vue2_script = {
|
|
|
39
43
|
lazy: Boolean
|
|
40
44
|
},
|
|
41
45
|
mounted() {
|
|
42
|
-
this.lazy
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
if (!this.lazy) {
|
|
47
|
+
this.init({
|
|
48
|
+
container: this.$refs.wrapper,
|
|
49
|
+
options: {
|
|
50
|
+
navbar: false,
|
|
51
|
+
backdrop: "static",
|
|
52
|
+
url: this.url
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
50
56
|
},
|
|
51
57
|
updated() {
|
|
52
58
|
var _a;
|
|
53
|
-
|
|
59
|
+
if (!this.lazy) {
|
|
60
|
+
(_a = this.gallery) == null ? void 0 : _a.update();
|
|
61
|
+
}
|
|
54
62
|
},
|
|
55
63
|
beforeDestroy() {
|
|
56
|
-
this.lazy
|
|
64
|
+
if (!this.lazy) {
|
|
65
|
+
this.gallery.destroy();
|
|
66
|
+
}
|
|
57
67
|
},
|
|
58
68
|
methods: {
|
|
59
69
|
init({ container, options }) {
|
|
60
70
|
this.gallery = new Viewer(container, options);
|
|
61
71
|
},
|
|
62
72
|
show({ container, options, index } = {}) {
|
|
63
|
-
container = container || this.$refs.wrapper
|
|
64
|
-
|
|
73
|
+
container = container || this.$refs.wrapper;
|
|
74
|
+
options = options || {
|
|
75
|
+
navbar: false,
|
|
65
76
|
backdrop: "static",
|
|
66
77
|
url: this.url,
|
|
67
|
-
loop:
|
|
78
|
+
loop: false,
|
|
68
79
|
initialViewIndex: index || 0,
|
|
69
80
|
hidden: () => {
|
|
70
|
-
this.gallery.destroy()
|
|
81
|
+
this.gallery.destroy();
|
|
82
|
+
this.gallery = null;
|
|
71
83
|
}
|
|
72
|
-
}
|
|
84
|
+
};
|
|
85
|
+
if (!this.gallery) {
|
|
86
|
+
this.init({ container, options });
|
|
87
|
+
this.gallery.show();
|
|
88
|
+
}
|
|
73
89
|
}
|
|
74
90
|
}
|
|
75
|
-
}
|
|
91
|
+
};
|
|
92
|
+
const __cssModules = {};
|
|
76
93
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
77
94
|
__vue2_script,
|
|
78
95
|
render,
|
|
79
96
|
staticRenderFns,
|
|
80
|
-
|
|
97
|
+
false,
|
|
81
98
|
__vue2_injectStyles,
|
|
82
99
|
null,
|
|
83
100
|
null,
|
|
84
101
|
null
|
|
85
102
|
);
|
|
86
103
|
function __vue2_injectStyles(context) {
|
|
87
|
-
for (let o in __cssModules)
|
|
104
|
+
for (let o in __cssModules) {
|
|
88
105
|
this[o] = __cssModules[o];
|
|
106
|
+
}
|
|
89
107
|
}
|
|
90
108
|
const ImageViewer = /* @__PURE__ */ function() {
|
|
91
109
|
return __component__.exports;
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.image-viewer .image-item {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: 100px;
|
|
10
|
+
height: 100px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
background-repeat: no-repeat;
|
|
13
|
+
background-size: cover;
|
|
14
|
+
background-position: center;
|
|
15
|
+
border: none;
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
outline: none;
|
|
18
|
+
}
|
|
19
|
+
.viewer-backdrop {
|
|
20
|
+
background-color: #5e5e5e;
|
|
21
|
+
}
|