vue-element-ui-x 0.2.1 → 1.0.1
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/README.md +8 -8
- package/lib/components/Attachments/index.js +8 -8
- package/lib/components/Bubble/index.js +116 -113
- package/lib/components/BubbleList/index.js +137 -134
- package/lib/components/Conversations/index.js +14368 -14360
- package/lib/components/FilesCard/index.js +4 -4
- package/lib/components/Prompts/index.js +4 -4
- package/lib/components/Sender/index.js +1594 -1448
- package/lib/components/Thinking/index.js +155 -15
- package/lib/components/ThoughtChain/index.js +121 -118
- package/lib/components/Typewriter/index.js +111 -108
- package/lib/components/Welcome/index.js +4 -4
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +704 -236
- 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 +6 -4
- package/src/components/Bubble/src/main.vue +299 -299
- package/src/components/Conversations/src/main.vue +9 -3
- package/src/components/Sender/src/main.vue +12 -3
- package/src/components/Thinking/src/main.vue +10 -5
- package/src/index.js +25 -10
- 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/Bubble.scss +157 -157
- package/src/styles/Conversations.scss +260 -260
- package/src/styles/Sender.scss +196 -199
package/src/styles/Bubble.scss
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
@import '../theme/var.scss';
|
|
2
|
-
|
|
3
|
-
.el-x-bubble {
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: var(--el-x-bubble-avatar-placeholder-gap);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.el-x-bubble-avatar-size {
|
|
9
|
-
::v-deep .el-avatar {
|
|
10
|
-
width: var(--el-x-bubble-avatar-placeholder-width);
|
|
11
|
-
height: var(--el-x-bubble-avatar-placeholder-height);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.el-x-bubble-avatar-placeholder {
|
|
16
|
-
width: var(--el-x-bubble-avatar-placeholder-width);
|
|
17
|
-
height: var(--el-x-bubble-avatar-placeholder-height);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.el-x-bubble-start {
|
|
21
|
-
.el-x-bubble-content-wrapper {
|
|
22
|
-
.el-x-bubble-content-corner {
|
|
23
|
-
border-start-start-radius: $--el-x-border-radius-base - 2px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.el-x-bubble-end {
|
|
29
|
-
justify-content: end;
|
|
30
|
-
flex-direction: row-reverse;
|
|
31
|
-
|
|
32
|
-
.el-x-bubble-content-wrapper {
|
|
33
|
-
align-items: flex-end;
|
|
34
|
-
|
|
35
|
-
.el-x-bubble-content-corner {
|
|
36
|
-
border-start-end-radius: $--el-x-border-radius-base - 2px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.el-x-bubble-no-style {
|
|
42
|
-
.el-x-bubble-content-wrapper {
|
|
43
|
-
.el-x-bubble-content {
|
|
44
|
-
background-color: transparent;
|
|
45
|
-
padding: 0;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.el-x-bubble-content-wrapper {
|
|
51
|
-
flex: auto;
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
align-items: flex-start;
|
|
55
|
-
min-width: 0;
|
|
56
|
-
max-width: 100%;
|
|
57
|
-
|
|
58
|
-
.el-x-bubble-header,
|
|
59
|
-
.el-x-bubble-content,
|
|
60
|
-
.el-x-bubble-footer {
|
|
61
|
-
font-size: $--el-x-font-size-base;
|
|
62
|
-
color: $--el-x-text-color-primary;
|
|
63
|
-
line-height: $--el-x-font-line-height-primary;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// .el-x-bubble-header {
|
|
67
|
-
// margin-bottom: var();
|
|
68
|
-
// }
|
|
69
|
-
|
|
70
|
-
.el-x-bubble-content {
|
|
71
|
-
background-color: $--el-x-fill-color;
|
|
72
|
-
padding: $--el-x-padding-md $--el-x-padding-lg;
|
|
73
|
-
border-radius: $--el-x-border-radius-base + 4px;
|
|
74
|
-
position: relative;
|
|
75
|
-
box-sizing: border-box;
|
|
76
|
-
min-width: 0;
|
|
77
|
-
max-width: var(--bubble-content-max-width);
|
|
78
|
-
color: $--el-x-text-color-primary;
|
|
79
|
-
font-size: $--el-x-font-size-base;
|
|
80
|
-
line-height: $--el-x-font-line-height-primary;
|
|
81
|
-
// min-height: calc(#{$--el-x-padding-md} * 2 + #{$--el-x-font-line-height-primary} * #{$--el-x-font-size-base} );
|
|
82
|
-
word-break: break-word;
|
|
83
|
-
|
|
84
|
-
// 打字器没有内容时候展示高度
|
|
85
|
-
.no-content {
|
|
86
|
-
// height: 16px;
|
|
87
|
-
height: 0;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// 气泡圆角
|
|
92
|
-
.el-x-bubble-content-round {
|
|
93
|
-
border-radius: $--el-x-border-radius-round;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// 气泡样式
|
|
97
|
-
.el-x-bubble-content-filled {
|
|
98
|
-
background-color: $--el-x-fill-color;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.el-x-bubble-content-borderless {
|
|
102
|
-
background-color: $--el-x-fill-color;
|
|
103
|
-
border: $--el-x-border-width solid $--el-x-border-color;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.el-x-bubble-content-outlined {
|
|
107
|
-
background: none;
|
|
108
|
-
border: $--el-x-border-width solid $--el-x-border-color;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.el-x-bubble-content-shadow {
|
|
112
|
-
background: none;
|
|
113
|
-
// box-shadow: var(--el-box-shadow-tertiary);
|
|
114
|
-
box-shadow: $--el-x-box-shadow-base;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.el-x-bubble-content-loading {
|
|
118
|
-
width: fit-content;
|
|
119
|
-
|
|
120
|
-
.el-x-bubble-loading-wrap {
|
|
121
|
-
display: flex;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
align-items: center;
|
|
124
|
-
// height: 16px;
|
|
125
|
-
/* 盒子高度 */
|
|
126
|
-
gap: 5px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.dot {
|
|
130
|
-
width: 5px;
|
|
131
|
-
height: 5px;
|
|
132
|
-
background-color: $--color-primary;
|
|
133
|
-
/* 点的颜色 */
|
|
134
|
-
border-radius: 50%;
|
|
135
|
-
/* 圆形 */
|
|
136
|
-
animation: wave 1s infinite ease-in-out;
|
|
137
|
-
/* 动画 */
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* 波浪动画 */
|
|
141
|
-
@keyframes wave {
|
|
142
|
-
0%,
|
|
143
|
-
100% {
|
|
144
|
-
transform: translateY(-2px);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
50% {
|
|
148
|
-
transform: translateY(2px);
|
|
149
|
-
/* 上下波动 */
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.el-x-bubble-footer {
|
|
155
|
-
margin-top: $--el-x-padding-sm;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
1
|
+
@import '../theme/var.scss';
|
|
2
|
+
|
|
3
|
+
.el-x-bubble {
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: var(--el-x-bubble-avatar-placeholder-gap);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.el-x-bubble-avatar-size {
|
|
9
|
+
::v-deep .el-avatar {
|
|
10
|
+
width: var(--el-x-bubble-avatar-placeholder-width);
|
|
11
|
+
height: var(--el-x-bubble-avatar-placeholder-height);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.el-x-bubble-avatar-placeholder {
|
|
16
|
+
width: var(--el-x-bubble-avatar-placeholder-width);
|
|
17
|
+
height: var(--el-x-bubble-avatar-placeholder-height);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.el-x-bubble-start {
|
|
21
|
+
.el-x-bubble-content-wrapper {
|
|
22
|
+
.el-x-bubble-content-corner {
|
|
23
|
+
border-start-start-radius: $--el-x-border-radius-base - 2px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.el-x-bubble-end {
|
|
29
|
+
justify-content: end;
|
|
30
|
+
flex-direction: row-reverse;
|
|
31
|
+
|
|
32
|
+
.el-x-bubble-content-wrapper {
|
|
33
|
+
align-items: flex-end;
|
|
34
|
+
|
|
35
|
+
.el-x-bubble-content-corner {
|
|
36
|
+
border-start-end-radius: $--el-x-border-radius-base - 2px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.el-x-bubble-no-style {
|
|
42
|
+
.el-x-bubble-content-wrapper {
|
|
43
|
+
.el-x-bubble-content {
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.el-x-bubble-content-wrapper {
|
|
51
|
+
flex: auto;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
align-items: flex-start;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
|
|
58
|
+
.el-x-bubble-header,
|
|
59
|
+
.el-x-bubble-content,
|
|
60
|
+
.el-x-bubble-footer {
|
|
61
|
+
font-size: $--el-x-font-size-base;
|
|
62
|
+
color: $--el-x-text-color-primary;
|
|
63
|
+
line-height: $--el-x-font-line-height-primary;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// .el-x-bubble-header {
|
|
67
|
+
// margin-bottom: var();
|
|
68
|
+
// }
|
|
69
|
+
|
|
70
|
+
.el-x-bubble-content {
|
|
71
|
+
background-color: $--el-x-fill-color;
|
|
72
|
+
padding: $--el-x-padding-md $--el-x-padding-lg;
|
|
73
|
+
border-radius: $--el-x-border-radius-base + 4px;
|
|
74
|
+
position: relative;
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
max-width: var(--bubble-content-max-width);
|
|
78
|
+
color: $--el-x-text-color-primary;
|
|
79
|
+
font-size: $--el-x-font-size-base;
|
|
80
|
+
line-height: $--el-x-font-line-height-primary;
|
|
81
|
+
// min-height: calc(#{$--el-x-padding-md} * 2 + #{$--el-x-font-line-height-primary} * #{$--el-x-font-size-base} );
|
|
82
|
+
word-break: break-word;
|
|
83
|
+
|
|
84
|
+
// 打字器没有内容时候展示高度
|
|
85
|
+
.no-content {
|
|
86
|
+
// height: 16px;
|
|
87
|
+
height: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// 气泡圆角
|
|
92
|
+
.el-x-bubble-content-round {
|
|
93
|
+
border-radius: $--el-x-border-radius-round;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// 气泡样式
|
|
97
|
+
.el-x-bubble-content-filled {
|
|
98
|
+
background-color: $--el-x-fill-color;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.el-x-bubble-content-borderless {
|
|
102
|
+
background-color: $--el-x-fill-color;
|
|
103
|
+
border: $--el-x-border-width solid $--el-x-border-color;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.el-x-bubble-content-outlined {
|
|
107
|
+
background: none;
|
|
108
|
+
border: $--el-x-border-width solid $--el-x-border-color;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.el-x-bubble-content-shadow {
|
|
112
|
+
background: none;
|
|
113
|
+
// box-shadow: var(--el-box-shadow-tertiary);
|
|
114
|
+
box-shadow: $--el-x-box-shadow-base;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.el-x-bubble-content-loading {
|
|
118
|
+
width: fit-content;
|
|
119
|
+
|
|
120
|
+
.el-x-bubble-loading-wrap {
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
align-items: center;
|
|
124
|
+
// height: 16px;
|
|
125
|
+
/* 盒子高度 */
|
|
126
|
+
gap: 5px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.dot {
|
|
130
|
+
width: 5px;
|
|
131
|
+
height: 5px;
|
|
132
|
+
background-color: $--color-primary;
|
|
133
|
+
/* 点的颜色 */
|
|
134
|
+
border-radius: 50%;
|
|
135
|
+
/* 圆形 */
|
|
136
|
+
animation: wave 1s infinite ease-in-out;
|
|
137
|
+
/* 动画 */
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* 波浪动画 */
|
|
141
|
+
@keyframes wave {
|
|
142
|
+
0%,
|
|
143
|
+
100% {
|
|
144
|
+
transform: translateY(-2px);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
50% {
|
|
148
|
+
transform: translateY(2px);
|
|
149
|
+
/* 上下波动 */
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.el-x-bubble-footer {
|
|
155
|
+
margin-top: $--el-x-padding-sm;
|
|
156
|
+
}
|
|
157
|
+
}
|