vue-element-ui-x 0.2.2 → 1.0.2
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 +18 -18
- package/lib/components/Bubble/index.js +145 -155
- package/lib/components/BubbleList/index.js +180 -207
- package/lib/components/Conversations/index.js +14370 -14370
- package/lib/components/FilesCard/index.js +5 -5
- package/lib/components/Prompts/index.js +25 -25
- package/lib/components/Sender/index.js +1606 -1459
- package/lib/components/Thinking/index.js +157 -23
- package/lib/components/ThoughtChain/index.js +143 -144
- package/lib/components/Typewriter/index.js +124 -125
- package/lib/components/Welcome/index.js +5 -5
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +817 -389
- package/lib/index.umd.js +1 -1
- package/lib/locale/index.js +97 -0
- package/lib/locale/lang/ar-SA.js +18 -0
- package/lib/locale/lang/ar-SA.umd.js +26 -0
- package/lib/locale/lang/ar.js +18 -0
- package/lib/locale/lang/ar.umd.js +26 -0
- package/lib/locale/lang/de-DE.js +18 -0
- package/lib/locale/lang/de-DE.umd.js +26 -0
- package/lib/locale/lang/de.js +18 -0
- package/lib/locale/lang/de.umd.js +26 -0
- package/lib/locale/lang/en.js +18 -0
- package/lib/locale/lang/en.umd.js +26 -0
- package/lib/locale/lang/es-ES.js +18 -0
- package/lib/locale/lang/es-ES.umd.js +26 -0
- package/lib/locale/lang/es.js +18 -0
- package/lib/locale/lang/es.umd.js +26 -0
- package/lib/locale/lang/fr-FR.js +18 -0
- package/lib/locale/lang/fr-FR.umd.js +26 -0
- package/lib/locale/lang/fr.js +18 -0
- package/lib/locale/lang/fr.umd.js +26 -0
- package/lib/locale/lang/index.js +50 -0
- package/lib/locale/lang/it-IT.js +18 -0
- package/lib/locale/lang/it-IT.umd.js +26 -0
- package/lib/locale/lang/it.js +18 -0
- package/lib/locale/lang/it.umd.js +26 -0
- package/lib/locale/lang/ja-JP.js +18 -0
- package/lib/locale/lang/ja-JP.umd.js +26 -0
- package/lib/locale/lang/ja.js +18 -0
- package/lib/locale/lang/ja.umd.js +26 -0
- package/lib/locale/lang/ko-KR.js +18 -0
- package/lib/locale/lang/ko-KR.umd.js +26 -0
- package/lib/locale/lang/ko.js +18 -0
- package/lib/locale/lang/ko.umd.js +26 -0
- package/lib/locale/lang/pt-BR.js +18 -0
- package/lib/locale/lang/pt-BR.umd.js +26 -0
- package/lib/locale/lang/ru-RU.js +18 -0
- package/lib/locale/lang/ru-RU.umd.js +26 -0
- package/lib/locale/lang/zh-CN.js +18 -0
- package/lib/locale/lang/zh-CN.umd.js +26 -0
- package/lib/locale/lang/zh-TW.js +18 -0
- package/lib/locale/lang/zh-TW.umd.js +26 -0
- package/lib/locale/mixin.js +9 -0
- package/package.json +15 -10
- package/src/components/Attachments/src/main.vue +2 -10
- package/src/components/Bubble/src/main.vue +288 -299
- package/src/components/BubbleList/src/main.vue +2 -19
- package/src/components/Conversations/src/main.vue +0 -41
- package/src/components/Prompts/src/main.vue +248 -248
- package/src/components/Sender/src/components/LoadingButton.vue +37 -39
- package/src/components/Sender/src/components/SpeechLoadingButton.vue +41 -43
- package/src/components/Sender/src/main.vue +13 -3
- package/src/components/Thinking/src/main.vue +13 -9
- package/src/components/ThoughtChain/src/main.vue +1 -3
- package/src/components/Typewriter/src/main.vue +3 -7
- package/src/components/Welcome/src/main.vue +151 -151
- package/src/index.js +23 -6
- package/src/locale/index.js +97 -0
- package/src/locale/lang/ar.js +18 -0
- package/src/locale/lang/de.js +18 -0
- package/src/locale/lang/en.js +18 -0
- package/src/locale/lang/es.js +18 -0
- package/src/locale/lang/fr.js +18 -0
- package/src/locale/lang/index.js +62 -0
- package/src/locale/lang/it.js +18 -0
- package/src/locale/lang/ja.js +18 -0
- package/src/locale/lang/ko.js +18 -0
- package/src/locale/lang/pt-br.js +18 -0
- package/src/locale/lang/ru-RU.js +18 -0
- package/src/locale/lang/zh-CN.js +18 -0
- package/src/locale/lang/zh-TW.js +18 -0
- package/src/locale/mixin.js +9 -0
- package/src/styles/Attachments.scss +236 -236
- package/src/styles/Bubble.scss +5 -4
- package/src/styles/BubbleList.scss +148 -148
- package/src/styles/Conversations.scss +260 -260
- package/src/styles/FilesCard.scss +222 -221
- package/src/styles/Prompts.scss +197 -195
- package/src/styles/Sender.scss +207 -199
- package/src/styles/Thinking.scss +36 -6
- package/src/styles/ThoughtChain.scss +113 -113
- package/src/styles/Typewriter.scss +66 -66
- package/src/styles/var.scss +4 -5
- package/src/theme/var.scss +183 -72
|
@@ -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/styles/var.scss
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* Element
|
|
2
|
-
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// skipAutoTranslation 1
|
|
1
|
+
/* Element UI X Variables */
|
|
2
|
+
// Element UI X 变量代理系统
|
|
3
|
+
// 替代 element-ui/packages/theme-chalk/src/common/var 的完整变量定义
|
|
4
|
+
// 不依赖外部 Element UI 主题文件
|
|
6
5
|
|
|
7
6
|
/* Transition
|
|
8
7
|
-------------------------- */
|
package/src/theme/var.scss
CHANGED
|
@@ -1,72 +1,183 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
$--
|
|
15
|
-
$--
|
|
16
|
-
|
|
17
|
-
$--
|
|
18
|
-
$--
|
|
19
|
-
$--
|
|
20
|
-
$--
|
|
21
|
-
$--
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$--
|
|
25
|
-
$--
|
|
26
|
-
|
|
27
|
-
$--
|
|
28
|
-
$--
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
$--
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
$--
|
|
39
|
-
$--
|
|
40
|
-
$--
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
$--
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
$--
|
|
50
|
-
$--
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
$--
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$--
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
$--
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
$--
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
$--
|
|
71
|
-
|
|
72
|
-
|
|
1
|
+
// Element UI X 变量代理系统
|
|
2
|
+
// 替代 element-ui/packages/theme-chalk/src/common/var 的完整变量定义
|
|
3
|
+
|
|
4
|
+
// ===== 过渡动画 =====
|
|
5
|
+
$--all-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1) !default;
|
|
6
|
+
$--fade-transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) !default;
|
|
7
|
+
$--fade-linear-transition: opacity 200ms linear !default;
|
|
8
|
+
$--md-fade-transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
9
|
+
opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) !default;
|
|
10
|
+
$--border-transition-base: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !default;
|
|
11
|
+
$--color-transition-base: color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !default;
|
|
12
|
+
|
|
13
|
+
// ===== 基础颜色 =====
|
|
14
|
+
$--color-primary: #409eff !default;
|
|
15
|
+
$--color-white: #ffffff !default;
|
|
16
|
+
$--color-black: #000000 !default;
|
|
17
|
+
$--color-primary-light-1: #53a8ff !default;
|
|
18
|
+
$--color-primary-light-2: #66b1ff !default;
|
|
19
|
+
$--color-primary-light-3: #79bbff !default;
|
|
20
|
+
$--color-primary-light-4: #8cc5ff !default;
|
|
21
|
+
$--color-primary-light-5: #a0cfff !default;
|
|
22
|
+
$--color-primary-light-6: #b3d8ff !default;
|
|
23
|
+
$--color-primary-light-7: #c6e2ff !default;
|
|
24
|
+
$--color-primary-light-8: #d9ecff !default;
|
|
25
|
+
$--color-primary-light-9: #ecf5ff !default;
|
|
26
|
+
|
|
27
|
+
$--color-success: #67c23a !default;
|
|
28
|
+
$--color-warning: #e6a23c !default;
|
|
29
|
+
$--color-danger: #f56c6c !default;
|
|
30
|
+
$--color-info: #909399 !default;
|
|
31
|
+
|
|
32
|
+
$--color-success-light: #b3e19d !default;
|
|
33
|
+
$--color-warning-light: #f3d19e !default;
|
|
34
|
+
$--color-danger-light: #fbc4c4 !default;
|
|
35
|
+
$--color-info-light: #c8c9cc !default;
|
|
36
|
+
|
|
37
|
+
$--color-success-lighter: #d9f2be !default;
|
|
38
|
+
$--color-warning-lighter: #f9e8cf !default;
|
|
39
|
+
$--color-danger-lighter: #fde2e2 !default;
|
|
40
|
+
$--color-info-lighter: #e4e5e6 !default;
|
|
41
|
+
|
|
42
|
+
// ===== 文字颜色 =====
|
|
43
|
+
$--color-text-primary: #303133 !default;
|
|
44
|
+
$--color-text-regular: #606266 !default;
|
|
45
|
+
$--color-text-secondary: #909399 !default;
|
|
46
|
+
$--color-text-placeholder: #c0c4cc !default;
|
|
47
|
+
|
|
48
|
+
// ===== 边框颜色 =====
|
|
49
|
+
$--border-color-base: #dcdfe6 !default;
|
|
50
|
+
$--border-color-light: #e4e7ed !default;
|
|
51
|
+
$--border-color-lighter: #ebeef5 !default;
|
|
52
|
+
$--border-color-extra-light: #f2f6fc !default;
|
|
53
|
+
|
|
54
|
+
// ===== 背景颜色 =====
|
|
55
|
+
$--background-color-base: #f5f7fa !default;
|
|
56
|
+
|
|
57
|
+
// ===== 链接颜色 =====
|
|
58
|
+
$--link-color: $--color-primary-light-2 !default;
|
|
59
|
+
$--link-hover-color: $--color-primary !default;
|
|
60
|
+
|
|
61
|
+
// ===== 边框样式 =====
|
|
62
|
+
$--border-width-base: 1px !default;
|
|
63
|
+
$--border-style-base: solid !default;
|
|
64
|
+
$--border-color-hover: $--color-text-placeholder !default;
|
|
65
|
+
$--border-base: $--border-width-base $--border-style-base $--border-color-base !default;
|
|
66
|
+
|
|
67
|
+
$--border-radius-base: 4px !default;
|
|
68
|
+
$--border-radius-small: 2px !default;
|
|
69
|
+
$--border-radius-circle: 100% !default;
|
|
70
|
+
$--border-radius-zero: 0 !default;
|
|
71
|
+
|
|
72
|
+
// ===== 阴影 =====
|
|
73
|
+
$--box-shadow-base: 0 2px 4px rgba(0, 0, 0, 0.12),
|
|
74
|
+
0 0 6px rgba(0, 0, 0, 0.04) !default;
|
|
75
|
+
$--box-shadow-dark: 0 2px 4px rgba(0, 0, 0, 0.12),
|
|
76
|
+
0 0 6px rgba(0, 0, 0, 0.12) !default;
|
|
77
|
+
$--box-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !default;
|
|
78
|
+
|
|
79
|
+
// ===== 填充 =====
|
|
80
|
+
$--fill-base: $--color-white !default;
|
|
81
|
+
|
|
82
|
+
// ===== 字体 =====
|
|
83
|
+
$--font-path: 'fonts' !default;
|
|
84
|
+
$--font-display: 'auto' !default;
|
|
85
|
+
$--font-size-extra-large: 20px !default;
|
|
86
|
+
$--font-size-large: 18px !default;
|
|
87
|
+
$--font-size-medium: 16px !default;
|
|
88
|
+
$--font-size-base: 14px !default;
|
|
89
|
+
$--font-size-small: 13px !default;
|
|
90
|
+
$--font-size-extra-small: 12px !default;
|
|
91
|
+
$--font-weight-primary: 500 !default;
|
|
92
|
+
$--font-weight-secondary: 100 !default;
|
|
93
|
+
$--font-line-height-primary: 24px !default;
|
|
94
|
+
$--font-line-height-secondary: 16px !default;
|
|
95
|
+
$--font-color-disabled-base: #bbb !default;
|
|
96
|
+
|
|
97
|
+
// ===== 尺寸 =====
|
|
98
|
+
$--size-base: 14px !default;
|
|
99
|
+
|
|
100
|
+
// ===== 层级 =====
|
|
101
|
+
$--index-normal: 1 !default;
|
|
102
|
+
$--index-top: 1000 !default;
|
|
103
|
+
$--index-popper: 2000 !default;
|
|
104
|
+
|
|
105
|
+
// ===== 禁用状态 =====
|
|
106
|
+
$--disabled-fill-base: $--background-color-base !default;
|
|
107
|
+
$--disabled-color-base: $--color-text-placeholder !default;
|
|
108
|
+
$--disabled-border-base: $--border-color-light !default;
|
|
109
|
+
|
|
110
|
+
// ===== 图标 =====
|
|
111
|
+
$--icon-color: #666 !default;
|
|
112
|
+
$--icon-color-base: $--color-info !default;
|
|
113
|
+
|
|
114
|
+
// ===== 消息背景色 =====
|
|
115
|
+
$--message-background-color: #edf2fc !default;
|
|
116
|
+
|
|
117
|
+
// ===== CSS 变量定义 =====
|
|
118
|
+
:root {
|
|
119
|
+
--color-primary: #{$--color-primary};
|
|
120
|
+
--color-success: #{$--color-success};
|
|
121
|
+
--color-warning: #{$--color-warning};
|
|
122
|
+
--color-danger: #{$--color-danger};
|
|
123
|
+
--color-info: #{$--color-info};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// ===== Element UI X 扩展变量 =====
|
|
127
|
+
$--el-x-color-primary: $--color-primary;
|
|
128
|
+
$--el-x-color-success: $--color-success;
|
|
129
|
+
|
|
130
|
+
// 字体大小
|
|
131
|
+
$--el-x-font-size-small: $--font-size-small !default;
|
|
132
|
+
$--el-x-font-size-base: $--font-size-base !default;
|
|
133
|
+
$--el-x-font-size-medium: $--font-size-medium !default;
|
|
134
|
+
$--el-x-font-size-large: $--font-size-large !default;
|
|
135
|
+
$--el-x-font-size-extra-large: $--font-size-extra-large !default;
|
|
136
|
+
|
|
137
|
+
// 字体颜色
|
|
138
|
+
$--el-x-text-color-primary: $--color-text-primary !default;
|
|
139
|
+
$--el-x-text-color-regular: $--color-text-regular !default;
|
|
140
|
+
$--el-x-text-color-secondary: $--color-text-secondary !default;
|
|
141
|
+
$--el-x-text-color-placeholder: $--color-text-placeholder !default;
|
|
142
|
+
$--el-x-text-color-disabled: $--color-text-placeholder !default;
|
|
143
|
+
|
|
144
|
+
// 行高
|
|
145
|
+
$--el-x-font-line-height-primary: $--font-line-height-primary;
|
|
146
|
+
|
|
147
|
+
// 填充背景
|
|
148
|
+
$--el-x-fill-color: $--message-background-color;
|
|
149
|
+
|
|
150
|
+
// 边框
|
|
151
|
+
$--el-x-border-radius-base: $--border-radius-base;
|
|
152
|
+
$--el-x-border-radius-md: 8px;
|
|
153
|
+
$--el-x-border-radius-round: 20px;
|
|
154
|
+
$--el-x-border-radius-small: $--border-radius-small;
|
|
155
|
+
$--el-x-border-radius-circle: $--border-radius-circle;
|
|
156
|
+
|
|
157
|
+
// 间距
|
|
158
|
+
$--el-x-spacing-xs: 4px !default;
|
|
159
|
+
$--el-x-spacing-sm: 8px !default;
|
|
160
|
+
$--el-x-spacing-md: 12px !default;
|
|
161
|
+
$--el-x-spacing-lg: 16px !default;
|
|
162
|
+
$--el-x-spacing-xl: 20px !default;
|
|
163
|
+
|
|
164
|
+
// 内边距
|
|
165
|
+
$--el-x-padding-xs: 4px !default;
|
|
166
|
+
$--el-x-padding-sm: 8px !default;
|
|
167
|
+
$--el-x-padding-md: 12px !default;
|
|
168
|
+
$--el-x-padding-lg: $--font-size-large !default;
|
|
169
|
+
$--el-x-padding-xl: $--font-size-extra-large !default;
|
|
170
|
+
|
|
171
|
+
// 边框颜色
|
|
172
|
+
$--el-x-border-color: $--border-color-base;
|
|
173
|
+
|
|
174
|
+
// 边框宽度
|
|
175
|
+
$--el-x-border-width: $--border-width-base;
|
|
176
|
+
|
|
177
|
+
// 阴影
|
|
178
|
+
$--el-x-box-shadow-base: $--box-shadow-base;
|
|
179
|
+
|
|
180
|
+
// 边框半径
|
|
181
|
+
$--el-x-border-radius-sm: 2px !default;
|
|
182
|
+
$--el-x-border-radius-md: $--border-radius-base !default;
|
|
183
|
+
$--el-x-border-radius-lg: 8px !default;
|