@web-utils/component 2.7.30 → 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 +54 -34
- package/dist/components/dialog-form/style.css +10 -0
- 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 +69 -51
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/index.js +77 -46
- 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 +15944 -9317
- 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
- package/dist/components/fy-dialog-form/style.css +0 -1
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { B as downFile } from "../../chunks/util.
|
|
2
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { B as downFile } from "../../chunks/util.b0d0b0ad.js";
|
|
2
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
3
3
|
var render = function() {
|
|
4
|
-
var _vm = this
|
|
4
|
+
var _vm = this;
|
|
5
|
+
var _h = _vm.$createElement;
|
|
6
|
+
var _c = _vm._self._c || _h;
|
|
5
7
|
return _c("div", {
|
|
6
8
|
staticClass: "avue-license",
|
|
7
9
|
staticStyle: {
|
|
8
|
-
position: "relative"
|
|
10
|
+
"position": "relative"
|
|
9
11
|
}
|
|
10
12
|
}, [_c("canvas", {
|
|
11
13
|
ref: "canvas",
|
|
12
14
|
attrs: {
|
|
13
|
-
id: `canvas${_vm.id}`
|
|
15
|
+
"id": `canvas${_vm.id}`
|
|
14
16
|
}
|
|
15
17
|
}), _vm._t("default")], 2);
|
|
16
|
-
}
|
|
18
|
+
};
|
|
19
|
+
var staticRenderFns = [];
|
|
17
20
|
const __vue2_script = {
|
|
18
21
|
name: "License",
|
|
19
22
|
props: {
|
|
@@ -23,13 +26,15 @@ const __vue2_script = {
|
|
|
23
26
|
},
|
|
24
27
|
option: {
|
|
25
28
|
type: Object,
|
|
26
|
-
default: () =>
|
|
29
|
+
default: () => {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
},
|
|
29
34
|
data() {
|
|
30
35
|
return {
|
|
31
36
|
base64: "",
|
|
32
|
-
draw:
|
|
37
|
+
draw: false,
|
|
33
38
|
canvas: "",
|
|
34
39
|
context: ""
|
|
35
40
|
};
|
|
@@ -47,32 +52,54 @@ const __vue2_script = {
|
|
|
47
52
|
handler() {
|
|
48
53
|
this.init();
|
|
49
54
|
},
|
|
50
|
-
deep:
|
|
55
|
+
deep: true
|
|
51
56
|
}
|
|
52
57
|
},
|
|
53
58
|
mounted() {
|
|
54
|
-
this.canvas = document.getElementById(`canvas${this.id}`)
|
|
59
|
+
this.canvas = document.getElementById(`canvas${this.id}`);
|
|
60
|
+
this.context = this.canvas.getContext("2d");
|
|
61
|
+
this.init();
|
|
55
62
|
},
|
|
56
63
|
methods: {
|
|
57
64
|
init() {
|
|
58
|
-
this.draw =
|
|
65
|
+
this.draw = false;
|
|
59
66
|
const beauty = new Image();
|
|
60
|
-
beauty.src = this.img
|
|
61
|
-
|
|
62
|
-
|
|
67
|
+
beauty.src = this.img;
|
|
68
|
+
beauty.onload = () => {
|
|
69
|
+
const width = this.option.width || beauty.width;
|
|
70
|
+
const height = this.option.width ? beauty.height / beauty.width * this.option.width : beauty.height;
|
|
71
|
+
this.$refs.canvas.width = width;
|
|
72
|
+
this.$refs.canvas.height = height;
|
|
73
|
+
this.context.clearRect(0, 0, width, height);
|
|
74
|
+
this.context.drawImage(beauty, 0, 0, width, height);
|
|
75
|
+
this.list.forEach((ele, index) => {
|
|
63
76
|
const callback = () => {
|
|
64
|
-
index === this.list.length - 1
|
|
65
|
-
|
|
66
|
-
|
|
77
|
+
if (index === this.list.length - 1) {
|
|
78
|
+
setTimeout(() => {
|
|
79
|
+
this.draw = true;
|
|
80
|
+
}, 0);
|
|
81
|
+
}
|
|
67
82
|
};
|
|
68
83
|
if (ele.img) {
|
|
69
84
|
const img = new Image();
|
|
70
|
-
img.src = ele.img
|
|
71
|
-
|
|
72
|
-
|
|
85
|
+
img.src = ele.img;
|
|
86
|
+
img.onload = () => {
|
|
87
|
+
const widths = ele.width || img.width;
|
|
88
|
+
const heights = ele.width ? img.height / img.width * ele.width : img.height;
|
|
89
|
+
this.context.drawImage(img, ele.left, ele.top, widths, heights);
|
|
90
|
+
callback();
|
|
73
91
|
};
|
|
74
|
-
} else
|
|
75
|
-
|
|
92
|
+
} else {
|
|
93
|
+
if (ele.bold) {
|
|
94
|
+
this.context.font = `bold ${ele.size}px ${ele.style}`;
|
|
95
|
+
} else {
|
|
96
|
+
this.context.font = `${ele.size}px ${ele.style}`;
|
|
97
|
+
}
|
|
98
|
+
this.context.fillStyle = ele.color;
|
|
99
|
+
this.context.fillText(ele.text, ele.left, ele.top);
|
|
100
|
+
this.context.stroke();
|
|
101
|
+
callback();
|
|
102
|
+
}
|
|
76
103
|
});
|
|
77
104
|
};
|
|
78
105
|
},
|
|
@@ -80,8 +107,10 @@ const __vue2_script = {
|
|
|
80
107
|
return new Promise((resolve) => {
|
|
81
108
|
const time = setInterval(() => {
|
|
82
109
|
if (this.draw) {
|
|
83
|
-
const data = this.canvas.toDataURL("image/jpeg", 1)
|
|
84
|
-
|
|
110
|
+
const data = this.canvas.toDataURL("image/jpeg", 1);
|
|
111
|
+
const file = this.dataURLtoFile(data, name);
|
|
112
|
+
clearInterval(time);
|
|
113
|
+
resolve(file);
|
|
85
114
|
}
|
|
86
115
|
}, 1e3);
|
|
87
116
|
});
|
|
@@ -94,37 +123,54 @@ const __vue2_script = {
|
|
|
94
123
|
const time = setInterval(() => {
|
|
95
124
|
if (this.draw) {
|
|
96
125
|
const data = this.canvas.toDataURL("image/jpeg", 1);
|
|
97
|
-
this.base64 = data
|
|
126
|
+
this.base64 = data;
|
|
127
|
+
clearInterval(time);
|
|
128
|
+
resolve(data);
|
|
98
129
|
}
|
|
99
130
|
}, 100);
|
|
100
131
|
});
|
|
101
132
|
},
|
|
102
133
|
getPdf(name = new Date().getTime()) {
|
|
103
|
-
const contentWidth = this.canvas.width
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
|
|
134
|
+
const contentWidth = this.canvas.width;
|
|
135
|
+
const contentHeight = this.canvas.height;
|
|
136
|
+
const pageHeight = contentWidth / 592.28 * 841.89;
|
|
137
|
+
let leftHeight = contentHeight;
|
|
138
|
+
let position = 0;
|
|
139
|
+
const imgWidth = 595.28;
|
|
140
|
+
const imgHeight = 592.28 / contentWidth * contentHeight;
|
|
141
|
+
const pageData = this.canvas.toDataURL("image/jpeg", 1);
|
|
142
|
+
const PDF = new window.jsPDF("", "pt", "a4");
|
|
143
|
+
if (leftHeight < pageHeight) {
|
|
107
144
|
PDF.addImage(pageData, "JPEG", 0, 0, imgWidth, imgHeight);
|
|
108
|
-
else
|
|
109
|
-
|
|
110
|
-
PDF.addImage(pageData, "JPEG", 0, position, imgWidth, imgHeight)
|
|
145
|
+
} else {
|
|
146
|
+
while (leftHeight > 0) {
|
|
147
|
+
PDF.addImage(pageData, "JPEG", 0, position, imgWidth, imgHeight);
|
|
148
|
+
leftHeight -= pageHeight;
|
|
149
|
+
position -= 841.89;
|
|
150
|
+
if (leftHeight > 0) {
|
|
151
|
+
PDF.addPage();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
111
155
|
PDF.save(`${name}.pdf`);
|
|
112
156
|
}
|
|
113
157
|
}
|
|
114
|
-
}
|
|
158
|
+
};
|
|
159
|
+
const __cssModules = {};
|
|
115
160
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
116
161
|
__vue2_script,
|
|
117
162
|
render,
|
|
118
163
|
staticRenderFns,
|
|
119
|
-
|
|
164
|
+
false,
|
|
120
165
|
__vue2_injectStyles,
|
|
121
166
|
null,
|
|
122
167
|
null,
|
|
123
168
|
null
|
|
124
169
|
);
|
|
125
170
|
function __vue2_injectStyles(context) {
|
|
126
|
-
for (let o in __cssModules)
|
|
171
|
+
for (let o in __cssModules) {
|
|
127
172
|
this[o] = __cssModules[o];
|
|
173
|
+
}
|
|
128
174
|
}
|
|
129
175
|
const License = /* @__PURE__ */ function() {
|
|
130
176
|
return __component__.exports;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
2
2
|
var render = function() {
|
|
3
|
-
var _vm = this
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
4
6
|
return _c("div", {
|
|
5
7
|
staticClass: "loading-view",
|
|
6
8
|
style: {
|
|
@@ -17,7 +19,9 @@ var render = function() {
|
|
|
17
19
|
}
|
|
18
20
|
}), _c("p", [_vm._v(_vm._s(_vm.loadingTips))])])];
|
|
19
21
|
})], 2);
|
|
20
|
-
}
|
|
22
|
+
};
|
|
23
|
+
var staticRenderFns = [];
|
|
24
|
+
const LoadingView_vue_vue_type_style_index_0_lang = "";
|
|
21
25
|
const __vue2_script = {
|
|
22
26
|
name: "LoadingView",
|
|
23
27
|
props: {
|
|
@@ -38,20 +42,22 @@ const __vue2_script = {
|
|
|
38
42
|
default: "100%"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
|
-
}
|
|
45
|
+
};
|
|
46
|
+
const __cssModules = {};
|
|
42
47
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
43
48
|
__vue2_script,
|
|
44
49
|
render,
|
|
45
50
|
staticRenderFns,
|
|
46
|
-
|
|
51
|
+
false,
|
|
47
52
|
__vue2_injectStyles,
|
|
48
53
|
null,
|
|
49
54
|
null,
|
|
50
55
|
null
|
|
51
56
|
);
|
|
52
57
|
function __vue2_injectStyles(context) {
|
|
53
|
-
for (let o in __cssModules)
|
|
58
|
+
for (let o in __cssModules) {
|
|
54
59
|
this[o] = __cssModules[o];
|
|
60
|
+
}
|
|
55
61
|
}
|
|
56
62
|
const LoadingView = /* @__PURE__ */ function() {
|
|
57
63
|
return __component__.exports;
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.loading-view {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
color: #909399;
|
|
15
|
+
font-size: 20px;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { s as setPx } from "../../chunks/util.
|
|
1
|
+
import { s as setPx } from "../../chunks/util.b0d0b0ad.js";
|
|
2
2
|
import { isBlank } from "@web-utils/core";
|
|
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
|
staticClass: "avue-login",
|
|
8
10
|
style: {
|
|
@@ -11,29 +13,29 @@ var render = function() {
|
|
|
11
13
|
}, [_c("ElForm", {
|
|
12
14
|
ref: "form",
|
|
13
15
|
attrs: {
|
|
14
|
-
model: _vm.form,
|
|
16
|
+
"model": _vm.form,
|
|
15
17
|
"label-suffix": ":",
|
|
16
18
|
"label-width": _vm.setPx(_vm.labelWidth)
|
|
17
19
|
}
|
|
18
|
-
}, [_vm.username.hide ?
|
|
20
|
+
}, [!_vm.username.hide ? _c("ElFormItem", {
|
|
19
21
|
attrs: {
|
|
20
|
-
label: _vm.username.label || "用户名",
|
|
21
|
-
rules: _vm.username.rules,
|
|
22
|
+
"label": _vm.username.label || "用户名",
|
|
23
|
+
"rules": _vm.username.rules,
|
|
22
24
|
"label-width": _vm.setPx(_vm.username.labelWidth),
|
|
23
|
-
prop: "username"
|
|
25
|
+
"prop": "username"
|
|
24
26
|
}
|
|
25
27
|
}, [_c("ElTooltip", {
|
|
26
28
|
attrs: {
|
|
27
|
-
content: _vm.username.tip,
|
|
28
|
-
disabled: _vm.username.tip === void 0,
|
|
29
|
-
placement: "top-start"
|
|
29
|
+
"content": _vm.username.tip,
|
|
30
|
+
"disabled": _vm.username.tip === void 0,
|
|
31
|
+
"placement": "top-start"
|
|
30
32
|
}
|
|
31
33
|
}, [_c("ElInput", {
|
|
32
34
|
attrs: {
|
|
33
|
-
size: "small",
|
|
35
|
+
"size": "small",
|
|
34
36
|
"prefix-icon": _vm.username.prefixIcon || "el-icon-user",
|
|
35
|
-
placeholder: _vm.username.placeholder || "请输入用户名",
|
|
36
|
-
autocomplete: _vm.username.autocomplete
|
|
37
|
+
"placeholder": _vm.username.placeholder || "请输入用户名",
|
|
38
|
+
"autocomplete": _vm.username.autocomplete
|
|
37
39
|
},
|
|
38
40
|
model: {
|
|
39
41
|
value: _vm.form.username,
|
|
@@ -42,27 +44,27 @@ var render = function() {
|
|
|
42
44
|
},
|
|
43
45
|
expression: "form.username"
|
|
44
46
|
}
|
|
45
|
-
})], 1)], 1), _vm.password.hide ?
|
|
47
|
+
})], 1)], 1) : _vm._e(), !_vm.password.hide ? _c("ElFormItem", {
|
|
46
48
|
attrs: {
|
|
47
|
-
label: _vm.password.label || "密码",
|
|
48
|
-
rules: _vm.password.rules,
|
|
49
|
+
"label": _vm.password.label || "密码",
|
|
50
|
+
"rules": _vm.password.rules,
|
|
49
51
|
"label-width": _vm.setPx(_vm.password.labelWidth),
|
|
50
|
-
prop: "password"
|
|
52
|
+
"prop": "password"
|
|
51
53
|
}
|
|
52
54
|
}, [_c("ElTooltip", {
|
|
53
55
|
attrs: {
|
|
54
|
-
content: _vm.password.tip,
|
|
55
|
-
disabled: _vm.password.tip === void 0,
|
|
56
|
-
placement: "top-start"
|
|
56
|
+
"content": _vm.password.tip,
|
|
57
|
+
"disabled": _vm.password.tip === void 0,
|
|
58
|
+
"placement": "top-start"
|
|
57
59
|
}
|
|
58
60
|
}, [_c("ElInput", {
|
|
59
61
|
attrs: {
|
|
60
|
-
type: "password",
|
|
61
|
-
size: "small",
|
|
62
|
+
"type": "password",
|
|
63
|
+
"size": "small",
|
|
62
64
|
"prefix-icon": _vm.password.prefixIcon || "el-icon-unlock",
|
|
63
|
-
placeholder: _vm.password.placeholder || "请输入密码",
|
|
65
|
+
"placeholder": _vm.password.placeholder || "请输入密码",
|
|
64
66
|
"show-password": "",
|
|
65
|
-
autocomplete: _vm.password.autocomplete
|
|
67
|
+
"autocomplete": _vm.password.autocomplete
|
|
66
68
|
},
|
|
67
69
|
model: {
|
|
68
70
|
value: _vm.form.password,
|
|
@@ -71,25 +73,25 @@ var render = function() {
|
|
|
71
73
|
},
|
|
72
74
|
expression: "form.password"
|
|
73
75
|
}
|
|
74
|
-
})], 1)], 1), _vm.code.hide ?
|
|
76
|
+
})], 1)], 1) : _vm._e(), !_vm.code.hide ? _c("ElFormItem", {
|
|
75
77
|
attrs: {
|
|
76
|
-
label: _vm.code.label || "验证码",
|
|
77
|
-
rules: _vm.code.rules,
|
|
78
|
+
"label": _vm.code.label || "验证码",
|
|
79
|
+
"rules": _vm.code.rules,
|
|
78
80
|
"label-width": _vm.setPx(_vm.code.labelWidth),
|
|
79
|
-
prop: "code"
|
|
81
|
+
"prop": "code"
|
|
80
82
|
}
|
|
81
83
|
}, [_c("ElTooltip", {
|
|
82
84
|
attrs: {
|
|
83
|
-
content: _vm.code.tip,
|
|
84
|
-
disabled: _vm.code.tip === void 0,
|
|
85
|
-
placement: "top-start"
|
|
85
|
+
"content": _vm.code.tip,
|
|
86
|
+
"disabled": _vm.code.tip === void 0,
|
|
87
|
+
"placement": "top-start"
|
|
86
88
|
}
|
|
87
89
|
}, [_c("ElInput", {
|
|
88
90
|
attrs: {
|
|
89
|
-
size: "small",
|
|
91
|
+
"size": "small",
|
|
90
92
|
"prefix-icon": _vm.code.prefixIcon || "el-icon-c-scale-to-original",
|
|
91
|
-
placeholder: _vm.code.placeholder || "请输入验证码",
|
|
92
|
-
autocomplete: _vm.code.autocomplete
|
|
93
|
+
"placeholder": _vm.code.placeholder || "请输入验证码",
|
|
94
|
+
"autocomplete": _vm.code.autocomplete
|
|
93
95
|
},
|
|
94
96
|
scopedSlots: _vm._u([{
|
|
95
97
|
key: "append",
|
|
@@ -97,26 +99,26 @@ var render = function() {
|
|
|
97
99
|
return [_vm.isPhone ? _c("ElButton", {
|
|
98
100
|
staticClass: "avue-login__send",
|
|
99
101
|
attrs: {
|
|
100
|
-
type: "primary",
|
|
101
|
-
disabled: _vm.sendDisabled
|
|
102
|
+
"type": "primary",
|
|
103
|
+
"disabled": _vm.sendDisabled
|
|
102
104
|
},
|
|
103
105
|
on: {
|
|
104
|
-
click: _vm.onSend
|
|
106
|
+
"click": _vm.onSend
|
|
105
107
|
}
|
|
106
108
|
}, [_vm._v(" " + _vm._s(_vm.text) + " ")]) : _vm._e(), _vm.isImg ? _c("span", [_c("img", {
|
|
107
109
|
attrs: {
|
|
108
|
-
src: _vm.codesrc,
|
|
109
|
-
alt: "",
|
|
110
|
-
width: "80",
|
|
111
|
-
height: "25"
|
|
110
|
+
"src": _vm.codesrc,
|
|
111
|
+
"alt": "",
|
|
112
|
+
"width": "80",
|
|
113
|
+
"height": "25"
|
|
112
114
|
},
|
|
113
115
|
on: {
|
|
114
|
-
click: _vm.onRefresh
|
|
116
|
+
"click": _vm.onRefresh
|
|
115
117
|
}
|
|
116
118
|
})]) : _vm._e()];
|
|
117
119
|
},
|
|
118
|
-
proxy:
|
|
119
|
-
}], null,
|
|
120
|
+
proxy: true
|
|
121
|
+
}], null, false, 2861735427),
|
|
120
122
|
model: {
|
|
121
123
|
value: _vm.form.code,
|
|
122
124
|
callback: function($$v) {
|
|
@@ -124,29 +126,37 @@ var render = function() {
|
|
|
124
126
|
},
|
|
125
127
|
expression: "form.code"
|
|
126
128
|
}
|
|
127
|
-
})], 1)], 1), _c("ElFormItem", [_c("ElButton", {
|
|
129
|
+
})], 1)], 1) : _vm._e(), _c("ElFormItem", [_c("ElButton", {
|
|
128
130
|
staticClass: "avue-login__submit",
|
|
129
131
|
attrs: {
|
|
130
|
-
type: "primary"
|
|
132
|
+
"type": "primary"
|
|
131
133
|
},
|
|
132
134
|
on: {
|
|
133
|
-
click: _vm.onSubmit
|
|
135
|
+
"click": _vm.onSubmit
|
|
134
136
|
}
|
|
135
137
|
}, [_vm._v(" 登录 ")])], 1)], 1)], 1);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
+
};
|
|
139
|
+
var staticRenderFns = [];
|
|
140
|
+
const Login_vue_vue_type_style_index_0_lang = "";
|
|
141
|
+
const INIT_TEXT = "发送验证码";
|
|
142
|
+
const TIP_TEXT = "{{time}}s后重获取";
|
|
143
|
+
const __vue2_script = {
|
|
138
144
|
name: "Login",
|
|
139
145
|
props: {
|
|
140
146
|
value: {
|
|
141
147
|
type: Object,
|
|
142
|
-
default: () =>
|
|
148
|
+
default: () => {
|
|
149
|
+
return {};
|
|
150
|
+
}
|
|
143
151
|
},
|
|
144
152
|
codesrc: {
|
|
145
153
|
type: String
|
|
146
154
|
},
|
|
147
155
|
option: {
|
|
148
156
|
type: Object,
|
|
149
|
-
default: () =>
|
|
157
|
+
default: () => {
|
|
158
|
+
return {};
|
|
159
|
+
}
|
|
150
160
|
}
|
|
151
161
|
},
|
|
152
162
|
data() {
|
|
@@ -154,7 +164,7 @@ const INIT_TEXT = "发送验证码", TIP_TEXT = "{{time}}s后重获取", __vue2_
|
|
|
154
164
|
text: INIT_TEXT,
|
|
155
165
|
nowtime: "",
|
|
156
166
|
check: {},
|
|
157
|
-
flag:
|
|
167
|
+
flag: false
|
|
158
168
|
};
|
|
159
169
|
},
|
|
160
170
|
computed: {
|
|
@@ -163,7 +173,8 @@ const INIT_TEXT = "发送验证码", TIP_TEXT = "{{time}}s后重获取", __vue2_
|
|
|
163
173
|
return this.value;
|
|
164
174
|
},
|
|
165
175
|
set(val) {
|
|
166
|
-
this.$emit("input", val)
|
|
176
|
+
this.$emit("input", val);
|
|
177
|
+
this.$emit("change", val);
|
|
167
178
|
}
|
|
168
179
|
},
|
|
169
180
|
labelWidth() {
|
|
@@ -204,11 +215,22 @@ const INIT_TEXT = "发送验证码", TIP_TEXT = "{{time}}s后重获取", __vue2_
|
|
|
204
215
|
setPx,
|
|
205
216
|
onSend() {
|
|
206
217
|
const callback = () => {
|
|
207
|
-
this.nowtime = this.time
|
|
208
|
-
|
|
218
|
+
this.nowtime = this.time;
|
|
219
|
+
this.text = TIP_TEXT.replace("{{time}}", this.nowtime);
|
|
220
|
+
this.check = setInterval(() => {
|
|
221
|
+
this.nowtime--;
|
|
222
|
+
if (this.nowtime === 0) {
|
|
223
|
+
this.text = INIT_TEXT;
|
|
224
|
+
clearInterval(this.check);
|
|
225
|
+
this.check = null;
|
|
226
|
+
} else {
|
|
227
|
+
this.text = TIP_TEXT.replace("{{time}}", this.nowtime);
|
|
228
|
+
}
|
|
209
229
|
}, 1e3);
|
|
210
230
|
};
|
|
211
|
-
this.sendDisabled
|
|
231
|
+
if (this.sendDisabled)
|
|
232
|
+
return;
|
|
233
|
+
this.$emit("send", callback);
|
|
212
234
|
},
|
|
213
235
|
onRefresh() {
|
|
214
236
|
this.$emit("refresh");
|
|
@@ -218,29 +240,36 @@ const INIT_TEXT = "发送验证码", TIP_TEXT = "{{time}}s后重获取", __vue2_
|
|
|
218
240
|
const form = {};
|
|
219
241
|
for (const o in this.form) {
|
|
220
242
|
let key = o;
|
|
221
|
-
|
|
243
|
+
if (this[o].prop) {
|
|
244
|
+
key = this[o].prop;
|
|
245
|
+
}
|
|
246
|
+
form[key] = this.form[o];
|
|
222
247
|
}
|
|
223
248
|
return form;
|
|
224
249
|
};
|
|
225
250
|
this.$refs.form.validate((valid) => {
|
|
226
|
-
|
|
251
|
+
if (valid) {
|
|
252
|
+
this.$emit("submit", onCover());
|
|
253
|
+
}
|
|
227
254
|
});
|
|
228
255
|
}
|
|
229
256
|
}
|
|
230
|
-
}
|
|
257
|
+
};
|
|
258
|
+
const __cssModules = {};
|
|
231
259
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
232
260
|
__vue2_script,
|
|
233
261
|
render,
|
|
234
262
|
staticRenderFns,
|
|
235
|
-
|
|
263
|
+
false,
|
|
236
264
|
__vue2_injectStyles,
|
|
237
265
|
null,
|
|
238
266
|
null,
|
|
239
267
|
null
|
|
240
268
|
);
|
|
241
269
|
function __vue2_injectStyles(context) {
|
|
242
|
-
for (let o in __cssModules)
|
|
270
|
+
for (let o in __cssModules) {
|
|
243
271
|
this[o] = __cssModules[o];
|
|
272
|
+
}
|
|
244
273
|
}
|
|
245
274
|
const Login = /* @__PURE__ */ function() {
|
|
246
275
|
return __component__.exports;
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.avue-login .el-form-item {
|
|
8
|
+
margin-bottom: 18px;
|
|
9
|
+
}
|
|
10
|
+
.avue-login .el-input-group__append {
|
|
11
|
+
padding: 0;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
.avue-login__send {
|
|
15
|
+
min-width: 150px;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
.avue-login__send:hover {
|
|
19
|
+
color: #C0C4CC !important;
|
|
20
|
+
border-color: #EBEEF5 !important;
|
|
21
|
+
background-color: #F5F7FA !important;
|
|
22
|
+
}
|
|
23
|
+
.avue-login__submit {
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
2
2
|
var render = function() {
|
|
3
|
-
var _vm = this
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
4
6
|
return _c("div", {
|
|
5
7
|
staticClass: "name-avatar",
|
|
6
8
|
class: _vm.square ? "square" : "round"
|
|
7
9
|
}, [_vm.faceUrl && !_vm.num ? _c("img", {
|
|
8
10
|
staticClass: "name-avatar-image",
|
|
9
11
|
attrs: {
|
|
10
|
-
src: _vm.faceUrl,
|
|
11
|
-
alt: ""
|
|
12
|
+
"src": _vm.faceUrl,
|
|
13
|
+
"alt": ""
|
|
12
14
|
}
|
|
13
15
|
}) : _c("div", {
|
|
14
16
|
staticClass: "name-avatar-text",
|
|
15
17
|
style: _vm.styles
|
|
16
18
|
}, [_vm._v(" " + _vm._s(_vm.text) + " ")])]);
|
|
17
|
-
}
|
|
19
|
+
};
|
|
20
|
+
var staticRenderFns = [];
|
|
21
|
+
const NameAvatar_vue_vue_type_style_index_0_lang = "";
|
|
18
22
|
const __vue2_script = {
|
|
19
23
|
name: "NameAvatar",
|
|
20
24
|
props: {
|
|
@@ -36,27 +40,45 @@ const __vue2_script = {
|
|
|
36
40
|
},
|
|
37
41
|
computed: {
|
|
38
42
|
text() {
|
|
39
|
-
|
|
43
|
+
if (this.num !== void 0) {
|
|
44
|
+
return `+${this.num}`;
|
|
45
|
+
} else {
|
|
46
|
+
if (this.name) {
|
|
47
|
+
return this.name.slice(-2);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return "";
|
|
40
51
|
},
|
|
41
52
|
styles() {
|
|
42
53
|
const style = {};
|
|
43
|
-
|
|
54
|
+
if (this.size) {
|
|
55
|
+
style["font-size"] = "12px";
|
|
56
|
+
}
|
|
57
|
+
if (this.fontColor) {
|
|
58
|
+
style.color = this.fontColor;
|
|
59
|
+
}
|
|
60
|
+
if (this.backgroundColor) {
|
|
61
|
+
style.background = this.backgroundColor;
|
|
62
|
+
}
|
|
63
|
+
return style;
|
|
44
64
|
}
|
|
45
65
|
}
|
|
46
|
-
}
|
|
66
|
+
};
|
|
67
|
+
const __cssModules = {};
|
|
47
68
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
48
69
|
__vue2_script,
|
|
49
70
|
render,
|
|
50
71
|
staticRenderFns,
|
|
51
|
-
|
|
72
|
+
false,
|
|
52
73
|
__vue2_injectStyles,
|
|
53
74
|
null,
|
|
54
75
|
null,
|
|
55
76
|
null
|
|
56
77
|
);
|
|
57
78
|
function __vue2_injectStyles(context) {
|
|
58
|
-
for (let o in __cssModules)
|
|
79
|
+
for (let o in __cssModules) {
|
|
59
80
|
this[o] = __cssModules[o];
|
|
81
|
+
}
|
|
60
82
|
}
|
|
61
83
|
const NameAvatar = /* @__PURE__ */ function() {
|
|
62
84
|
return __component__.exports;
|