vue-element-ui-x 0.1.0
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 +47 -0
- package/lib/attachments.js +3046 -0
- package/lib/bubble-list.js +13845 -0
- package/lib/bubble.js +13130 -0
- package/lib/conversations.js +18817 -0
- package/lib/files-card.js +2457 -0
- package/lib/index.common.js +19 -0
- package/lib/index.esm.js +19 -0
- package/lib/index.js +38282 -0
- package/lib/index.umd.js +19 -0
- package/lib/mixins.js +1016 -0
- package/lib/prompts.js +832 -0
- package/lib/sender.js +1901 -0
- package/lib/think.js +799 -0
- package/lib/thinking.js +809 -0
- package/lib/thought-chain.js +30396 -0
- package/lib/typewriter.js +12793 -0
- package/lib/welcome.js +755 -0
- package/package.json +42 -0
- package/src/components/Attachments/index.js +8 -0
- package/src/components/Attachments/src/main.vue +537 -0
- package/src/components/Bubble/index.js +6 -0
- package/src/components/Bubble/src/main.vue +299 -0
- package/src/components/BubbleList/index.js +8 -0
- package/src/components/BubbleList/src/loading.vue +75 -0
- package/src/components/BubbleList/src/main.vue +466 -0
- package/src/components/Conversations/index.js +8 -0
- package/src/components/Conversations/src/components/item.vue +371 -0
- package/src/components/Conversations/src/main.vue +635 -0
- package/src/components/FilesCard/index.js +8 -0
- package/src/components/FilesCard/src/fileSvg/audio.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/changeFileName.bat +18 -0
- package/src/components/FilesCard/src/fileSvg/code.vue +35 -0
- package/src/components/FilesCard/src/fileSvg/database.vue +94 -0
- package/src/components/FilesCard/src/fileSvg/excel.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/file.vue +40 -0
- package/src/components/FilesCard/src/fileSvg/image.vue +40 -0
- package/src/components/FilesCard/src/fileSvg/index.js +46 -0
- package/src/components/FilesCard/src/fileSvg/link.vue +54 -0
- package/src/components/FilesCard/src/fileSvg/mark.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/three.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/txt.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -0
- package/src/components/FilesCard/src/fileSvg/video.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/word.vue +38 -0
- package/src/components/FilesCard/src/fileSvg/zip.vue +38 -0
- package/src/components/FilesCard/src/main.vue +405 -0
- package/src/components/FilesCard/src/options.js +18 -0
- package/src/components/Prompts/index.js +8 -0
- package/src/components/Prompts/src/main.vue +248 -0
- package/src/components/Sender/index.js +8 -0
- package/src/components/Sender/src/components/ClearButton.vue +28 -0
- package/src/components/Sender/src/components/Loading.vue +53 -0
- package/src/components/Sender/src/components/LoadingButton.vue +39 -0
- package/src/components/Sender/src/components/SendButton.vue +26 -0
- package/src/components/Sender/src/components/SpeechButton.vue +24 -0
- package/src/components/Sender/src/components/SpeechLoading.vue +87 -0
- package/src/components/Sender/src/components/SpeechLoadingButton.vue +43 -0
- package/src/components/Sender/src/main.vue +758 -0
- package/src/components/Think/index.js +8 -0
- package/src/components/Think/src/main.vue +190 -0
- package/src/components/Thinking/index.js +8 -0
- package/src/components/Thinking/src/main.vue +195 -0
- package/src/components/ThoughtChain/index.js +8 -0
- package/src/components/ThoughtChain/src/main.vue +293 -0
- package/src/components/Typewriter/index.js +8 -0
- package/src/components/Typewriter/src/main.vue +251 -0
- package/src/components/Welcome/index.js +8 -0
- package/src/components/Welcome/src/main.vue +151 -0
- package/src/index.js +63 -0
- package/src/mixins/index.js +49 -0
- package/src/mixins/recordMixin.js +118 -0
- package/src/mixins/sendMixin.js +357 -0
- package/src/mixins/streamMixin.js +499 -0
- package/src/styles/Attachments.scss +236 -0
- package/src/styles/Bubble.scss +157 -0
- package/src/styles/BubbleList.scss +148 -0
- package/src/styles/Conversations.scss +260 -0
- package/src/styles/FilesCard.scss +221 -0
- package/src/styles/Prompts.scss +195 -0
- package/src/styles/Sender.scss +199 -0
- package/src/styles/Think.scss +134 -0
- package/src/styles/Thinking.scss +112 -0
- package/src/styles/ThoughtChain.scss +113 -0
- package/src/styles/Typewriter.scss +66 -0
- package/src/styles/Welcome.scss +283 -0
- package/src/theme/var.scss +72 -0
- package/src/utils/index.js +199 -0
- package/src/utils/scrollDetector.js +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Element UI X
|
|
2
|
+
|
|
3
|
+
基于 Element UI 2.15.14 和 Vue2 的企业级 AI 聊天组件库
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install vue-element-ui-x --save
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 快速开始
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import Vue from 'vue';
|
|
15
|
+
import ElementUI from 'element-ui';
|
|
16
|
+
import ElementUIX from 'vue-element-ui-x';
|
|
17
|
+
|
|
18
|
+
// 确保已安装Element UI 2.15.x
|
|
19
|
+
Vue.use(ElementUI);
|
|
20
|
+
Vue.use(ElementUIX);
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 依赖说明
|
|
24
|
+
|
|
25
|
+
- 本包不打包 Element UI,依赖用户项目中的 Element UI
|
|
26
|
+
- 要求用户项目已安装 Element UI 2.15.x
|
|
27
|
+
- 如果用户项目没有 Element UI,会自动安装 peerDependencies 中指定的版本
|
|
28
|
+
- 避免重复安装,节省项目体积
|
|
29
|
+
|
|
30
|
+
## 组件列表
|
|
31
|
+
|
|
32
|
+
- Typewriter.vue
|
|
33
|
+
- Bubble.vue
|
|
34
|
+
- BubbleList.vue
|
|
35
|
+
- Conversations.vue
|
|
36
|
+
- Welcome.vue
|
|
37
|
+
- Prompts.vue
|
|
38
|
+
- FilesCard.vue
|
|
39
|
+
- Attachments.vue
|
|
40
|
+
- Sender.vue
|
|
41
|
+
- MentionSender.vue
|
|
42
|
+
- Thinking.vue
|
|
43
|
+
- ThoughtChain.vue
|
|
44
|
+
|
|
45
|
+
## 开发指南
|
|
46
|
+
|
|
47
|
+
[查看开发文档](./docs/README.md)
|