vue-element-ui-x 0.1.8-beta → 0.1.10-beta
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/lib/components/Attachments/index.js +229 -237
- package/lib/components/Bubble/index.js +47 -34
- package/lib/components/BubbleList/index.js +57 -49
- package/lib/components/Conversations/index.js +32 -69
- package/lib/components/FilesCard/index.js +207 -211
- package/lib/components/Prompts/index.js +21 -21
- package/lib/components/Sender/index.js +18 -18
- package/lib/components/Think/index.js +1 -1
- package/lib/components/Thinking/index.js +1 -1
- package/lib/components/ThoughtChain/index.js +60 -47
- package/lib/components/Typewriter/index.js +46 -33
- package/lib/components/Welcome/index.js +1 -1
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +479 -427
- package/lib/index.umd.js +1 -1
- package/lib/mixins/index.js +105 -16
- package/package.json +1 -1
- package/src/components/Attachments/index.js +8 -8
- package/src/components/Attachments/src/main.vue +10 -10
- package/src/components/Bubble/index.js +6 -6
- package/src/components/Bubble/src/main.vue +299 -299
- package/src/components/BubbleList/index.js +8 -8
- package/src/components/BubbleList/src/loading.vue +75 -75
- package/src/components/BubbleList/src/main.vue +461 -466
- package/src/components/Conversations/index.js +8 -8
- package/src/components/Conversations/src/components/item.vue +13 -34
- package/src/components/Conversations/src/main.vue +622 -635
- package/src/components/FilesCard/index.js +8 -8
- package/src/components/FilesCard/src/fileSvg/audio.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/code.vue +35 -35
- package/src/components/FilesCard/src/fileSvg/database.vue +94 -94
- package/src/components/FilesCard/src/fileSvg/excel.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/file.vue +40 -40
- package/src/components/FilesCard/src/fileSvg/image.vue +40 -40
- package/src/components/FilesCard/src/fileSvg/index.js +46 -46
- package/src/components/FilesCard/src/fileSvg/link.vue +54 -54
- package/src/components/FilesCard/src/fileSvg/mark.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/three.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/txt.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -54
- package/src/components/FilesCard/src/fileSvg/video.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/word.vue +38 -38
- package/src/components/FilesCard/src/fileSvg/zip.vue +38 -38
- package/src/components/FilesCard/src/main.vue +4 -8
- package/src/components/FilesCard/src/options.js +18 -18
- package/src/components/Prompts/index.js +8 -8
- package/src/components/Prompts/src/main.vue +248 -248
- package/src/components/Sender/index.js +8 -8
- package/src/components/Sender/src/components/ClearButton.vue +28 -28
- package/src/components/Sender/src/components/Loading.vue +53 -53
- package/src/components/Sender/src/components/LoadingButton.vue +39 -39
- package/src/components/Sender/src/components/SendButton.vue +26 -26
- package/src/components/Sender/src/components/SpeechButton.vue +24 -24
- package/src/components/Sender/src/components/SpeechLoading.vue +87 -87
- package/src/components/Sender/src/components/SpeechLoadingButton.vue +43 -43
- package/src/components/Sender/src/main.vue +4 -3
- package/src/components/Think/index.js +8 -8
- package/src/components/Think/src/main.vue +190 -190
- package/src/components/Thinking/index.js +8 -8
- package/src/components/ThoughtChain/index.js +8 -8
- package/src/components/ThoughtChain/src/main.vue +293 -293
- package/src/components/Typewriter/index.js +8 -8
- package/src/components/Typewriter/src/main.vue +10 -2
- package/src/components/Welcome/index.js +8 -8
- package/src/components/Welcome/src/main.vue +151 -151
- package/src/mixins/recordMixin.js +0 -1
- package/src/mixins/sendMixin.js +104 -11
- package/src/mixins/streamMixin.js +3 -5
- package/src/styles/Attachments.scss +236 -236
- package/src/styles/Bubble.scss +157 -157
- package/src/styles/BubbleList.scss +148 -148
- package/src/styles/Conversations.scss +260 -260
- package/src/styles/FilesCard.scss +221 -221
- package/src/styles/Prompts.scss +195 -195
- package/src/styles/Sender.scss +199 -199
- package/src/styles/Think.scss +134 -134
- package/src/styles/ThoughtChain.scss +113 -113
- package/src/styles/Typewriter.scss +66 -66
- package/src/theme/var.scss +72 -72
- package/lib/attachments.js +0 -3082
- package/lib/bubble-list.js +0 -13840
- package/lib/bubble.js +0 -13125
- package/lib/conversations.js +0 -18825
- package/lib/files-card.js +0 -2471
- package/lib/mixins.js +0 -1016
- package/lib/prompts.js +0 -832
- package/lib/sender.js +0 -1911
- package/lib/think.js +0 -799
- package/lib/thinking.js +0 -809
- package/lib/thought-chain.js +0 -30391
- package/lib/typewriter.js +0 -12788
- package/lib/welcome.js +0 -755
- package/src/styles/button.scss +0 -302
- package/src/styles/var.scss +0 -1052
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
@import '../theme/var';
|
|
2
|
-
|
|
3
|
-
.el-x-thoughtchain {
|
|
4
|
-
&-item-dot {
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
.el-button {
|
|
10
|
-
cursor: default !important;
|
|
11
|
-
|
|
12
|
-
// &:active {
|
|
13
|
-
// background-color: $--el-x-fill-color !important;
|
|
14
|
-
// border-color: $--el-x-fill-color !important;
|
|
15
|
-
// }
|
|
16
|
-
|
|
17
|
-
// &:hover {
|
|
18
|
-
// background-color: $--el-x-fill-color !important;
|
|
19
|
-
// border-color: $--el-x-fill-color !important;
|
|
20
|
-
// }
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.el-collapse {
|
|
25
|
-
border: none;
|
|
26
|
-
|
|
27
|
-
.el-collapse-item__header {
|
|
28
|
-
height: 20px;
|
|
29
|
-
font-weight: normal;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.el-collapse-item__arrow {
|
|
33
|
-
margin: 0 0 0 8px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.el-collapse-item__header {
|
|
37
|
-
margin-bottom: 5px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.el-collapse-item__header,
|
|
41
|
-
.el-collapse-item__wrap {
|
|
42
|
-
border: none;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.el-collapse-item__content {
|
|
46
|
-
color: $--el-x-text-color-secondary;
|
|
47
|
-
padding: 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.el-timeline {
|
|
52
|
-
padding: 10px 0 0 5px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.el-timeline-item__timestamp {
|
|
56
|
-
color: $--el-x-text-color-primary;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.el-timeline-item__content {
|
|
60
|
-
color: $--el-x-text-color-secondary;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.el-timeline-item {
|
|
64
|
-
// 清除 li 样式
|
|
65
|
-
list-style: none !important;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.thought-chain-move,
|
|
70
|
-
.thought-chain-enter-active,
|
|
71
|
-
.thought-chain-leave-active {
|
|
72
|
-
transition: all 0.5s ease;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.thought-chain-enter,
|
|
76
|
-
.thought-chain-leave-to {
|
|
77
|
-
opacity: 0;
|
|
78
|
-
transform: translateY(10px) scaleY(0.9);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.thought-chain-leave-active {
|
|
82
|
-
position: absolute;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.el-x-thoughtchain-loading {
|
|
86
|
-
animation: thoughtchain-rotating 1.5s linear infinite;
|
|
87
|
-
transform-origin: center center;
|
|
88
|
-
will-change: transform;
|
|
89
|
-
backface-visibility: hidden;
|
|
90
|
-
-webkit-font-smoothing: antialiased;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@keyframes thoughtchain-rotating {
|
|
94
|
-
0% {
|
|
95
|
-
transform: rotate(0deg);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
25% {
|
|
99
|
-
transform: rotate(90deg);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
50% {
|
|
103
|
-
transform: rotate(180deg);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
75% {
|
|
107
|
-
transform: rotate(270deg);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
100% {
|
|
111
|
-
transform: rotate(360deg);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
1
|
+
@import '../theme/var';
|
|
2
|
+
|
|
3
|
+
.el-x-thoughtchain {
|
|
4
|
+
&-item-dot {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
.el-button {
|
|
10
|
+
cursor: default !important;
|
|
11
|
+
|
|
12
|
+
// &:active {
|
|
13
|
+
// background-color: $--el-x-fill-color !important;
|
|
14
|
+
// border-color: $--el-x-fill-color !important;
|
|
15
|
+
// }
|
|
16
|
+
|
|
17
|
+
// &:hover {
|
|
18
|
+
// background-color: $--el-x-fill-color !important;
|
|
19
|
+
// border-color: $--el-x-fill-color !important;
|
|
20
|
+
// }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.el-collapse {
|
|
25
|
+
border: none;
|
|
26
|
+
|
|
27
|
+
.el-collapse-item__header {
|
|
28
|
+
height: 20px;
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.el-collapse-item__arrow {
|
|
33
|
+
margin: 0 0 0 8px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.el-collapse-item__header {
|
|
37
|
+
margin-bottom: 5px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.el-collapse-item__header,
|
|
41
|
+
.el-collapse-item__wrap {
|
|
42
|
+
border: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.el-collapse-item__content {
|
|
46
|
+
color: $--el-x-text-color-secondary;
|
|
47
|
+
padding: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.el-timeline {
|
|
52
|
+
padding: 10px 0 0 5px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.el-timeline-item__timestamp {
|
|
56
|
+
color: $--el-x-text-color-primary;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.el-timeline-item__content {
|
|
60
|
+
color: $--el-x-text-color-secondary;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.el-timeline-item {
|
|
64
|
+
// 清除 li 样式
|
|
65
|
+
list-style: none !important;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.thought-chain-move,
|
|
70
|
+
.thought-chain-enter-active,
|
|
71
|
+
.thought-chain-leave-active {
|
|
72
|
+
transition: all 0.5s ease;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.thought-chain-enter,
|
|
76
|
+
.thought-chain-leave-to {
|
|
77
|
+
opacity: 0;
|
|
78
|
+
transform: translateY(10px) scaleY(0.9);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.thought-chain-leave-active {
|
|
82
|
+
position: absolute;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.el-x-thoughtchain-loading {
|
|
86
|
+
animation: thoughtchain-rotating 1.5s linear infinite;
|
|
87
|
+
transform-origin: center center;
|
|
88
|
+
will-change: transform;
|
|
89
|
+
backface-visibility: hidden;
|
|
90
|
+
-webkit-font-smoothing: antialiased;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@keyframes thoughtchain-rotating {
|
|
94
|
+
0% {
|
|
95
|
+
transform: rotate(0deg);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
25% {
|
|
99
|
+
transform: rotate(90deg);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
50% {
|
|
103
|
+
transform: rotate(180deg);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
75% {
|
|
107
|
+
transform: rotate(270deg);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
100% {
|
|
111
|
+
transform: rotate(360deg);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
.typer-container {
|
|
2
|
-
overflow-x: auto;
|
|
3
|
-
}
|
|
4
|
-
.markdown-content ::v-deep ul {
|
|
5
|
-
list-style-type: disc;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.typing-markdown-cursor-foggy,
|
|
9
|
-
.typing-cursor-foggy {
|
|
10
|
-
&.markdown-content ::v-deep h1,
|
|
11
|
-
&.markdown-content ::v-deep h2,
|
|
12
|
-
&.markdown-content ::v-deep h3,
|
|
13
|
-
&.markdown-content ::v-deep h4,
|
|
14
|
-
&.markdown-content ::v-deep h5,
|
|
15
|
-
&.markdown-content ::v-deep h6,
|
|
16
|
-
&.markdown-content ::v-deep p,
|
|
17
|
-
&.markdown-content ::v-deep ol:last-child li,
|
|
18
|
-
&.markdown-content ::v-deep ul:last-child li {
|
|
19
|
-
position: relative;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
|
|
22
|
-
&:last-child:after {
|
|
23
|
-
content: '';
|
|
24
|
-
width: var(--cursor-fog-width);
|
|
25
|
-
height: 1.5em;
|
|
26
|
-
background: linear-gradient(90deg, transparent, var(--cursor-fog-bg-color));
|
|
27
|
-
position: absolute;
|
|
28
|
-
margin-left: calc(-1 * var(--cursor-fog-width));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// // 单独处理pre标签
|
|
33
|
-
// &.markdown-content ::v-deep pre {
|
|
34
|
-
// position: relative;
|
|
35
|
-
// overflow: hidden;
|
|
36
|
-
|
|
37
|
-
// &:last-child:after {
|
|
38
|
-
// content: '';
|
|
39
|
-
// width: var(--cursor-fog-width);
|
|
40
|
-
// height: 1.5em;
|
|
41
|
-
// background: linear-gradient(90deg, transparent, var(--cursor-fog-bg-color));
|
|
42
|
-
// position: absolute;
|
|
43
|
-
// margin-left: calc(-1 * var(--cursor-fog-width) );
|
|
44
|
-
// }
|
|
45
|
-
// }
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.typer-content.typing-cursor::after {
|
|
49
|
-
content: var(--cursor-char);
|
|
50
|
-
margin-left: 2px;
|
|
51
|
-
display: inline-block;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.typer-content.typing-cursor-foggy {
|
|
55
|
-
position: relative;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
|
|
58
|
-
&:last-child:after {
|
|
59
|
-
content: '';
|
|
60
|
-
width: var(--cursor-fog-width);
|
|
61
|
-
height: 100%;
|
|
62
|
-
background: linear-gradient(90deg, transparent, var(--cursor-fog-bg-color));
|
|
63
|
-
position: absolute;
|
|
64
|
-
margin-left: calc(-1 * var(--cursor-fog-width));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
.typer-container {
|
|
2
|
+
overflow-x: auto;
|
|
3
|
+
}
|
|
4
|
+
.markdown-content ::v-deep ul {
|
|
5
|
+
list-style-type: disc;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.typing-markdown-cursor-foggy,
|
|
9
|
+
.typing-cursor-foggy {
|
|
10
|
+
&.markdown-content ::v-deep h1,
|
|
11
|
+
&.markdown-content ::v-deep h2,
|
|
12
|
+
&.markdown-content ::v-deep h3,
|
|
13
|
+
&.markdown-content ::v-deep h4,
|
|
14
|
+
&.markdown-content ::v-deep h5,
|
|
15
|
+
&.markdown-content ::v-deep h6,
|
|
16
|
+
&.markdown-content ::v-deep p,
|
|
17
|
+
&.markdown-content ::v-deep ol:last-child li,
|
|
18
|
+
&.markdown-content ::v-deep ul:last-child li {
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
|
|
22
|
+
&:last-child:after {
|
|
23
|
+
content: '';
|
|
24
|
+
width: var(--cursor-fog-width);
|
|
25
|
+
height: 1.5em;
|
|
26
|
+
background: linear-gradient(90deg, transparent, var(--cursor-fog-bg-color));
|
|
27
|
+
position: absolute;
|
|
28
|
+
margin-left: calc(-1 * var(--cursor-fog-width));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// // 单独处理pre标签
|
|
33
|
+
// &.markdown-content ::v-deep pre {
|
|
34
|
+
// position: relative;
|
|
35
|
+
// overflow: hidden;
|
|
36
|
+
|
|
37
|
+
// &:last-child:after {
|
|
38
|
+
// content: '';
|
|
39
|
+
// width: var(--cursor-fog-width);
|
|
40
|
+
// height: 1.5em;
|
|
41
|
+
// background: linear-gradient(90deg, transparent, var(--cursor-fog-bg-color));
|
|
42
|
+
// position: absolute;
|
|
43
|
+
// margin-left: calc(-1 * var(--cursor-fog-width) );
|
|
44
|
+
// }
|
|
45
|
+
// }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.typer-content.typing-cursor::after {
|
|
49
|
+
content: var(--cursor-char);
|
|
50
|
+
margin-left: 2px;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.typer-content.typing-cursor-foggy {
|
|
55
|
+
position: relative;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
|
|
58
|
+
&:last-child:after {
|
|
59
|
+
content: '';
|
|
60
|
+
width: var(--cursor-fog-width);
|
|
61
|
+
height: 100%;
|
|
62
|
+
background: linear-gradient(90deg, transparent, var(--cursor-fog-bg-color));
|
|
63
|
+
position: absolute;
|
|
64
|
+
margin-left: calc(-1 * var(--cursor-fog-width));
|
|
65
|
+
}
|
|
66
|
+
}
|
package/src/theme/var.scss
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
@import '~element-ui/packages/theme-chalk/src/common/var';
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--color-primary: #{$--color-primary};
|
|
5
|
-
--color-success: #{$--color-success};
|
|
6
|
-
--color-warning: #{$--color-warning};
|
|
7
|
-
--color-danger: #{$--color-danger};
|
|
8
|
-
--color-info: #{$--color-info};
|
|
9
|
-
|
|
10
|
-
$--el-x-color-primary: $--color-primary;
|
|
11
|
-
$--el-x-color-success: $--color-success;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
$--el-x-color-primary: $--color-primary;
|
|
15
|
-
$--el-x-color-success: $--color-success;
|
|
16
|
-
// 字体大小
|
|
17
|
-
$--el-x-font-size-small: $--font-size-small !default;
|
|
18
|
-
$--el-x-font-size-base: $--font-size-base !default;
|
|
19
|
-
$--el-x-font-size-medium: $--font-size-medium !default;
|
|
20
|
-
$--el-x-font-size-large: $--font-size-large !default;
|
|
21
|
-
$--el-x-font-size-extra-large: $--font-size-extra-large !default;
|
|
22
|
-
|
|
23
|
-
// 字体颜色
|
|
24
|
-
$--el-x-text-color-primary: $--color-text-primary !default;
|
|
25
|
-
$--el-x-text-color-regular: $--color-text-regular !default;
|
|
26
|
-
$--el-x-text-color-secondary: $--color-text-secondary !default;
|
|
27
|
-
$--el-x-text-color-placeholder: $--color-text-placeholder !default;
|
|
28
|
-
$--el-x-text-color-disabled: $--color-text-placeholder !default;
|
|
29
|
-
|
|
30
|
-
// 行高
|
|
31
|
-
$--el-x-font-line-height-primary: $--font-line-height-primary;
|
|
32
|
-
|
|
33
|
-
// 填充背景
|
|
34
|
-
$--el-x-fill-color: $--message-background-color;
|
|
35
|
-
|
|
36
|
-
// 边框
|
|
37
|
-
|
|
38
|
-
$--el-x-border-radius-base: $--border-radius-base;
|
|
39
|
-
$--el-x-border-radius-md: 8px;
|
|
40
|
-
$--el-x-border-radius-round: 20px;
|
|
41
|
-
$--el-x-border-radius-small: $--border-radius-small;
|
|
42
|
-
$--el-x-border-radius-circle: $--border-radius-circle;
|
|
43
|
-
|
|
44
|
-
//间距
|
|
45
|
-
|
|
46
|
-
$--el-x-spacing-xs: 4px !default;
|
|
47
|
-
$--el-x-spacing-sm: 8px !default;
|
|
48
|
-
$--el-x-spacing-md: 12px !default;
|
|
49
|
-
$--el-x-spacing-lg: 16px !default;
|
|
50
|
-
$--el-x-spacing-xl: 20px !default;
|
|
51
|
-
|
|
52
|
-
// 内边距
|
|
53
|
-
|
|
54
|
-
$--el-x-padding-xs: 4px !default;
|
|
55
|
-
$--el-x-padding-sm: 8px !default;
|
|
56
|
-
$--el-x-padding-md: 12px !default;
|
|
57
|
-
$--el-x-padding-lg: $--font-size-large !default;
|
|
58
|
-
$--el-x-padding-xl: $--font-size-extra-large !default;
|
|
59
|
-
|
|
60
|
-
// 边框颜色
|
|
61
|
-
$--el-x-border-color: $--border-color-base;
|
|
62
|
-
|
|
63
|
-
// 边框宽度
|
|
64
|
-
$--el-x-border-width: $--border-width-base;
|
|
65
|
-
|
|
66
|
-
// 阴影
|
|
67
|
-
$--el-x-box-shadow-base: $--box-shadow-base;
|
|
68
|
-
|
|
69
|
-
// 边框半径
|
|
70
|
-
$--el-x-border-radius-sm: 2px !default;
|
|
71
|
-
$--el-x-border-radius-md: $--border-radius-base !default;
|
|
72
|
-
$--el-x-border-radius-lg: 8px !default;
|
|
1
|
+
@import '~element-ui/packages/theme-chalk/src/common/var';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--color-primary: #{$--color-primary};
|
|
5
|
+
--color-success: #{$--color-success};
|
|
6
|
+
--color-warning: #{$--color-warning};
|
|
7
|
+
--color-danger: #{$--color-danger};
|
|
8
|
+
--color-info: #{$--color-info};
|
|
9
|
+
|
|
10
|
+
$--el-x-color-primary: $--color-primary;
|
|
11
|
+
$--el-x-color-success: $--color-success;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
$--el-x-color-primary: $--color-primary;
|
|
15
|
+
$--el-x-color-success: $--color-success;
|
|
16
|
+
// 字体大小
|
|
17
|
+
$--el-x-font-size-small: $--font-size-small !default;
|
|
18
|
+
$--el-x-font-size-base: $--font-size-base !default;
|
|
19
|
+
$--el-x-font-size-medium: $--font-size-medium !default;
|
|
20
|
+
$--el-x-font-size-large: $--font-size-large !default;
|
|
21
|
+
$--el-x-font-size-extra-large: $--font-size-extra-large !default;
|
|
22
|
+
|
|
23
|
+
// 字体颜色
|
|
24
|
+
$--el-x-text-color-primary: $--color-text-primary !default;
|
|
25
|
+
$--el-x-text-color-regular: $--color-text-regular !default;
|
|
26
|
+
$--el-x-text-color-secondary: $--color-text-secondary !default;
|
|
27
|
+
$--el-x-text-color-placeholder: $--color-text-placeholder !default;
|
|
28
|
+
$--el-x-text-color-disabled: $--color-text-placeholder !default;
|
|
29
|
+
|
|
30
|
+
// 行高
|
|
31
|
+
$--el-x-font-line-height-primary: $--font-line-height-primary;
|
|
32
|
+
|
|
33
|
+
// 填充背景
|
|
34
|
+
$--el-x-fill-color: $--message-background-color;
|
|
35
|
+
|
|
36
|
+
// 边框
|
|
37
|
+
|
|
38
|
+
$--el-x-border-radius-base: $--border-radius-base;
|
|
39
|
+
$--el-x-border-radius-md: 8px;
|
|
40
|
+
$--el-x-border-radius-round: 20px;
|
|
41
|
+
$--el-x-border-radius-small: $--border-radius-small;
|
|
42
|
+
$--el-x-border-radius-circle: $--border-radius-circle;
|
|
43
|
+
|
|
44
|
+
//间距
|
|
45
|
+
|
|
46
|
+
$--el-x-spacing-xs: 4px !default;
|
|
47
|
+
$--el-x-spacing-sm: 8px !default;
|
|
48
|
+
$--el-x-spacing-md: 12px !default;
|
|
49
|
+
$--el-x-spacing-lg: 16px !default;
|
|
50
|
+
$--el-x-spacing-xl: 20px !default;
|
|
51
|
+
|
|
52
|
+
// 内边距
|
|
53
|
+
|
|
54
|
+
$--el-x-padding-xs: 4px !default;
|
|
55
|
+
$--el-x-padding-sm: 8px !default;
|
|
56
|
+
$--el-x-padding-md: 12px !default;
|
|
57
|
+
$--el-x-padding-lg: $--font-size-large !default;
|
|
58
|
+
$--el-x-padding-xl: $--font-size-extra-large !default;
|
|
59
|
+
|
|
60
|
+
// 边框颜色
|
|
61
|
+
$--el-x-border-color: $--border-color-base;
|
|
62
|
+
|
|
63
|
+
// 边框宽度
|
|
64
|
+
$--el-x-border-width: $--border-width-base;
|
|
65
|
+
|
|
66
|
+
// 阴影
|
|
67
|
+
$--el-x-box-shadow-base: $--box-shadow-base;
|
|
68
|
+
|
|
69
|
+
// 边框半径
|
|
70
|
+
$--el-x-border-radius-sm: 2px !default;
|
|
71
|
+
$--el-x-border-radius-md: $--border-radius-base !default;
|
|
72
|
+
$--el-x-border-radius-lg: 8px !default;
|