vue-element-ui-x 0.1.10-beta → 0.2.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/lib/components/Attachments/index.js +4 -4
- package/lib/components/Bubble/index.js +23 -28
- package/lib/components/BubbleList/index.js +32 -39
- package/lib/components/Conversations/index.js +3 -3
- package/lib/components/FilesCard/index.js +1 -1
- package/lib/components/Prompts/index.js +23 -23
- package/lib/components/Sender/index.js +6 -6
- package/lib/components/Thinking/index.js +5 -5
- package/lib/components/ThoughtChain/index.js +28 -35
- package/lib/components/Typewriter/index.js +22 -27
- 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 +102 -364
- package/lib/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/Attachments/index.js +8 -8
- 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/Conversations/index.js +8 -8
- 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/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/Thinking/index.js +8 -8
- package/src/components/ThoughtChain/index.js +8 -8
- package/src/components/Typewriter/index.js +8 -8
- package/src/components/Welcome/index.js +8 -8
- package/src/components/Welcome/src/main.vue +151 -151
- package/src/index.js +0 -3
- 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/Thinking.scss +2 -2
- package/src/styles/ThoughtChain.scss +113 -113
- package/src/styles/Typewriter.scss +66 -66
- package/src/styles/button.scss +302 -0
- package/src/styles/var.scss +1052 -0
- package/src/theme/var.scss +72 -72
- package/lib/components/Think/index.js +0 -799
- package/src/components/Think/index.js +0 -8
- package/src/components/Think/src/main.vue +0 -190
- package/src/styles/Think.scss +0 -134
|
@@ -1,151 +1,151 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="containerClass"
|
|
4
|
-
:style="styleConfig"
|
|
5
|
-
class="el-x-welcome"
|
|
6
|
-
>
|
|
7
|
-
<!-- image -->
|
|
8
|
-
<slot name="image">
|
|
9
|
-
<div
|
|
10
|
-
v-if="hasIcon"
|
|
11
|
-
:class="iconClass"
|
|
12
|
-
:style="styles && styles.icon"
|
|
13
|
-
class="el-x-welcome-icon"
|
|
14
|
-
>
|
|
15
|
-
<el-image
|
|
16
|
-
:src="icon"
|
|
17
|
-
class="icon-image"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
20
|
-
</slot>
|
|
21
|
-
|
|
22
|
-
<div class="content-wrapper">
|
|
23
|
-
<!-- extra -->
|
|
24
|
-
<div
|
|
25
|
-
v-if="hasTitleOrExtra"
|
|
26
|
-
class="title-wrapper"
|
|
27
|
-
>
|
|
28
|
-
<div
|
|
29
|
-
v-if="title"
|
|
30
|
-
:class="titleClass"
|
|
31
|
-
:style="styles && styles.title"
|
|
32
|
-
class="el-x-welcome-title"
|
|
33
|
-
>
|
|
34
|
-
{{ title }}
|
|
35
|
-
</div>
|
|
36
|
-
<div
|
|
37
|
-
v-if="hasExtraOrSlot"
|
|
38
|
-
:class="extraClass"
|
|
39
|
-
:style="styles && styles.extra"
|
|
40
|
-
class="el-x-welcome-extra"
|
|
41
|
-
>
|
|
42
|
-
<slot name="extra">{{ extra }}</slot>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<!-- description -->
|
|
47
|
-
<div
|
|
48
|
-
v-if="hasDescription"
|
|
49
|
-
:class="descriptionClass"
|
|
50
|
-
:style="styles && styles.description"
|
|
51
|
-
class="el-x-welcome-description"
|
|
52
|
-
>
|
|
53
|
-
{{ description }}
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</template>
|
|
58
|
-
|
|
59
|
-
<script>
|
|
60
|
-
export default {
|
|
61
|
-
name: 'ElXWelcome',
|
|
62
|
-
props: {
|
|
63
|
-
className: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: '',
|
|
66
|
-
},
|
|
67
|
-
rootClassName: {
|
|
68
|
-
type: String,
|
|
69
|
-
default: '',
|
|
70
|
-
},
|
|
71
|
-
variant: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: 'filled',
|
|
74
|
-
validator: value => ['filled', 'borderless'].includes(value),
|
|
75
|
-
},
|
|
76
|
-
direction: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: 'ltr',
|
|
79
|
-
validator: value => ['ltr', 'rtl'].includes(value),
|
|
80
|
-
},
|
|
81
|
-
classNames: {
|
|
82
|
-
type: Object,
|
|
83
|
-
default: () => ({}),
|
|
84
|
-
},
|
|
85
|
-
icon: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: '',
|
|
88
|
-
},
|
|
89
|
-
title: {
|
|
90
|
-
type: String,
|
|
91
|
-
default: '',
|
|
92
|
-
},
|
|
93
|
-
extra: {
|
|
94
|
-
type: [String, Object],
|
|
95
|
-
default: '',
|
|
96
|
-
},
|
|
97
|
-
description: {
|
|
98
|
-
type: String,
|
|
99
|
-
default: '',
|
|
100
|
-
},
|
|
101
|
-
styleConfig: {
|
|
102
|
-
type: Object,
|
|
103
|
-
default: () => ({}),
|
|
104
|
-
},
|
|
105
|
-
styles: {
|
|
106
|
-
type: Object,
|
|
107
|
-
default: () => ({}),
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
computed: {
|
|
111
|
-
hasIcon() {
|
|
112
|
-
return !!this.icon;
|
|
113
|
-
},
|
|
114
|
-
hasTitleOrExtra() {
|
|
115
|
-
return !!this.title || !!this.extra;
|
|
116
|
-
},
|
|
117
|
-
hasExtraOrSlot() {
|
|
118
|
-
return !!this.extra || !!this.$slots.extra;
|
|
119
|
-
},
|
|
120
|
-
hasDescription() {
|
|
121
|
-
return !!this.description;
|
|
122
|
-
},
|
|
123
|
-
containerClass() {
|
|
124
|
-
return [
|
|
125
|
-
this.className,
|
|
126
|
-
this.rootClassName,
|
|
127
|
-
`el-x-welcome-${this.variant}`,
|
|
128
|
-
{
|
|
129
|
-
'el-x-welcome-rtl': this.direction === 'rtl',
|
|
130
|
-
},
|
|
131
|
-
];
|
|
132
|
-
},
|
|
133
|
-
iconClass() {
|
|
134
|
-
return this.classNames && this.classNames.icon;
|
|
135
|
-
},
|
|
136
|
-
titleClass() {
|
|
137
|
-
return this.classNames && this.classNames.title;
|
|
138
|
-
},
|
|
139
|
-
extraClass() {
|
|
140
|
-
return this.classNames && this.classNames.extra;
|
|
141
|
-
},
|
|
142
|
-
descriptionClass() {
|
|
143
|
-
return this.classNames && this.classNames.description;
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
};
|
|
147
|
-
</script>
|
|
148
|
-
|
|
149
|
-
<style lang="scss" scoped>
|
|
150
|
-
@import '../../../styles/Welcome.scss';
|
|
151
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="containerClass"
|
|
4
|
+
:style="styleConfig"
|
|
5
|
+
class="el-x-welcome"
|
|
6
|
+
>
|
|
7
|
+
<!-- image -->
|
|
8
|
+
<slot name="image">
|
|
9
|
+
<div
|
|
10
|
+
v-if="hasIcon"
|
|
11
|
+
:class="iconClass"
|
|
12
|
+
:style="styles && styles.icon"
|
|
13
|
+
class="el-x-welcome-icon"
|
|
14
|
+
>
|
|
15
|
+
<el-image
|
|
16
|
+
:src="icon"
|
|
17
|
+
class="icon-image"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</slot>
|
|
21
|
+
|
|
22
|
+
<div class="content-wrapper">
|
|
23
|
+
<!-- extra -->
|
|
24
|
+
<div
|
|
25
|
+
v-if="hasTitleOrExtra"
|
|
26
|
+
class="title-wrapper"
|
|
27
|
+
>
|
|
28
|
+
<div
|
|
29
|
+
v-if="title"
|
|
30
|
+
:class="titleClass"
|
|
31
|
+
:style="styles && styles.title"
|
|
32
|
+
class="el-x-welcome-title"
|
|
33
|
+
>
|
|
34
|
+
{{ title }}
|
|
35
|
+
</div>
|
|
36
|
+
<div
|
|
37
|
+
v-if="hasExtraOrSlot"
|
|
38
|
+
:class="extraClass"
|
|
39
|
+
:style="styles && styles.extra"
|
|
40
|
+
class="el-x-welcome-extra"
|
|
41
|
+
>
|
|
42
|
+
<slot name="extra">{{ extra }}</slot>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- description -->
|
|
47
|
+
<div
|
|
48
|
+
v-if="hasDescription"
|
|
49
|
+
:class="descriptionClass"
|
|
50
|
+
:style="styles && styles.description"
|
|
51
|
+
class="el-x-welcome-description"
|
|
52
|
+
>
|
|
53
|
+
{{ description }}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<script>
|
|
60
|
+
export default {
|
|
61
|
+
name: 'ElXWelcome',
|
|
62
|
+
props: {
|
|
63
|
+
className: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: '',
|
|
66
|
+
},
|
|
67
|
+
rootClassName: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: '',
|
|
70
|
+
},
|
|
71
|
+
variant: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: 'filled',
|
|
74
|
+
validator: value => ['filled', 'borderless'].includes(value),
|
|
75
|
+
},
|
|
76
|
+
direction: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: 'ltr',
|
|
79
|
+
validator: value => ['ltr', 'rtl'].includes(value),
|
|
80
|
+
},
|
|
81
|
+
classNames: {
|
|
82
|
+
type: Object,
|
|
83
|
+
default: () => ({}),
|
|
84
|
+
},
|
|
85
|
+
icon: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: '',
|
|
88
|
+
},
|
|
89
|
+
title: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: '',
|
|
92
|
+
},
|
|
93
|
+
extra: {
|
|
94
|
+
type: [String, Object],
|
|
95
|
+
default: '',
|
|
96
|
+
},
|
|
97
|
+
description: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: '',
|
|
100
|
+
},
|
|
101
|
+
styleConfig: {
|
|
102
|
+
type: Object,
|
|
103
|
+
default: () => ({}),
|
|
104
|
+
},
|
|
105
|
+
styles: {
|
|
106
|
+
type: Object,
|
|
107
|
+
default: () => ({}),
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
computed: {
|
|
111
|
+
hasIcon() {
|
|
112
|
+
return !!this.icon;
|
|
113
|
+
},
|
|
114
|
+
hasTitleOrExtra() {
|
|
115
|
+
return !!this.title || !!this.extra;
|
|
116
|
+
},
|
|
117
|
+
hasExtraOrSlot() {
|
|
118
|
+
return !!this.extra || !!this.$slots.extra;
|
|
119
|
+
},
|
|
120
|
+
hasDescription() {
|
|
121
|
+
return !!this.description;
|
|
122
|
+
},
|
|
123
|
+
containerClass() {
|
|
124
|
+
return [
|
|
125
|
+
this.className,
|
|
126
|
+
this.rootClassName,
|
|
127
|
+
`el-x-welcome-${this.variant}`,
|
|
128
|
+
{
|
|
129
|
+
'el-x-welcome-rtl': this.direction === 'rtl',
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
},
|
|
133
|
+
iconClass() {
|
|
134
|
+
return this.classNames && this.classNames.icon;
|
|
135
|
+
},
|
|
136
|
+
titleClass() {
|
|
137
|
+
return this.classNames && this.classNames.title;
|
|
138
|
+
},
|
|
139
|
+
extraClass() {
|
|
140
|
+
return this.classNames && this.classNames.extra;
|
|
141
|
+
},
|
|
142
|
+
descriptionClass() {
|
|
143
|
+
return this.classNames && this.classNames.description;
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
</script>
|
|
148
|
+
|
|
149
|
+
<style lang="scss" scoped>
|
|
150
|
+
@import '../../../styles/Welcome.scss';
|
|
151
|
+
</style>
|
package/src/index.js
CHANGED
|
@@ -5,7 +5,6 @@ import ElXConversations from './components/Conversations/index.js';
|
|
|
5
5
|
import ElXFilesCard from './components/FilesCard/index.js';
|
|
6
6
|
import ElXPrompts from './components/Prompts/index.js';
|
|
7
7
|
import ElXSender from './components/Sender/index.js';
|
|
8
|
-
import ElXThink from './components/Think/index.js';
|
|
9
8
|
import ElXThinking from './components/Thinking/index.js';
|
|
10
9
|
import ElXThoughtChain from './components/ThoughtChain/index.js';
|
|
11
10
|
import ElXTypewriter from './components/Typewriter/index.js';
|
|
@@ -29,7 +28,6 @@ const components = [
|
|
|
29
28
|
ElXPrompts,
|
|
30
29
|
ElXConversations,
|
|
31
30
|
ElXThinking,
|
|
32
|
-
ElXThink,
|
|
33
31
|
ElXThoughtChain,
|
|
34
32
|
ElXSender,
|
|
35
33
|
ElXFilesCard,
|
|
@@ -52,7 +50,6 @@ export {
|
|
|
52
50
|
ElXFilesCard,
|
|
53
51
|
ElXPrompts,
|
|
54
52
|
ElXSender,
|
|
55
|
-
ElXThink,
|
|
56
53
|
ElXThinking,
|
|
57
54
|
ElXThoughtChain,
|
|
58
55
|
ElXTypewriter,
|