@qxs-bns/components 0.0.5 → 0.0.7
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/index.cjs +1 -1
- package/index.js +898 -13
- package/package.json +3 -2
- package/theme-chalk/base.scss +17 -0
- package/theme-chalk/file-upload.scss +33 -0
- package/theme-chalk/fixed-action-bar.scss +17 -0
- package/theme-chalk/image-upload.scss +136 -0
- package/theme-chalk/index.scss +8 -0
- package/theme-chalk/photo-crop-tool.scss +84 -0
- package/theme-chalk/rich-editor.scss +23 -0
- package/theme-chalk/var.scss +87 -0
- package/vendor.cjs +6 -0
- package/vendor.js +1377 -0
- package/dist/hooks/src/use-namespace/index.cjs +0 -1
- package/dist/hooks/src/use-namespace/index.js +0 -49
- package/package.json.cjs +0 -1
- package/package.json.js +0 -4
- package/src/components.cjs +0 -1
- package/src/components.js +0 -10
- package/src/defaults.cjs +0 -1
- package/src/defaults.js +0 -6
- package/src/file-upload/index.cjs +0 -1
- package/src/file-upload/index.js +0 -7
- package/src/file-upload/src/file-upload.vue.cjs +0 -1
- package/src/file-upload/src/file-upload.vue.js +0 -82
- package/src/file-upload/src/file-upload.vue2.cjs +0 -1
- package/src/file-upload/src/file-upload.vue2.js +0 -4
- package/src/fixed-action-bar/index.cjs +0 -1
- package/src/fixed-action-bar/index.js +0 -7
- package/src/fixed-action-bar/src/fixed-action-bar.vue.cjs +0 -1
- package/src/fixed-action-bar/src/fixed-action-bar.vue.js +0 -63
- package/src/fixed-action-bar/src/fixed-action-bar.vue2.cjs +0 -1
- package/src/fixed-action-bar/src/fixed-action-bar.vue2.js +0 -4
- package/src/image-upload/index.cjs +0 -1
- package/src/image-upload/index.js +0 -7
- package/src/image-upload/src/image-upload.vue.cjs +0 -1
- package/src/image-upload/src/image-upload.vue.js +0 -164
- package/src/image-upload/src/image-upload.vue2.cjs +0 -1
- package/src/image-upload/src/image-upload.vue2.js +0 -4
- package/src/make-installer.cjs +0 -1
- package/src/make-installer.js +0 -13
- package/src/photo-crop-tool/index.cjs +0 -1
- package/src/photo-crop-tool/index.js +0 -7
- package/src/photo-crop-tool/src/composables.cjs +0 -1
- package/src/photo-crop-tool/src/composables.js +0 -33
- package/src/photo-crop-tool/src/photo-crop-tool.vue.cjs +0 -1
- package/src/photo-crop-tool/src/photo-crop-tool.vue.js +0 -224
- package/src/photo-crop-tool/src/photo-crop-tool.vue2.cjs +0 -1
- package/src/photo-crop-tool/src/photo-crop-tool.vue2.js +0 -4
- package/src/withInstall.cjs +0 -1
- package/src/withInstall.js +0 -9
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@qxs-bns/components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.7",
|
4
4
|
"description": "Vue 3 Component Library",
|
5
5
|
"main": "./index.cjs",
|
6
6
|
"module": "./index.js",
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"import": "./index.js",
|
12
12
|
"require": "./index.cjs"
|
13
13
|
},
|
14
|
+
"./theme-chalk": "./theme-chalk/index.css",
|
14
15
|
"./theme-chalk/*": "./theme-chalk/*"
|
15
16
|
},
|
16
17
|
"keywords": [
|
@@ -38,7 +39,7 @@
|
|
38
39
|
"dependencies": {
|
39
40
|
"@qxs-bns/hooks": "0.0.1",
|
40
41
|
"@qxs-bns/utils": "0.0.1",
|
41
|
-
"@qxs-bns/directives": "0.0.
|
42
|
+
"@qxs-bns/directives": "0.0.2",
|
42
43
|
"element-plus": ">=2.4.0",
|
43
44
|
"@element-plus/icons-vue": "^2.0.0"
|
44
45
|
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@use "var";
|
2
|
+
@use "common/transition";
|
3
|
+
|
4
|
+
:root {
|
5
|
+
// 右侧内容区针对fixed元素,有横向铺满的需求,可在fixed元素上设置 [data-fixed-calc-width]
|
6
|
+
[data-fixed-calc-width] {
|
7
|
+
position: fixed;
|
8
|
+
right: 0;
|
9
|
+
left: 0%;
|
10
|
+
}
|
11
|
+
|
12
|
+
[data-mode="mobile"] {
|
13
|
+
[data-fixed-calc-width] {
|
14
|
+
width: 100% !important;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
@use "mixins/mixins" as *;
|
2
|
+
|
3
|
+
@include b(file-upload) {
|
4
|
+
@include e(control) {
|
5
|
+
.el-upload.is-drag {
|
6
|
+
display: inline-block;
|
7
|
+
|
8
|
+
.el-upload-dragger {
|
9
|
+
padding: 0;
|
10
|
+
|
11
|
+
.el-icon--upload {
|
12
|
+
margin-bottom: 0;
|
13
|
+
font-size: 40px;
|
14
|
+
}
|
15
|
+
|
16
|
+
.el-upload__text {
|
17
|
+
padding: 0 6px;
|
18
|
+
font-size: 14px;
|
19
|
+
line-height: 1.5;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
&.is-dragover {
|
24
|
+
border-width: 1px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.slot {
|
28
|
+
width: 160px;
|
29
|
+
height: 90px;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@use "mixins/mixins" as *;
|
2
|
+
|
3
|
+
@include b(fixed-action-bar) {
|
4
|
+
&__actionbar {
|
5
|
+
bottom: 0;
|
6
|
+
z-index: 10;
|
7
|
+
padding: getCssVar("fixed-action-bar", "actionbar-padding");
|
8
|
+
text-align: center;
|
9
|
+
background-color: var(--qxs-bg-color, #fff);
|
10
|
+
box-shadow: 0 0 1px 0 var(--qxs-border-color, #f3f3f2);
|
11
|
+
transition: box-shadow 0.3s, var(--qxs-transition-box-shadow, #f3f3f2);
|
12
|
+
|
13
|
+
@include when(shadow) {
|
14
|
+
box-shadow: 0 -10px 10px -10px var(--qxs-border-color, #fff);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
@use "mixins/mixins" as *;
|
2
|
+
|
3
|
+
@include b(image-upload) {
|
4
|
+
@include e(upload-container) {
|
5
|
+
line-height: initial;
|
6
|
+
|
7
|
+
.el-upload__tip-text {
|
8
|
+
font-size: 14px;
|
9
|
+
line-height: 32px;
|
10
|
+
color: #c8c8c8;
|
11
|
+
}
|
12
|
+
|
13
|
+
.el-image {
|
14
|
+
display: block;
|
15
|
+
}
|
16
|
+
|
17
|
+
.image {
|
18
|
+
position: relative;
|
19
|
+
overflow: hidden;
|
20
|
+
border-radius: 6px;
|
21
|
+
|
22
|
+
.mask {
|
23
|
+
position: absolute;
|
24
|
+
top: 0;
|
25
|
+
width: 100%;
|
26
|
+
height: 100%;
|
27
|
+
background-color: var(--el-overlay-color-lighter);
|
28
|
+
opacity: 0;
|
29
|
+
transition: opacity 0.3s;
|
30
|
+
|
31
|
+
.actions {
|
32
|
+
display: flex;
|
33
|
+
flex-wrap: wrap;
|
34
|
+
align-items: center;
|
35
|
+
justify-content: center;
|
36
|
+
width: 100px;
|
37
|
+
height: 100px;
|
38
|
+
|
39
|
+
@include position-center(xy);
|
40
|
+
|
41
|
+
span {
|
42
|
+
width: 50%;
|
43
|
+
color: var(--el-color-white);
|
44
|
+
text-align: center;
|
45
|
+
cursor: pointer;
|
46
|
+
transition: color 0.1s, transform 0.1s;
|
47
|
+
|
48
|
+
&:hover {
|
49
|
+
transform: scale(1.5);
|
50
|
+
}
|
51
|
+
|
52
|
+
.el-icon {
|
53
|
+
font-size: 24px;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&:hover .mask {
|
60
|
+
opacity: 1;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
@include e(image-upload) {
|
65
|
+
display: inline-block;
|
66
|
+
vertical-align: top;
|
67
|
+
}
|
68
|
+
|
69
|
+
.el-upload {
|
70
|
+
font-size: 0;
|
71
|
+
|
72
|
+
.el-upload-dragger {
|
73
|
+
display: inline-block;
|
74
|
+
padding: 0;
|
75
|
+
font-size: 0;
|
76
|
+
|
77
|
+
&.is-dragover {
|
78
|
+
border-width: 1px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.image-slot {
|
82
|
+
display: flex;
|
83
|
+
flex-direction: column;
|
84
|
+
align-items: center;
|
85
|
+
justify-content: center;
|
86
|
+
width: 100%;
|
87
|
+
height: 100%;
|
88
|
+
font-size: 14px;
|
89
|
+
color: var(--el-text-color-placeholder);
|
90
|
+
background-color: #f5f5f5;
|
91
|
+
transition: all 0.3s;
|
92
|
+
|
93
|
+
&:hover {
|
94
|
+
background-color: #eee;
|
95
|
+
}
|
96
|
+
|
97
|
+
.el-icon {
|
98
|
+
font-size: 28px;
|
99
|
+
}
|
100
|
+
|
101
|
+
p {
|
102
|
+
margin-top: 10px;
|
103
|
+
margin-bottom: 0;
|
104
|
+
line-height: 1em;
|
105
|
+
color: #5a5a5a;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.progress {
|
110
|
+
position: absolute;
|
111
|
+
top: 0;
|
112
|
+
|
113
|
+
&::after {
|
114
|
+
position: absolute;
|
115
|
+
top: 0;
|
116
|
+
left: 0;
|
117
|
+
width: 100%;
|
118
|
+
height: 100%;
|
119
|
+
content: "";
|
120
|
+
background-color: var(--el-overlay-color-lighter);
|
121
|
+
}
|
122
|
+
|
123
|
+
.el-progress {
|
124
|
+
z-index: 1;
|
125
|
+
|
126
|
+
@include position-center(xy);
|
127
|
+
|
128
|
+
.el-progress__text {
|
129
|
+
color: var(--el-text-color-placeholder);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
@use "mixins/mixins" as *;
|
2
|
+
|
3
|
+
@include b(photo-crop-tool) {
|
4
|
+
@include e(img-box) {
|
5
|
+
position: relative;
|
6
|
+
display: flex;
|
7
|
+
align-items: center;
|
8
|
+
justify-content: center;
|
9
|
+
width: 100%;
|
10
|
+
height: 100%;
|
11
|
+
overflow: hidden;
|
12
|
+
background-color: #fafafa;
|
13
|
+
|
14
|
+
@include e(error-message) {
|
15
|
+
color: red;
|
16
|
+
}
|
17
|
+
|
18
|
+
@include e(image) {
|
19
|
+
max-width: 100%;
|
20
|
+
max-height: 100%;
|
21
|
+
vertical-align: middle;
|
22
|
+
// 禁止选中
|
23
|
+
user-select: none;
|
24
|
+
object-fit: contain;
|
25
|
+
// 禁止过拽
|
26
|
+
-webkit-user-drag: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
@include e(crop-tool-box) {
|
30
|
+
position: absolute;
|
31
|
+
width: calc(getCssVar("photo-crop-tool", "width") * 1px);
|
32
|
+
max-width: 100%;
|
33
|
+
height: calc(getCssVar("photo-crop-tool", "height") * 1px);
|
34
|
+
max-height: 100%;
|
35
|
+
aspect-ratio: getCssVar("photo-crop-tool", "aspect-ratio");
|
36
|
+
overflow: hidden;
|
37
|
+
cursor: move;
|
38
|
+
border: 1px dashed #fff;
|
39
|
+
box-shadow: 0 0 0 9999px rgb(0 0 0 / 40%); /* 扩展阴影以覆盖周围区域 */
|
40
|
+
> div {
|
41
|
+
position: absolute;
|
42
|
+
z-index: 3;
|
43
|
+
width: 30%;
|
44
|
+
aspect-ratio: 1 / 1;
|
45
|
+
background-color: rgba($color: #020202, $alpha: 1%);
|
46
|
+
border-radius: 50%;
|
47
|
+
transition: all 0.3s;
|
48
|
+
|
49
|
+
&:hover,
|
50
|
+
&:active {
|
51
|
+
background-color: rgba($color: #020202, $alpha: 50%);
|
52
|
+
}
|
53
|
+
|
54
|
+
@include e(top-left) {
|
55
|
+
top: 0;
|
56
|
+
left: 0;
|
57
|
+
cursor: nwse-resize;
|
58
|
+
transform: translate3d(-50%, -50%, 0);
|
59
|
+
}
|
60
|
+
|
61
|
+
@include e(top-right) {
|
62
|
+
top: 0;
|
63
|
+
right: 0;
|
64
|
+
cursor: nesw-resize;
|
65
|
+
transform: translate3d(50%, -50%, 0);
|
66
|
+
}
|
67
|
+
|
68
|
+
@include e(bottom-right) {
|
69
|
+
right: 0;
|
70
|
+
bottom: 0;
|
71
|
+
cursor: nwse-resize;
|
72
|
+
transform: translate3d(50%, 50%, 0);
|
73
|
+
}
|
74
|
+
|
75
|
+
@include e(bottom-left) {
|
76
|
+
bottom: 0;
|
77
|
+
left: 0;
|
78
|
+
cursor: nesw-resize;
|
79
|
+
transform: translate3d(-50%, 50%, 0);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@use "mixins/mixins" as *;
|
2
|
+
|
3
|
+
@include b(rich-editor) {
|
4
|
+
@include e(tiny-mce) {
|
5
|
+
.tox:not(.tox-tinymce-inline) {
|
6
|
+
border-width: 1px;
|
7
|
+
border-radius: var(--qxs-border-radius-base);
|
8
|
+
|
9
|
+
.tox-editor-header {
|
10
|
+
box-shadow: 0 2px 2px -2px rgb(34 47 62 / 10%), 0 4px 4px -4px rgb(34 47 62 / 7%);
|
11
|
+
}
|
12
|
+
|
13
|
+
.tox-sidebar-wrap {
|
14
|
+
max-height: 600px;
|
15
|
+
overflow-y: auto;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.tox-tinymce-aux {
|
20
|
+
z-index: 2500 !important;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
// CSS3 var
|
2
|
+
@use "common/var" as *;
|
3
|
+
@use "mixins/var" as *;
|
4
|
+
@use "mixins/mixins" as *;
|
5
|
+
|
6
|
+
// for better performance do not dynamically change the root variable if you really
|
7
|
+
// do not need that, since this could introduce recalculation overhead for rendering.
|
8
|
+
// https://lisilinhart.info/posts/css-variables-performance/
|
9
|
+
|
10
|
+
// common
|
11
|
+
/* stylelint-disable no-duplicate-selectors */
|
12
|
+
:root {
|
13
|
+
@include set-css-var-value("color-white", $color-white);
|
14
|
+
@include set-css-var-value("color-black", $color-black);
|
15
|
+
|
16
|
+
// get rgb
|
17
|
+
@each $type in (primary, success, warning, danger, error, info) {
|
18
|
+
@include set-css-color-rgb($type);
|
19
|
+
}
|
20
|
+
|
21
|
+
// Typography
|
22
|
+
@include set-component-css-var("font-size", $font-size);
|
23
|
+
@include set-component-css-var("font-family", $font-family);
|
24
|
+
@include set-css-var-value("font-weight-primary", 500);
|
25
|
+
@include set-css-var-value("font-line-height-primary", 24px);
|
26
|
+
|
27
|
+
// z-index --qxs-index-#{$type}
|
28
|
+
@include set-component-css-var("index", $z-index);
|
29
|
+
|
30
|
+
// --qxs-border-radius-#{$type}
|
31
|
+
@include set-component-css-var("border-radius", $border-radius);
|
32
|
+
|
33
|
+
// Transition
|
34
|
+
// refer to this website to get the bezier motion function detail
|
35
|
+
// https://cubic-bezier.com/#p1,p2,p3,p4 (change px as your function parameter)
|
36
|
+
@include set-component-css-var("transition-duration", $transition-duration);
|
37
|
+
@include set-component-css-var("transition-function", $transition-function);
|
38
|
+
@include set-component-css-var("transition", $transition);
|
39
|
+
|
40
|
+
// common component size
|
41
|
+
@include set-component-css-var("component-size", $common-component-size);
|
42
|
+
}
|
43
|
+
|
44
|
+
// for light
|
45
|
+
:root {
|
46
|
+
color-scheme: light;
|
47
|
+
|
48
|
+
// --qxs-color-#{$type}
|
49
|
+
// --qxs-color-#{$type}-light-{$i}
|
50
|
+
@each $type in (primary, success, warning, danger, error, info) {
|
51
|
+
@include set-css-color-type($colors, $type);
|
52
|
+
}
|
53
|
+
|
54
|
+
// color-scheme
|
55
|
+
// Background --qxs-bg-color-#{$type}
|
56
|
+
@include set-component-css-var("bg-color", $bg-color);
|
57
|
+
// --qxs-text-color-#{$type}
|
58
|
+
@include set-component-css-var("text-color", $text-color);
|
59
|
+
// --qxs-border-color-#{$type}
|
60
|
+
@include set-component-css-var("border-color", $border-color);
|
61
|
+
// Fill --qxs-fill-color-#{$type}
|
62
|
+
@include set-component-css-var("fill-color", $fill-color);
|
63
|
+
|
64
|
+
// Box-shadow
|
65
|
+
// --qxs-box-shadow-#{$type}
|
66
|
+
@include set-component-css-var("box-shadow", $box-shadow);
|
67
|
+
// Disable base
|
68
|
+
@include set-component-css-var("disabled", $disabled);
|
69
|
+
|
70
|
+
// overlay & mask
|
71
|
+
@include set-component-css-var("overlay-color", $overlay-color);
|
72
|
+
@include set-component-css-var("mask-color", $mask-color);
|
73
|
+
|
74
|
+
// Border
|
75
|
+
@include set-css-var-value("border-width", $border-width);
|
76
|
+
@include set-css-var-value("border-style", $border-style);
|
77
|
+
@include set-css-var-value("border-color-hover", $border-color-hover);
|
78
|
+
@include set-css-var-value(
|
79
|
+
"border",
|
80
|
+
getCssVar("border-width") getCssVar("border-style")
|
81
|
+
getCssVar("border-color")
|
82
|
+
);
|
83
|
+
|
84
|
+
// Svg
|
85
|
+
@include css-var-from-global("svg-monochrome-grey", "border-color");
|
86
|
+
}
|
87
|
+
/* stylelint-enable no-duplicate-selectors */
|
package/vendor.cjs
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";var Xe=Object.defineProperty,et=Object.defineProperties;var tt=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var re=(e,t,n)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>{for(var n in t||(t={}))ae.call(t,n)&&re(e,n,t[n]);if(D)for(var n of D(t))se.call(t,n)&&re(e,n,t[n]);return e},I=(e,t)=>et(e,tt(t));var le=(e,t)=>{var n={};for(var r in e)ae.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&D)for(var r of D(e))t.indexOf(r)<0&&se.call(e,r)&&(n[r]=e[r]);return n};const o=require("vue");/*! Element Plus Icons Vue v2.3.1 */var nt=o.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ne=nt,ot=o.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),rt=ot,at=o.defineComponent({name:"Delete",__name:"delete",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),st=at,lt=o.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ie=lt,it=o.defineComponent({name:"Plus",__name:"plus",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),ct=it,ut=o.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Te=ut,dt=o.defineComponent({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),pt=dt,ft=o.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Pe=ft,mt=o.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),gt=mt,ie;const z=typeof window!="undefined",vt=e=>typeof e=="string",_t=()=>{};z&&((ie=window==null?void 0:window.navigator)!=null&&ie.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function W(e){return typeof e=="function"?e():o.unref(e)}function ht(e){return e}function Y(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function yt(e,t=!0){o.getCurrentInstance()?o.onMounted(e):t?e():o.nextTick(e)}function bt(e,t,n={}){const{immediate:r=!0}=n,a=o.ref(!1);let l=null;function s(){l&&(clearTimeout(l),l=null)}function i(){a.value=!1,s()}function u(...p){s(),a.value=!0,l=setTimeout(()=>{a.value=!1,l=null,e(...p)},W(t))}return r&&(a.value=!0,z&&u()),Y(i),{isPending:o.readonly(a),start:u,stop:i}}function ze(e){var t;const n=W(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Be=z?window:void 0;function wt(...e){let t,n,r,a;if(vt(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=Be):[t,n,r,a]=e,!t)return _t;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],s=()=>{l.forEach(d=>d()),l.length=0},i=(d,g,h,C)=>(d.addEventListener(g,h,C),()=>d.removeEventListener(g,h,C)),u=o.watch(()=>[ze(t),W(a)],([d,g])=>{s(),d&&l.push(...n.flatMap(h=>r.map(C=>i(d,h,C,g))))},{immediate:!0,flush:"post"}),p=()=>{u(),s()};return Y(p),p}function Ct(e,t=!1){const n=o.ref(),r=()=>n.value=!!e();return r(),yt(r,t),n}const ce=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ue="__vueuse_ssr_handlers__";ce[ue]=ce[ue]||{};var de=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Et=(e,t)=>{var n={};for(var r in e)Ot.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&de)for(var r of de(e))t.indexOf(r)<0&&xt.call(e,r)&&(n[r]=e[r]);return n};function St(e,t,n={}){const r=n,{window:a=Be}=r,l=Et(r,["window"]);let s;const i=Ct(()=>a&&"ResizeObserver"in a),u=()=>{s&&(s.disconnect(),s=void 0)},p=o.watch(()=>ze(e),g=>{u(),i.value&&a&&g&&(s=new ResizeObserver(t),s.observe(g,l))},{immediate:!0,flush:"post"}),d=()=>{u(),p()};return Y(d),{isSupported:i,stop:d}}var pe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(pe||(pe={}));var Nt=Object.defineProperty,fe=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,me=(e,t,n)=>t in e?Nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pt=(e,t)=>{for(var n in t||(t={}))It.call(t,n)&&me(e,n,t[n]);if(fe)for(var n of fe(t))Tt.call(t,n)&&me(e,n,t[n]);return e};const zt={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Pt({linear:ht},zt);/**
|
2
|
+
* @vue/shared v3.5.12
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
4
|
+
* @license MIT
|
5
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const Bt=Object.prototype.hasOwnProperty,ge=(e,t)=>Bt.call(e,t),L=e=>typeof e=="function",k=e=>typeof e=="string",$e=e=>e!==null&&typeof e=="object";var $t=typeof global=="object"&&global&&global.Object===Object&&global,kt=typeof self=="object"&&self&&self.Object===Object&&self,Q=$t||kt||Function("return this")(),T=Q.Symbol,ke=Object.prototype,jt=ke.hasOwnProperty,Mt=ke.toString,$=T?T.toStringTag:void 0;function Vt(e){var t=jt.call(e,$),n=e[$];try{e[$]=void 0;var r=!0}catch(l){}var a=Mt.call(e);return r&&(t?e[$]=n:delete e[$]),a}var Dt=Object.prototype,Ft=Dt.toString;function Lt(e){return Ft.call(e)}var At="[object Null]",Ht="[object Undefined]",ve=T?T.toStringTag:void 0;function je(e){return e==null?e===void 0?Ht:At:ve&&ve in Object(e)?Vt(e):Lt(e)}function Rt(e){return e!=null&&typeof e=="object"}var Kt="[object Symbol]";function q(e){return typeof e=="symbol"||Rt(e)&&je(e)==Kt}function Ut(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var X=Array.isArray,Gt=1/0,_e=T?T.prototype:void 0,he=_e?_e.toString:void 0;function Me(e){if(typeof e=="string")return e;if(X(e))return Ut(e,Me)+"";if(q(e))return he?he.call(e):"";var t=e+"";return t=="0"&&1/e==-Gt?"-0":t}function Ve(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zt="[object AsyncFunction]",Jt="[object Function]",Wt="[object GeneratorFunction]",Yt="[object Proxy]";function Qt(e){if(!Ve(e))return!1;var t=je(e);return t==Jt||t==Wt||t==Zt||t==Yt}var Z=Q["__core-js_shared__"],ye=function(){var e=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qt(e){return!!ye&&ye in e}var Xt=Function.prototype,en=Xt.toString;function tn(e){if(e!=null){try{return en.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var nn=/[\\^$.*+?()[\]{}|]/g,on=/^\[object .+?Constructor\]$/,rn=Function.prototype,an=Object.prototype,sn=rn.toString,ln=an.hasOwnProperty,cn=RegExp("^"+sn.call(ln).replace(nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function un(e){if(!Ve(e)||qt(e))return!1;var t=Qt(e)?cn:on;return t.test(tn(e))}function dn(e,t){return e==null?void 0:e[t]}function De(e,t){var n=dn(e,t);return un(n)?n:void 0}function pn(e,t){return e===t||e!==e&&t!==t}var fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/;function gn(e,t){if(X(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||q(e)?!0:mn.test(e)||!fn.test(e)||t!=null&&e in Object(t)}var j=De(Object,"create");function vn(){this.__data__=j?j(null):{},this.size=0}function _n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hn="__lodash_hash_undefined__",yn=Object.prototype,bn=yn.hasOwnProperty;function wn(e){var t=this.__data__;if(j){var n=t[e];return n===hn?void 0:n}return bn.call(t,e)?t[e]:void 0}var Cn=Object.prototype,On=Cn.hasOwnProperty;function xn(e){var t=this.__data__;return j?t[e]!==void 0:On.call(t,e)}var En="__lodash_hash_undefined__";function Sn(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=j&&t===void 0?En:t,this}function E(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}E.prototype.clear=vn;E.prototype.delete=_n;E.prototype.get=wn;E.prototype.has=xn;E.prototype.set=Sn;function Nn(){this.__data__=[],this.size=0}function H(e,t){for(var n=e.length;n--;)if(pn(e[n][0],t))return n;return-1}var In=Array.prototype,Tn=In.splice;function Pn(e){var t=this.__data__,n=H(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Tn.call(t,n,1),--this.size,!0}function zn(e){var t=this.__data__,n=H(t,e);return n<0?void 0:t[n][1]}function Bn(e){return H(this.__data__,e)>-1}function $n(e,t){var n=this.__data__,r=H(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function B(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}B.prototype.clear=Nn;B.prototype.delete=Pn;B.prototype.get=zn;B.prototype.has=Bn;B.prototype.set=$n;var kn=De(Q,"Map");function jn(){this.size=0,this.__data__={hash:new E,map:new(kn||B),string:new E}}function Mn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function R(e,t){var n=e.__data__;return Mn(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Vn(e){var t=R(this,e).delete(e);return this.size-=t?1:0,t}function Dn(e){return R(this,e).get(e)}function Fn(e){return R(this,e).has(e)}function Ln(e,t){var n=R(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function N(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}N.prototype.clear=jn;N.prototype.delete=Vn;N.prototype.get=Dn;N.prototype.has=Fn;N.prototype.set=Ln;var An="Expected a function";function ee(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(An);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],l=n.cache;if(l.has(a))return l.get(a);var s=e.apply(this,r);return n.cache=l.set(a,s)||l,s};return n.cache=new(ee.Cache||N),n}ee.Cache=N;var Hn=500;function Rn(e){var t=ee(e,function(r){return n.size===Hn&&n.clear(),r}),n=t.cache;return t}var Kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Un=/\\(\\)?/g,Gn=Rn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kn,function(n,r,a,l){t.push(a?l.replace(Un,"$1"):r||n)}),t});function Zn(e){return e==null?"":Me(e)}function Jn(e,t){return X(e)?e:gn(e,t)?[e]:Gn(Zn(e))}var Wn=1/0;function Yn(e){if(typeof e=="string"||q(e))return e;var t=e+"";return t=="0"&&1/e==-Wn?"-0":t}function Qn(e,t){t=Jn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Yn(t[n++])];return n&&n==r?e:void 0}function qn(e,t,n){var r=e==null?void 0:Qn(e,t);return r===void 0?n:r}function Xn(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}const eo=e=>e===void 0,be=e=>typeof e=="boolean",S=e=>typeof e=="number",to=e=>typeof Element=="undefined"?!1:e instanceof Element,no=e=>k(e)?!Number.isNaN(Number(e)):!1,we=e=>Object.keys(e);class oo extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function K(e,t){if(process.env.NODE_ENV!=="production"){const n=k(e)?new oo(`[${e}] ${t}`):e}}const ro="utils/dom/style";function J(e,t="px"){if(!e)return"";if(S(e)||no(e))return`${e}${t}`;if(k(e))return e;K(ro,"binding value must be a string or number")}const Fe="__epPropKey",w=e=>e,ao=e=>$e(e)&&!!e[Fe],Le=(e,t)=>{if(!$e(e)||ao(e))return e;const{values:n,required:r,default:a,type:l,validator:s}=e,u={type:l,required:!!r,validator:n||s?p=>{let d=!1,g=[];if(n&&(g=Array.from(n),ge(e,"default")&&g.push(a),d||(d=g.includes(p))),s&&(d||(d=s(p))),!d&&g.length>0){const h=[...new Set(g)].map(C=>JSON.stringify(C)).join(", ");o.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(p)}.`)}return d}:void 0,[Fe]:!0};return ge(e,"default")&&(u.default=a),u},M=e=>Xn(Object.entries(e).map(([t,n])=>[t,Le(n,t)])),so=w([String,Object,Function]),lo={Close:rt,SuccessFilled:Te,InfoFilled:Ie,WarningFilled:Pe,CircleCloseFilled:Ne},Ce={success:Te,warning:Pe,error:Ne,info:Ie},Ae=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),io=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),co={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},uo=["","default","small","large"],po=e=>e;var fo={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const mo=e=>(t,n)=>go(t,n,o.unref(e)),go=(e,t,n)=>qn(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var l;return`${(l=t==null?void 0:t[a])!=null?l:`{${a}}`}`}),vo=e=>{const t=o.computed(()=>o.unref(e).name),n=o.isRef(e)?e:o.ref(e);return{lang:t,locale:n,t:mo(e)}},He=Symbol("localeContextKey"),_o=e=>{const t=e||o.inject(He,o.ref());return vo(o.computed(()=>t.value||fo))},F="el",ho="is-",x=(e,t,n,r,a)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),r&&(l+=`__${r}`),a&&(l+=`--${a}`),l},Re=Symbol("namespaceContextKey"),yo=e=>{const t=e||(o.getCurrentInstance()?o.inject(Re,o.ref(F)):o.ref(F));return o.computed(()=>o.unref(t)||F)},te=(e,t)=>{const n=yo(t);return{namespace:n,b:(c="")=>x(n.value,e,c,"",""),e:c=>c?x(n.value,e,"",c,""):"",m:c=>c?x(n.value,e,"","",c):"",be:(c,f)=>c&&f?x(n.value,e,c,f,""):"",em:(c,f)=>c&&f?x(n.value,e,"",c,f):"",bm:(c,f)=>c&&f?x(n.value,e,c,"",f):"",bem:(c,f,_)=>c&&f&&_?x(n.value,e,c,f,_):"",is:(c,...f)=>{const _=f.length>=1?f[0]:!0;return c&&_?`${ho}${c}`:""},cssVar:c=>{const f={};for(const _ in c)c[_]&&(f[`--${n.value}-${_}`]=c[_]);return f},cssVarName:c=>`--${n.value}-${c}`,cssVarBlock:c=>{const f={};for(const _ in c)c[_]&&(f[`--${n.value}-${e}-${_}`]=c[_]);return f},cssVarBlockName:c=>`--${n.value}-${e}-${c}`}},Oe={current:0},xe=o.ref(0),Ke=2e3,Ee=Symbol("elZIndexContextKey"),Ue=Symbol("zIndexContextKey"),bo=e=>{const t=o.getCurrentInstance()?o.inject(Ee,Oe):Oe,n=e||(o.getCurrentInstance()?o.inject(Ue,void 0):void 0),r=o.computed(()=>{const s=o.unref(n);return S(s)?s:Ke}),a=o.computed(()=>r.value+xe.value),l=()=>(t.current++,xe.value=t.current,a.value);return!z&&!o.inject(Ee)&&K("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
6
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:a,nextZIndex:l}},wo=Le({type:String,values:uo,required:!1}),Co=Symbol("size"),Oo=Symbol("emptyValuesContextKey"),xo=M({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>L(e)?!e():!e}}),Ge=Symbol(),A=o.ref();function Ze(e,t=void 0){return o.getCurrentInstance()?o.inject(Ge,A):A}function Eo(e,t){const n=Ze(),r=te(e,o.computed(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||F})),a=_o(o.computed(()=>{var i;return(i=n.value)==null?void 0:i.locale})),l=bo(o.computed(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||Ke})),s=o.computed(()=>{var i;return o.unref(t)||((i=n.value)==null?void 0:i.size)||""});return Je(o.computed(()=>o.unref(n)||{})),{ns:r,locale:a,zIndex:l,size:s}}const Je=(e,t,n=!1)=>{var r;const a=!!o.getCurrentInstance(),l=a?Ze():void 0,s=(r=void 0)!=null?r:a?o.provide:void 0;if(!s){K("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const i=o.computed(()=>{const u=o.unref(e);return l!=null&&l.value?So(l.value,u):u});return s(Ge,i),s(He,o.computed(()=>i.value.locale)),s(Re,o.computed(()=>i.value.namespace)),s(Ue,o.computed(()=>i.value.zIndex)),s(Co,{size:o.computed(()=>i.value.size||"")}),s(Oo,o.computed(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!A.value)&&(A.value=i.value),i},So=(e,t)=>{const n=[...new Set([...we(e),...we(t)])],r={};for(const a of n)r[a]=t[a]!==void 0?t[a]:e[a];return r},No=M(O({a11y:{type:Boolean,default:!0},locale:{type:w(Object)},size:wo,button:{type:w(Object)},experimentalFeatures:{type:w(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:w(Object)},zIndex:Number,namespace:{type:String,default:"el"}},xo)),y={};o.defineComponent({name:"ElConfigProvider",props:No,setup(e,{slots:t}){o.watch(()=>e.message,r=>{Object.assign(y,r!=null?r:{})},{immediate:!0,deep:!0});const n=Je(e);return()=>o.renderSlot(t,"default",{config:n==null?void 0:n.value})}});var ne=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const Io=M({size:{type:w([Number,String])},color:{type:String}}),To=o.defineComponent({name:"ElIcon",inheritAttrs:!1}),Po=o.defineComponent(I(O({},To),{props:Io,setup(e){const t=e,n=te("icon"),r=o.computed(()=>{const{size:a,color:l}=t;return!a&&!l?{}:{fontSize:eo(a)?void 0:J(a),"--color":l}});return(a,l)=>(o.openBlock(),o.createElementBlock("i",o.mergeProps({class:o.unref(n).b(),style:o.unref(r)},a.$attrs),[o.renderSlot(a.$slots,"default")],16))}}));var zo=ne(Po,[["__file","icon.vue"]]);const Se=Ae(zo),Bo=M({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:w([String,Object,Array])},offset:{type:w(Array),default:[0,0]},badgeClass:{type:String}}),$o=o.defineComponent({name:"ElBadge"}),ko=o.defineComponent(I(O({},$o),{props:Bo,setup(e,{expose:t}){const n=e,r=te("badge"),a=o.computed(()=>n.isDot?"":S(n.value)&&S(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),l=o.computed(()=>{var s,i,u,p,d;return[{backgroundColor:n.color,marginRight:J(-((i=(s=n.offset)==null?void 0:s[0])!=null?i:0)),marginTop:J((p=(u=n.offset)==null?void 0:u[1])!=null?p:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:a}),(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(r).b())},[o.renderSlot(s.$slots,"default"),o.createVNode(o.Transition,{name:`${o.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("sup",{class:o.normalizeClass([o.unref(r).e("content"),o.unref(r).em("content",s.type),o.unref(r).is("fixed",!!s.$slots.default),o.unref(r).is("dot",s.isDot),o.unref(r).is("hide-zero",!s.showZero&&n.value===0),s.badgeClass]),style:o.normalizeStyle(o.unref(l)),textContent:o.toDisplayString(o.unref(a))},null,14,["textContent"]),[[o.vShow,!s.hidden&&(o.unref(a)||s.isDot)]])]),_:1},8,["name"])],2))}}));var jo=ne(ko,[["__file","badge.vue"]]);const Mo=Ae(jo),We=["success","info","warning","error"],v=po({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:z?document.body:void 0}),Vo=M({customClass:{type:String,default:v.customClass},center:{type:Boolean,default:v.center},dangerouslyUseHTMLString:{type:Boolean,default:v.dangerouslyUseHTMLString},duration:{type:Number,default:v.duration},icon:{type:so,default:v.icon},id:{type:String,default:v.id},message:{type:w([String,Object,Function]),default:v.message},onClose:{type:w(Function),default:v.onClose},showClose:{type:Boolean,default:v.showClose},type:{type:String,values:We,default:v.type},plain:{type:Boolean,default:v.plain},offset:{type:Number,default:v.offset},zIndex:{type:Number,default:v.zIndex},grouping:{type:Boolean,default:v.grouping},repeatNum:{type:Number,default:v.repeatNum}}),Do={destroy:()=>!0},b=o.shallowReactive([]),Fo=e=>{const t=b.findIndex(a=>a.id===e),n=b[t];let r;return t>0&&(r=b[t-1]),{current:n,prev:r}},Lo=e=>{const{prev:t}=Fo(e);return t?t.vm.exposed.bottom.value:0},Ao=(e,t)=>b.findIndex(r=>r.id===e)>0?16:t,Ho=o.defineComponent({name:"ElMessage"}),Ro=o.defineComponent(I(O({},Ho),{props:Vo,emits:Do,setup(e,{expose:t}){const n=e,{Close:r}=lo,{ns:a,zIndex:l}=Eo("message"),{currentZIndex:s,nextZIndex:i}=l,u=o.ref(),p=o.ref(!1),d=o.ref(0);let g;const h=o.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),C=o.computed(()=>{const m=n.type;return{[a.bm("icon",m)]:m&&Ce[m]}}),U=o.computed(()=>n.icon||Ce[n.type]||""),c=o.computed(()=>Lo(n.id)),f=o.computed(()=>Ao(n.id,n.offset)+c.value),_=o.computed(()=>d.value+f.value),Qe=o.computed(()=>({top:`${f.value}px`,zIndex:s.value}));function G(){n.duration!==0&&({stop:g}=bt(()=>{V()},n.duration))}function oe(){g==null||g()}function V(){p.value=!1}function qe({code:m}){m===co.esc&&V()}return o.onMounted(()=>{G(),i(),p.value=!0}),o.watch(()=>n.repeatNum,()=>{oe(),G()}),wt(document,"keydown",qe),St(u,()=>{d.value=u.value.getBoundingClientRect().height}),t({visible:p,bottom:_,close:V}),(m,Yo)=>(o.openBlock(),o.createBlock(o.Transition,{name:o.unref(a).b("fade"),onBeforeLeave:m.onClose,onAfterLeave:Qo=>m.$emit("destroy"),persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{id:m.id,ref_key:"messageRef",ref:u,class:o.normalizeClass([o.unref(a).b(),{[o.unref(a).m(m.type)]:m.type},o.unref(a).is("center",m.center),o.unref(a).is("closable",m.showClose),o.unref(a).is("plain",m.plain),m.customClass]),style:o.normalizeStyle(o.unref(Qe)),role:"alert",onMouseenter:oe,onMouseleave:G},[m.repeatNum>1?(o.openBlock(),o.createBlock(o.unref(Mo),{key:0,value:m.repeatNum,type:o.unref(h),class:o.normalizeClass(o.unref(a).e("badge"))},null,8,["value","type","class"])):o.createCommentVNode("v-if",!0),o.unref(U)?(o.openBlock(),o.createBlock(o.unref(Se),{key:1,class:o.normalizeClass([o.unref(a).e("icon"),o.unref(C)])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref(U))))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),o.renderSlot(m.$slots,"default",{},()=>[m.dangerouslyUseHTMLString?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),o.createElementVNode("p",{class:o.normalizeClass(o.unref(a).e("content")),innerHTML:m.message},null,10,["innerHTML"])],2112)):(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(o.unref(a).e("content"))},o.toDisplayString(m.message),3))]),m.showClose?(o.openBlock(),o.createBlock(o.unref(Se),{key:2,class:o.normalizeClass(o.unref(a).e("closeBtn")),onClick:o.withModifiers(V,["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(r))]),_:1},8,["class","onClick"])):o.createCommentVNode("v-if",!0)],46,["id"]),[[o.vShow,p.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}));var Ko=ne(Ro,[["__file","message.vue"]]);let Uo=1;const Ye=e=>{const t=!e||k(e)||o.isVNode(e)||L(e)?{message:e}:e,n=O(O({},v),t);if(!n.appendTo)n.appendTo=document.body;else if(k(n.appendTo)){let r=document.querySelector(n.appendTo);to(r)||(K("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),n.appendTo=r}return be(y.grouping)&&!n.grouping&&(n.grouping=y.grouping),S(y.duration)&&n.duration===3e3&&(n.duration=y.duration),S(y.offset)&&n.offset===16&&(n.offset=y.offset),be(y.showClose)&&!n.showClose&&(n.showClose=y.showClose),n},Go=e=>{const t=b.indexOf(e);if(t===-1)return;b.splice(t,1);const{handler:n}=e;n.close()},Zo=(r,n)=>{var a=r,{appendTo:e}=a,t=le(a,["appendTo"]);const l=`message_${Uo++}`,s=t.onClose,i=document.createElement("div"),u=I(O({},t),{id:l,onClose:()=>{s==null||s(),Go(h)},onDestroy:()=>{o.render(null,i)}}),p=o.createVNode(Ko,u,L(u.message)||o.isVNode(u.message)?{default:L(u.message)?u.message:()=>u.message}:null);p.appContext=n||P._context,o.render(p,i),e.appendChild(i.firstElementChild);const d=p.component,h={id:l,vnode:p,vm:d,handler:{close:()=>{d.exposed.visible.value=!1}},props:p.component.props};return h},P=(e={},t)=>{if(!z)return{close:()=>{}};const n=Ye(e);if(n.grouping&&b.length){const a=b.find(({vnode:l})=>{var s;return((s=l.props)==null?void 0:s.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}if(S(y.max)&&b.length>=y.max)return{close:()=>{}};const r=Zo(n,t);return b.push(r),r.handler};We.forEach(e=>{P[e]=(t={},n)=>{const r=Ye(t);return P(I(O({},r),{type:e}),n)}});function Jo(e){for(const t of b)(!e||e===t.props.type)&&t.handler.close()}P.closeAll=Jo;P._context=null;const Wo=io(P,"$message");exports.ElMessage=Wo;exports.delete_default=st;exports.plus_default=ct;exports.upload_filled_default=pt;exports.zoom_in_default=gt;
|