vue-element-ui-x 0.1.6-beta → 0.1.8-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.
Files changed (92) hide show
  1. package/lib/attachments.js +3082 -0
  2. package/lib/bubble-list.js +13840 -0
  3. package/lib/bubble.js +13125 -0
  4. package/lib/components/Attachments/index.js +2 -2
  5. package/lib/components/Bubble/index.js +74 -79
  6. package/lib/components/BubbleList/index.js +75 -80
  7. package/lib/components/Conversations/index.js +6 -6
  8. package/lib/components/FilesCard/index.js +1 -1
  9. package/lib/components/Prompts/index.js +21 -21
  10. package/lib/components/Sender/index.js +4 -4
  11. package/lib/components/Think/index.js +1 -1
  12. package/lib/components/Thinking/index.js +11 -11
  13. package/lib/components/ThoughtChain/index.js +77 -82
  14. package/lib/components/Typewriter/index.js +73 -78
  15. package/lib/components/Welcome/index.js +1 -1
  16. package/lib/conversations.js +18825 -0
  17. package/lib/files-card.js +2471 -0
  18. package/lib/index.common.js +1 -1
  19. package/lib/index.esm.js +1 -1
  20. package/lib/index.js +1463 -1457
  21. package/lib/index.umd.js +1 -1
  22. package/lib/mixins/index.js +2 -2
  23. package/lib/mixins.js +1016 -0
  24. package/lib/prompts.js +832 -0
  25. package/lib/sender.js +1911 -0
  26. package/lib/think.js +799 -0
  27. package/lib/thinking.js +809 -0
  28. package/lib/thought-chain.js +30391 -0
  29. package/lib/typewriter.js +12788 -0
  30. package/lib/welcome.js +755 -0
  31. package/package.json +1 -2
  32. package/src/components/Attachments/index.js +8 -8
  33. package/src/components/Bubble/index.js +6 -6
  34. package/src/components/Bubble/src/main.vue +299 -299
  35. package/src/components/BubbleList/index.js +8 -8
  36. package/src/components/BubbleList/src/loading.vue +75 -75
  37. package/src/components/BubbleList/src/main.vue +466 -466
  38. package/src/components/Conversations/index.js +8 -8
  39. package/src/components/Conversations/src/main.vue +635 -635
  40. package/src/components/FilesCard/index.js +8 -8
  41. package/src/components/FilesCard/src/fileSvg/audio.vue +38 -38
  42. package/src/components/FilesCard/src/fileSvg/code.vue +35 -35
  43. package/src/components/FilesCard/src/fileSvg/database.vue +94 -94
  44. package/src/components/FilesCard/src/fileSvg/excel.vue +38 -38
  45. package/src/components/FilesCard/src/fileSvg/file.vue +40 -40
  46. package/src/components/FilesCard/src/fileSvg/image.vue +40 -40
  47. package/src/components/FilesCard/src/fileSvg/index.js +46 -46
  48. package/src/components/FilesCard/src/fileSvg/link.vue +54 -54
  49. package/src/components/FilesCard/src/fileSvg/mark.vue +38 -38
  50. package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -38
  51. package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -38
  52. package/src/components/FilesCard/src/fileSvg/three.vue +38 -38
  53. package/src/components/FilesCard/src/fileSvg/txt.vue +38 -38
  54. package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -54
  55. package/src/components/FilesCard/src/fileSvg/video.vue +38 -38
  56. package/src/components/FilesCard/src/fileSvg/word.vue +38 -38
  57. package/src/components/FilesCard/src/fileSvg/zip.vue +38 -38
  58. package/src/components/FilesCard/src/options.js +18 -18
  59. package/src/components/Prompts/index.js +8 -8
  60. package/src/components/Prompts/src/main.vue +248 -248
  61. package/src/components/Sender/index.js +8 -8
  62. package/src/components/Sender/src/components/ClearButton.vue +28 -28
  63. package/src/components/Sender/src/components/Loading.vue +53 -53
  64. package/src/components/Sender/src/components/LoadingButton.vue +39 -39
  65. package/src/components/Sender/src/components/SendButton.vue +26 -26
  66. package/src/components/Sender/src/components/SpeechButton.vue +24 -24
  67. package/src/components/Sender/src/components/SpeechLoading.vue +87 -87
  68. package/src/components/Sender/src/components/SpeechLoadingButton.vue +43 -43
  69. package/src/components/Think/index.js +8 -8
  70. package/src/components/Think/src/main.vue +190 -190
  71. package/src/components/Thinking/index.js +8 -8
  72. package/src/components/Thinking/src/main.vue +1 -1
  73. package/src/components/ThoughtChain/index.js +8 -8
  74. package/src/components/ThoughtChain/src/main.vue +293 -293
  75. package/src/components/Typewriter/index.js +8 -8
  76. package/src/components/Welcome/index.js +8 -8
  77. package/src/components/Welcome/src/main.vue +151 -151
  78. package/src/index.js +23 -3
  79. package/src/styles/Attachments.scss +236 -236
  80. package/src/styles/Bubble.scss +157 -157
  81. package/src/styles/BubbleList.scss +148 -148
  82. package/src/styles/Conversations.scss +260 -260
  83. package/src/styles/FilesCard.scss +221 -221
  84. package/src/styles/Prompts.scss +195 -195
  85. package/src/styles/Sender.scss +199 -199
  86. package/src/styles/Think.scss +134 -134
  87. package/src/styles/Thinking.scss +2 -2
  88. package/src/styles/ThoughtChain.scss +113 -113
  89. package/src/styles/Typewriter.scss +66 -66
  90. package/src/styles/button.scss +302 -0
  91. package/src/styles/var.scss +1052 -0
  92. package/src/theme/var.scss +72 -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
