@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,134 @@
|
|
|
1
|
+
import { z as l } from "../../chunks/util.5053d54e.js";
|
|
2
|
+
import { n as g } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var m = function() {
|
|
4
|
+
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
5
|
+
return s("div", {
|
|
6
|
+
staticClass: "avue-license",
|
|
7
|
+
staticStyle: {
|
|
8
|
+
position: "relative"
|
|
9
|
+
}
|
|
10
|
+
}, [s("canvas", {
|
|
11
|
+
ref: "canvas",
|
|
12
|
+
attrs: {
|
|
13
|
+
id: "canvas" + t.id
|
|
14
|
+
}
|
|
15
|
+
}), t._t("default")], 2);
|
|
16
|
+
}, f = [];
|
|
17
|
+
const w = {
|
|
18
|
+
name: "License",
|
|
19
|
+
props: {
|
|
20
|
+
id: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
option: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: () => ({})
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
base64: "",
|
|
32
|
+
draw: !1,
|
|
33
|
+
canvas: "",
|
|
34
|
+
context: ""
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
computed: {
|
|
38
|
+
img() {
|
|
39
|
+
return this.option.img;
|
|
40
|
+
},
|
|
41
|
+
list() {
|
|
42
|
+
return this.option.list || [];
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
watch: {
|
|
46
|
+
option: {
|
|
47
|
+
handler() {
|
|
48
|
+
this.init();
|
|
49
|
+
},
|
|
50
|
+
deep: !0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
mounted() {
|
|
54
|
+
this.canvas = document.getElementById("canvas" + this.id), this.context = this.canvas.getContext("2d"), this.init();
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
init() {
|
|
58
|
+
this.draw = !1;
|
|
59
|
+
const t = new Image();
|
|
60
|
+
t.src = this.img, t.onload = () => {
|
|
61
|
+
const e = this.option.width || t.width, s = this.option.width ? t.height / t.width * this.option.width : t.height;
|
|
62
|
+
this.$refs.canvas.width = e, this.$refs.canvas.height = s, this.context.clearRect(0, 0, e, s), this.context.drawImage(t, 0, 0, e, s), this.list.forEach((i, a) => {
|
|
63
|
+
const o = () => {
|
|
64
|
+
a === this.list.length - 1 && setTimeout(() => {
|
|
65
|
+
this.draw = !0;
|
|
66
|
+
}, 0);
|
|
67
|
+
};
|
|
68
|
+
if (i.img) {
|
|
69
|
+
const n = new Image();
|
|
70
|
+
n.src = i.img, n.onload = () => {
|
|
71
|
+
const h = i.width || n.width, c = i.width ? n.height / n.width * i.width : n.height;
|
|
72
|
+
this.context.drawImage(n, i.left, i.top, h, c), o();
|
|
73
|
+
};
|
|
74
|
+
} else
|
|
75
|
+
i.bold ? this.context.font = `bold ${i.size}px ${i.style}` : this.context.font = `${i.size}px ${i.style}`, this.context.fillStyle = i.color, this.context.fillText(i.text, i.left, i.top), this.context.stroke(), o();
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
getFile(t = new Date().getTime()) {
|
|
80
|
+
return new Promise((e) => {
|
|
81
|
+
const s = setInterval(() => {
|
|
82
|
+
if (this.draw) {
|
|
83
|
+
const i = this.canvas.toDataURL("image/jpeg", 1), a = this.dataURLtoFile(i, t);
|
|
84
|
+
clearInterval(s), e(a);
|
|
85
|
+
}
|
|
86
|
+
}, 1e3);
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
downFile(t = new Date().getTime()) {
|
|
90
|
+
l(this.base64, t);
|
|
91
|
+
},
|
|
92
|
+
getBase64() {
|
|
93
|
+
return new Promise((t) => {
|
|
94
|
+
const e = setInterval(() => {
|
|
95
|
+
if (this.draw) {
|
|
96
|
+
const s = this.canvas.toDataURL("image/jpeg", 1);
|
|
97
|
+
this.base64 = s, clearInterval(e), t(s);
|
|
98
|
+
}
|
|
99
|
+
}, 100);
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
getPdf(t = new Date().getTime()) {
|
|
103
|
+
const e = this.canvas.width, s = this.canvas.height, i = e / 592.28 * 841.89;
|
|
104
|
+
let a = s, o = 0;
|
|
105
|
+
const n = 595.28, h = 592.28 / e * s, c = this.canvas.toDataURL("image/jpeg", 1), r = new window.jsPDF("", "pt", "a4");
|
|
106
|
+
if (a < i)
|
|
107
|
+
r.addImage(c, "JPEG", 0, 0, n, h);
|
|
108
|
+
else
|
|
109
|
+
for (; a > 0; )
|
|
110
|
+
r.addImage(c, "JPEG", 0, o, n, h), a -= i, o -= 841.89, a > 0 && r.addPage();
|
|
111
|
+
r.save(`${t}.pdf`);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}, d = {};
|
|
115
|
+
var p = /* @__PURE__ */ g(
|
|
116
|
+
w,
|
|
117
|
+
m,
|
|
118
|
+
f,
|
|
119
|
+
!1,
|
|
120
|
+
v,
|
|
121
|
+
null,
|
|
122
|
+
null,
|
|
123
|
+
null
|
|
124
|
+
);
|
|
125
|
+
function v(t) {
|
|
126
|
+
for (let e in d)
|
|
127
|
+
this[e] = d[e];
|
|
128
|
+
}
|
|
129
|
+
const _ = /* @__PURE__ */ function() {
|
|
130
|
+
return p.exports;
|
|
131
|
+
}();
|
|
132
|
+
export {
|
|
133
|
+
_ as default
|
|
134
|
+
};
|
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _c = _vm._self._c || _h;
|
|
6
|
-
return _c("div", {
|
|
1
|
+
import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var s = function() {
|
|
3
|
+
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
4
|
+
return n("div", {
|
|
7
5
|
staticClass: "loading-view",
|
|
8
6
|
style: {
|
|
9
|
-
fontSize:
|
|
10
|
-
height:
|
|
7
|
+
fontSize: t.fontSize,
|
|
8
|
+
height: t.height
|
|
11
9
|
}
|
|
12
|
-
}, [
|
|
13
|
-
return [
|
|
10
|
+
}, [t._t("default", function() {
|
|
11
|
+
return [n("div", {
|
|
14
12
|
staticClass: "flex-column horizon-center"
|
|
15
|
-
}, [
|
|
13
|
+
}, [n("i", {
|
|
16
14
|
staticClass: "el-icon-loading",
|
|
17
15
|
style: {
|
|
18
|
-
fontSize:
|
|
16
|
+
fontSize: t.iconSize
|
|
19
17
|
}
|
|
20
|
-
}),
|
|
18
|
+
}), n("p", [t._v(t._s(t.loadingTips))])])];
|
|
21
19
|
})], 2);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const LoadingView_vue_vue_type_style_index_0_lang = "";
|
|
25
|
-
const __vue2_script = {
|
|
20
|
+
}, a = [];
|
|
21
|
+
const l = {
|
|
26
22
|
name: "LoadingView",
|
|
27
23
|
props: {
|
|
28
24
|
loadingTips: {
|
|
@@ -42,26 +38,24 @@ const __vue2_script = {
|
|
|
42
38
|
default: "100%"
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
__vue2_injectStyles,
|
|
41
|
+
}, i = {};
|
|
42
|
+
var r = /* @__PURE__ */ o(
|
|
43
|
+
l,
|
|
44
|
+
s,
|
|
45
|
+
a,
|
|
46
|
+
!1,
|
|
47
|
+
_,
|
|
53
48
|
null,
|
|
54
49
|
null,
|
|
55
50
|
null
|
|
56
51
|
);
|
|
57
|
-
function
|
|
58
|
-
for (let
|
|
59
|
-
this[
|
|
60
|
-
}
|
|
52
|
+
function _(t) {
|
|
53
|
+
for (let e in i)
|
|
54
|
+
this[e] = i[e];
|
|
61
55
|
}
|
|
62
|
-
const
|
|
63
|
-
return
|
|
56
|
+
const u = /* @__PURE__ */ function() {
|
|
57
|
+
return r.exports;
|
|
64
58
|
}();
|
|
65
59
|
export {
|
|
66
|
-
|
|
60
|
+
u as default
|
|
67
61
|
};
|
|
@@ -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
|
+
.loading-view{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#909399;font-size:20px;background-color:#fff}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { c as n, s as a } from "../../chunks/util.5053d54e.js";
|
|
2
|
+
import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
|
+
var d = function() {
|
|
4
|
+
var e = this, s = e.$createElement, t = e._self._c || s;
|
|
5
|
+
return t("div", {
|
|
6
|
+
staticClass: "avue-login",
|
|
7
|
+
style: {
|
|
8
|
+
width: e.setPx(e.width)
|
|
9
|
+
}
|
|
10
|
+
}, [t("ElForm", {
|
|
11
|
+
ref: "form",
|
|
12
|
+
attrs: {
|
|
13
|
+
model: e.form,
|
|
14
|
+
"label-suffix": ":",
|
|
15
|
+
"label-width": e.setPx(e.labelWidth)
|
|
16
|
+
}
|
|
17
|
+
}, [e.username.hide ? e._e() : t("ElFormItem", {
|
|
18
|
+
attrs: {
|
|
19
|
+
label: e.username.label || "用户名",
|
|
20
|
+
rules: e.username.rules,
|
|
21
|
+
"label-width": e.setPx(e.username.labelWidth),
|
|
22
|
+
prop: "username"
|
|
23
|
+
}
|
|
24
|
+
}, [t("ElTooltip", {
|
|
25
|
+
attrs: {
|
|
26
|
+
content: e.username.tip,
|
|
27
|
+
disabled: e.username.tip === void 0,
|
|
28
|
+
placement: "top-start"
|
|
29
|
+
}
|
|
30
|
+
}, [t("ElInput", {
|
|
31
|
+
attrs: {
|
|
32
|
+
size: "small",
|
|
33
|
+
"prefix-icon": e.username.prefixIcon || "el-icon-user",
|
|
34
|
+
placeholder: e.username.placeholder || "请输入用户名",
|
|
35
|
+
autocomplete: e.username.autocomplete
|
|
36
|
+
},
|
|
37
|
+
model: {
|
|
38
|
+
value: e.form.username,
|
|
39
|
+
callback: function(o) {
|
|
40
|
+
e.$set(e.form, "username", o);
|
|
41
|
+
},
|
|
42
|
+
expression: "form.username"
|
|
43
|
+
}
|
|
44
|
+
})], 1)], 1), e.password.hide ? e._e() : t("ElFormItem", {
|
|
45
|
+
attrs: {
|
|
46
|
+
label: e.password.label || "密码",
|
|
47
|
+
rules: e.password.rules,
|
|
48
|
+
"label-width": e.setPx(e.password.labelWidth),
|
|
49
|
+
prop: "password"
|
|
50
|
+
}
|
|
51
|
+
}, [t("ElTooltip", {
|
|
52
|
+
attrs: {
|
|
53
|
+
content: e.password.tip,
|
|
54
|
+
disabled: e.password.tip === void 0,
|
|
55
|
+
placement: "top-start"
|
|
56
|
+
}
|
|
57
|
+
}, [t("ElInput", {
|
|
58
|
+
attrs: {
|
|
59
|
+
type: "password",
|
|
60
|
+
size: "small",
|
|
61
|
+
"prefix-icon": e.password.prefixIcon || "el-icon-unlock",
|
|
62
|
+
placeholder: e.password.placeholder || "请输入密码",
|
|
63
|
+
"show-password": "",
|
|
64
|
+
autocomplete: e.password.autocomplete
|
|
65
|
+
},
|
|
66
|
+
model: {
|
|
67
|
+
value: e.form.password,
|
|
68
|
+
callback: function(o) {
|
|
69
|
+
e.$set(e.form, "password", o);
|
|
70
|
+
},
|
|
71
|
+
expression: "form.password"
|
|
72
|
+
}
|
|
73
|
+
})], 1)], 1), e.code.hide ? e._e() : t("ElFormItem", {
|
|
74
|
+
attrs: {
|
|
75
|
+
label: e.code.label || "验证码",
|
|
76
|
+
rules: e.code.rules,
|
|
77
|
+
"label-width": e.setPx(e.code.labelWidth),
|
|
78
|
+
prop: "code"
|
|
79
|
+
}
|
|
80
|
+
}, [t("ElTooltip", {
|
|
81
|
+
attrs: {
|
|
82
|
+
content: e.code.tip,
|
|
83
|
+
disabled: e.code.tip === void 0,
|
|
84
|
+
placement: "top-start"
|
|
85
|
+
}
|
|
86
|
+
}, [t("ElInput", {
|
|
87
|
+
attrs: {
|
|
88
|
+
size: "small",
|
|
89
|
+
"prefix-icon": e.code.prefixIcon || "el-icon-c-scale-to-original",
|
|
90
|
+
placeholder: e.code.placeholder || "请输入验证码",
|
|
91
|
+
autocomplete: e.code.autocomplete
|
|
92
|
+
},
|
|
93
|
+
model: {
|
|
94
|
+
value: e.form.code,
|
|
95
|
+
callback: function(o) {
|
|
96
|
+
e.$set(e.form, "code", o);
|
|
97
|
+
},
|
|
98
|
+
expression: "form.code"
|
|
99
|
+
}
|
|
100
|
+
}, [t("template", {
|
|
101
|
+
slot: "append"
|
|
102
|
+
}, [e.isPhone ? t("ElButton", {
|
|
103
|
+
staticClass: "avue-login__send",
|
|
104
|
+
attrs: {
|
|
105
|
+
type: "primary",
|
|
106
|
+
disabled: e.sendDisabled
|
|
107
|
+
},
|
|
108
|
+
on: {
|
|
109
|
+
click: e.onSend
|
|
110
|
+
}
|
|
111
|
+
}, [e._v(" " + e._s(e.text) + " ")]) : e._e(), e.isImg ? t("span", [t("img", {
|
|
112
|
+
attrs: {
|
|
113
|
+
src: e.codesrc,
|
|
114
|
+
alt: "",
|
|
115
|
+
width: "80",
|
|
116
|
+
height: "25"
|
|
117
|
+
},
|
|
118
|
+
on: {
|
|
119
|
+
click: e.onRefresh
|
|
120
|
+
}
|
|
121
|
+
})]) : e._e()], 1)], 2)], 1)], 1), t("ElFormItem", [t("ElButton", {
|
|
122
|
+
staticClass: "avue-login__submit",
|
|
123
|
+
attrs: {
|
|
124
|
+
type: "primary"
|
|
125
|
+
},
|
|
126
|
+
on: {
|
|
127
|
+
click: e.onSubmit
|
|
128
|
+
}
|
|
129
|
+
}, [e._v(" 登录 ")])], 1)], 1)], 1);
|
|
130
|
+
}, p = [];
|
|
131
|
+
const r = "发送验证码", i = "{{time}}s后重获取", m = {
|
|
132
|
+
name: "Login",
|
|
133
|
+
props: {
|
|
134
|
+
value: {
|
|
135
|
+
type: Object,
|
|
136
|
+
default: () => ({})
|
|
137
|
+
},
|
|
138
|
+
codesrc: {
|
|
139
|
+
type: String
|
|
140
|
+
},
|
|
141
|
+
option: {
|
|
142
|
+
type: Object,
|
|
143
|
+
default: () => ({})
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
data() {
|
|
147
|
+
return {
|
|
148
|
+
text: r,
|
|
149
|
+
nowtime: "",
|
|
150
|
+
check: {},
|
|
151
|
+
flag: !1
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
computed: {
|
|
155
|
+
form: {
|
|
156
|
+
get() {
|
|
157
|
+
return this.value;
|
|
158
|
+
},
|
|
159
|
+
set(e) {
|
|
160
|
+
this.$emit("input", e), this.$emit("change", e);
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
labelWidth() {
|
|
164
|
+
return this.option.labelWidth || 80;
|
|
165
|
+
},
|
|
166
|
+
time() {
|
|
167
|
+
return this.option.time || 60;
|
|
168
|
+
},
|
|
169
|
+
isImg() {
|
|
170
|
+
return this.codeType === "img";
|
|
171
|
+
},
|
|
172
|
+
isPhone() {
|
|
173
|
+
return this.codeType === "phone";
|
|
174
|
+
},
|
|
175
|
+
codeType() {
|
|
176
|
+
return this.option.codeType || "img";
|
|
177
|
+
},
|
|
178
|
+
width() {
|
|
179
|
+
return this.option.width || "100%";
|
|
180
|
+
},
|
|
181
|
+
username() {
|
|
182
|
+
return this.column.username || {};
|
|
183
|
+
},
|
|
184
|
+
password() {
|
|
185
|
+
return this.column.password || {};
|
|
186
|
+
},
|
|
187
|
+
code() {
|
|
188
|
+
return this.column.code || {};
|
|
189
|
+
},
|
|
190
|
+
column() {
|
|
191
|
+
return this.option.column || {};
|
|
192
|
+
},
|
|
193
|
+
sendDisabled() {
|
|
194
|
+
return !n(this.check);
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
methods: {
|
|
198
|
+
setPx: a,
|
|
199
|
+
onSend() {
|
|
200
|
+
const e = () => {
|
|
201
|
+
this.nowtime = this.time, this.text = i.replace("{{time}}", this.nowtime), this.check = setInterval(() => {
|
|
202
|
+
this.nowtime--, this.nowtime === 0 ? (this.text = r, clearInterval(this.check), this.check = null) : this.text = i.replace("{{time}}", this.nowtime);
|
|
203
|
+
}, 1e3);
|
|
204
|
+
};
|
|
205
|
+
this.sendDisabled || this.$emit("send", e);
|
|
206
|
+
},
|
|
207
|
+
onRefresh() {
|
|
208
|
+
this.$emit("refresh");
|
|
209
|
+
},
|
|
210
|
+
onSubmit() {
|
|
211
|
+
const e = () => {
|
|
212
|
+
const s = {};
|
|
213
|
+
for (let t in this.form) {
|
|
214
|
+
let o = t;
|
|
215
|
+
this[t].prop && (o = this[t].prop), s[o] = this.form[t];
|
|
216
|
+
}
|
|
217
|
+
return s;
|
|
218
|
+
};
|
|
219
|
+
this.$refs.form.validate((s) => {
|
|
220
|
+
s && this.$emit("submit", e());
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}, l = {};
|
|
225
|
+
var u = /* @__PURE__ */ c(
|
|
226
|
+
m,
|
|
227
|
+
d,
|
|
228
|
+
p,
|
|
229
|
+
!1,
|
|
230
|
+
h,
|
|
231
|
+
null,
|
|
232
|
+
null,
|
|
233
|
+
null
|
|
234
|
+
);
|
|
235
|
+
function h(e) {
|
|
236
|
+
for (let s in l)
|
|
237
|
+
this[s] = l[s];
|
|
238
|
+
}
|
|
239
|
+
const b = /* @__PURE__ */ function() {
|
|
240
|
+
return u.exports;
|
|
241
|
+
}();
|
|
242
|
+
export {
|
|
243
|
+
b as default
|
|
244
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.avue-login .el-form-item{margin-bottom:18px}.avue-login .el-input-group__append{padding:0;overflow:hidden}.avue-login__send{min-width:150px;box-sizing:border-box}.avue-login__send:hover{color:#c0c4cc!important;border-color:#ebeef5!important;background-color:#f5f7fa!important}.avue-login__submit{width:100%}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var s = function() {
|
|
3
|
+
var t = this, e = t.$createElement, a = t._self._c || e;
|
|
4
|
+
return a("div", {
|
|
5
|
+
staticClass: "name-avatar",
|
|
6
|
+
class: t.square ? "square" : "round"
|
|
7
|
+
}, [t.faceUrl && !t.num ? a("img", {
|
|
8
|
+
staticClass: "name-avatar-image",
|
|
9
|
+
attrs: {
|
|
10
|
+
src: t.faceUrl,
|
|
11
|
+
alt: ""
|
|
12
|
+
}
|
|
13
|
+
}) : a("div", {
|
|
14
|
+
staticClass: "name-avatar-text",
|
|
15
|
+
style: t.styles
|
|
16
|
+
}, [t._v(" " + t._s(t.text) + " ")])]);
|
|
17
|
+
}, o = [];
|
|
18
|
+
const i = {
|
|
19
|
+
name: "NameAvatar",
|
|
20
|
+
props: {
|
|
21
|
+
num: [Number, String],
|
|
22
|
+
name: String,
|
|
23
|
+
square: Boolean,
|
|
24
|
+
fontColor: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "#fff"
|
|
27
|
+
},
|
|
28
|
+
backgroundColor: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "#3696F2"
|
|
31
|
+
},
|
|
32
|
+
faceUrl: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
computed: {
|
|
38
|
+
text() {
|
|
39
|
+
return this.num !== void 0 ? `+${this.num}` : this.name ? this.name.slice(-2) : "";
|
|
40
|
+
},
|
|
41
|
+
styles() {
|
|
42
|
+
let t = {};
|
|
43
|
+
return this.size && (t["font-size"] = "12px"), this.fontColor && (t.color = this.fontColor), this.backgroundColor && (t.background = this.backgroundColor), t;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, n = {};
|
|
47
|
+
var l = /* @__PURE__ */ r(
|
|
48
|
+
i,
|
|
49
|
+
s,
|
|
50
|
+
o,
|
|
51
|
+
!1,
|
|
52
|
+
u,
|
|
53
|
+
null,
|
|
54
|
+
null,
|
|
55
|
+
null
|
|
56
|
+
);
|
|
57
|
+
function u(t) {
|
|
58
|
+
for (let e in n)
|
|
59
|
+
this[e] = n[e];
|
|
60
|
+
}
|
|
61
|
+
const f = /* @__PURE__ */ function() {
|
|
62
|
+
return l.exports;
|
|
63
|
+
}();
|
|
64
|
+
export {
|
|
65
|
+
f as default
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.name-avatar{overflow:hidden;width:40px;height:40px}.name-avatar .name-avatar-image,.name-avatar .name-avatar-text{width:100%;height:100%}.name-avatar .name-avatar-text{display:flex;justify-content:center;align-items:center}.round{display:inline-block;position:relative;text-align:center;vertical-align:bottom;font-size:8px;user-select:none;z-index:10;border-radius:50%}.square{display:block;border-radius:8px;overflow:hidden}
|
|
@@ -1,62 +1,52 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _c = _vm._self._c || _h;
|
|
6
|
-
return _c("div", {
|
|
1
|
+
import { n as a } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var r = function() {
|
|
3
|
+
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
4
|
+
return n("div", {
|
|
7
5
|
staticClass: "nav-bar"
|
|
8
|
-
}, [
|
|
6
|
+
}, [t.showBack ? n("ElButton", {
|
|
9
7
|
attrs: {
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
type: "text",
|
|
9
|
+
icon: "el-icon-arrow-left"
|
|
12
10
|
},
|
|
13
11
|
on: {
|
|
14
|
-
|
|
12
|
+
click: t.goBack
|
|
15
13
|
}
|
|
16
|
-
}, [
|
|
14
|
+
}, [t._v(" 返回 ")]) : t._e(), t.$slots.right ? n("div", {
|
|
17
15
|
staticClass: "flex-item flex-row-column vertical-center"
|
|
18
|
-
}, [
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const NavBar_vue_vue_type_style_index_0_lang = "";
|
|
22
|
-
const __vue2_script = {
|
|
16
|
+
}, [t._t("right")], 2) : t._e()], 1);
|
|
17
|
+
}, s = [];
|
|
18
|
+
const c = {
|
|
23
19
|
name: "NavBar",
|
|
24
20
|
props: {
|
|
25
21
|
onGoBack: Function,
|
|
26
22
|
showBack: {
|
|
27
23
|
type: Boolean,
|
|
28
|
-
default:
|
|
24
|
+
default: !0
|
|
29
25
|
}
|
|
30
26
|
},
|
|
31
27
|
methods: {
|
|
32
28
|
goBack() {
|
|
33
|
-
|
|
34
|
-
this.onGoBack();
|
|
35
|
-
} else {
|
|
36
|
-
this.$router.back();
|
|
37
|
-
}
|
|
29
|
+
this.onGoBack ? this.onGoBack() : this.$router.back();
|
|
38
30
|
}
|
|
39
31
|
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
__vue2_injectStyles,
|
|
32
|
+
}, o = {};
|
|
33
|
+
var l = /* @__PURE__ */ a(
|
|
34
|
+
c,
|
|
35
|
+
r,
|
|
36
|
+
s,
|
|
37
|
+
!1,
|
|
38
|
+
i,
|
|
48
39
|
null,
|
|
49
40
|
null,
|
|
50
41
|
null
|
|
51
42
|
);
|
|
52
|
-
function
|
|
53
|
-
for (let
|
|
54
|
-
this[
|
|
55
|
-
}
|
|
43
|
+
function i(t) {
|
|
44
|
+
for (let e in o)
|
|
45
|
+
this[e] = o[e];
|
|
56
46
|
}
|
|
57
|
-
const
|
|
58
|
-
return
|
|
47
|
+
const u = /* @__PURE__ */ function() {
|
|
48
|
+
return l.exports;
|
|
59
49
|
}();
|
|
60
50
|
export {
|
|
61
|
-
|
|
51
|
+
u as default
|
|
62
52
|
};
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* 应用头部高度 */
|
|
3
|
-
/* 页面宽度 */
|
|
4
|
-
/* 侧栏宽度 */
|
|
5
|
-
/* 标签高度 */
|
|
6
|
-
/* 页面头部工具条高度 */
|
|
7
|
-
.nav-bar {
|
|
8
|
-
flex-shrink: 0;
|
|
9
|
-
display: flex;
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 40px;
|
|
12
|
-
background-color: #fff;
|
|
13
|
-
border-bottom: 1px #eee solid;
|
|
14
|
-
}
|
|
15
|
-
.nav-bar .el-button--text {
|
|
16
|
-
margin-left: 12px;
|
|
17
|
-
}
|
|
1
|
+
.nav-bar{flex-shrink:0;display:flex;width:100%;height:40px;background-color:#fff;border-bottom:1px #eee solid}.nav-bar .el-button--text{margin-left:12px}
|