+ }
@@ -0,0 +1,302 @@
1
+ @charset "UTF-8";
2
+ @import 'common/var';
3
+ @import 'mixins/button';
4
+ @import 'mixins/mixins';
5
+ @import 'mixins/utils';
6
+
7
+ @include b(button) {
8
+ display: inline-block;
9
+ line-height: 1;
10
+ white-space: nowrap;
11
+ cursor: pointer;
12
+ background: $--button-default-background-color;
13
+ border: $--border-base;
14
+ border-color: $--button-default-border-color;
15
+ color: $--button-default-font-color;
16
+ -webkit-appearance: none;
17
+ text-align: center;
18
+ box-sizing: border-box;
19
+ outline: none;
20
+ margin: 0;
21
+ transition: 0.1s;
22
+ font-weight: $--button-font-weight;
23
+ @include utils-user-select(none);
24
+ & + & {
25
+ margin-left: 10px;
26
+ }
27
+
28
+ @include button-size(
29
+ $--button-padding-vertical,
30
+ $--button-padding-horizontal,
31
+ $--button-font-size,
32
+ $--button-border-radius
33
+ );
34
+
35
+ &:hover,
36
+ &:focus {
37
+ color: $--color-primary;
38
+ border-color: $--color-primary-light-7;
39
+ background-color: $--color-primary-light-9;
40
+ }
41
+
42
+ &:active {
43
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
44
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
45
+ outline: none;
46
+ }
47
+
48
+ &::-moz-focus-inner {
49
+ border: 0;
50
+ }
51
+
52
+ & [class*='el-icon-'] {
53
+ & + span {
54
+ margin-left: 5px;
55
+ }
56
+ }
57
+
58
+ @include when(plain) {
59
+ &:hover,
60
+ &:focus {
61
+ background: $--color-white;
62
+ border-color: $--color-primary;
63
+ color: $--color-primary;
64
+ }
65
+
66
+ &:active {
67
+ background: $--color-white;
68
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
69
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
70
+ outline: none;
71
+ }
72
+ }
73
+
74
+ @include when(active) {
75
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
76
+ border-color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
77
+ }
78
+
79
+ @include when(disabled) {
80
+ &,
81
+ &:hover,
82
+ &:focus {
83
+ color: $--button-disabled-font-color;
84
+ cursor: not-allowed;
85
+ background-image: none;
86
+ background-color: $--button-disabled-background-color;
87
+ border-color: $--button-disabled-border-color;
88
+ }
89
+
90
+ &.el-button--text {
91
+ background-color: transparent;
92
+ }
93
+
94
+ &.is-plain {
95
+ &,
96
+ &:hover,
97
+ &:focus {
98
+ background-color: $--color-white;
99
+ border-color: $--button-disabled-border-color;
100
+ color: $--button-disabled-font-color;
101
+ }
102
+ }
103
+ }
104
+
105
+ @include when(loading) {
106
+ position: relative;
107
+ pointer-events: none;
108
+
109
+ &:before {
110
+ pointer-events: none;
111
+ content: '';
112
+ position: absolute;
113
+ left: -1px;
114
+ top: -1px;
115
+ right: -1px;
116
+ bottom: -1px;
117
+ border-radius: inherit;
118
+ background-color: rgba(255, 255, 255, 0.35);
119
+ }
120
+ }
121
+ @include when(round) {
122
+ border-radius: 20px;
123
+ padding: 12px 23px;
124
+ }
125
+ @include when(circle) {
126
+ border-radius: 50%;
127
+ padding: $--button-padding-vertical;
128
+ }
129
+ @include m(primary) {
130
+ @include button-variant(
131
+ $--button-primary-font-color,
132
+ $--button-primary-background-color,
133
+ $--button-primary-border-color
134
+ );
135
+ }
136
+ @include m(success) {
137
+ @include button-variant(
138
+ $--button-success-font-color,
139
+ $--button-success-background-color,
140
+ $--button-success-border-color
141
+ );
142
+ }
143
+ @include m(warning) {
144
+ @include button-variant(
145
+ $--button-warning-font-color,
146
+ $--button-warning-background-color,
147
+ $--button-warning-border-color
148
+ );
149
+ }
150
+ @include m(danger) {
151
+ @include button-variant(
152
+ $--button-danger-font-color,
153
+ $--button-danger-background-color,
154
+ $--button-danger-border-color
155
+ );
156
+ }
157
+ @include m(info) {
158
+ @include button-variant(
159
+ $--button-info-font-color,
160
+ $--button-info-background-color,
161
+ $--button-info-border-color
162
+ );
163
+ }
164
+ @include m(medium) {
165
+ @include button-size(
166
+ $--button-medium-padding-vertical,
167
+ $--button-medium-padding-horizontal,
168
+ $--button-medium-font-size,
169
+ $--button-medium-border-radius
170
+ );
171
+ @include when(circle) {
172
+ padding: $--button-medium-padding-vertical;
173
+ }
174
+ }
175
+ @include m(small) {
176
+ @include button-size(
177
+ $--button-small-padding-vertical,
178
+ $--button-small-padding-horizontal,
179
+ $--button-small-font-size,
180
+ $--button-small-border-radius
181
+ );
182
+ @include when(circle) {
183
+ padding: $--button-small-padding-vertical;
184
+ }
185
+ }
186
+ @include m(mini) {
187
+ @include button-size(
188
+ $--button-mini-padding-vertical,
189
+ $--button-mini-padding-horizontal,
190
+ $--button-mini-font-size,
191
+ $--button-mini-border-radius
192
+ );
193
+ @include when(circle) {
194
+ padding: $--button-mini-padding-vertical;
195
+ }
196
+ }
197
+ @include m(text) {
198
+ border-color: transparent;
199
+ color: $--color-primary;
200
+ background: transparent;
201
+ padding-left: 0;
202
+ padding-right: 0;
203
+
204
+ &:hover,
205
+ &:focus {
206
+ color: mix($--color-white, $--color-primary, $--button-hover-tint-percent);
207
+ border-color: transparent;
208
+ background-color: transparent;
209
+ }
210
+ &:active {
211
+ color: mix($--color-black, $--color-primary, $--button-active-shade-percent);
212
+ border-color: transparent;
213
+ background-color: transparent;
214
+ }
215
+
216
+ &.is-disabled,
217
+ &.is-disabled:hover,
218
+ &.is-disabled:focus {
219
+ border-color: transparent;
220
+ }
221
+ }
222
+ }
223
+
224
+ @include b(button-group) {
225
+ @include utils-clearfix;
226
+ display: inline-block;
227
+ vertical-align: middle;
228
+
229
+ & > .el-button {
230
+ float: left;
231
+ position: relative;
232
+ & + .el-button {
233
+ margin-left: 0;
234
+ }
235
+ &.is-disabled {
236
+ z-index: 1;
237
+ }
238
+ &:first-child {
239
+ border-top-right-radius: 0;
240
+ border-bottom-right-radius: 0;
241
+ }
242
+ &:last-child {
243
+ border-top-left-radius: 0;
244
+ border-bottom-left-radius: 0;
245
+ }
246
+ &:first-child:last-child {
247
+ border-top-right-radius: $--button-border-radius;
248
+ border-bottom-right-radius: $--button-border-radius;
249
+ border-top-left-radius: $--button-border-radius;
250
+ border-bottom-left-radius: $--button-border-radius;
251
+
252
+ &.is-round {
253
+ border-radius: 20px;
254
+ }
255
+
256
+ &.is-circle {
257
+ border-radius: 50%;
258
+ }
259
+ }
260
+ &:not(:first-child):not(:last-child) {
261
+ border-radius: 0;
262
+ }
263
+ &:not(:last-child) {
264
+ margin-right: -1px;
265
+ }
266
+
267
+ &:not(.is-disabled) {
268
+ &:hover,
269
+ &:focus,
270
+ &:active {
271
+ z-index: 1;
272
+ }
273
+ }
274
+
275
+ @include when(active) {
276
+ z-index: 1;
277
+ }
278
+ }
279
+
280
+ & > .el-dropdown {
281
+ & > .el-button {
282
+ border-top-left-radius: 0;
283
+ border-bottom-left-radius: 0;
284
+ border-left-color: rgba($--color-white, 0.5);
285
+ }
286
+ }
287
+
288
+ @each $type in (primary, success, warning, danger, info) {
289
+ .el-button--#{$type} {
290
+ &:first-child {
291
+ border-right-color: rgba($--color-white, 0.5);
292
+ }
293
+ &:last-child {
294
+ border-left-color: rgba($--color-white, 0.5);
295
+ }
296
+ &:not(:first-child):not(:last-child) {
297
+ border-left-color: rgba($--color-white, 0.5);
298
+ border-right-color: rgba($--color-white, 0.5);
299
+ }
300
+ }
301
+ }
302
+ }