vue-element-ui-x 1.1.1 → 1.2.0-beta.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 +140 -140
- package/components.json +12 -12
- package/lib/components/Attachments/index.js +254 -280
- package/lib/components/Bubble/index.js +7392 -7383
- package/lib/components/BubbleList/index.js +7731 -7724
- package/lib/components/Conversations/index.js +108 -134
- package/lib/components/EditorSender/index.js +57 -61
- package/lib/components/FilesCard/index.js +150 -164
- package/lib/components/Prompts/index.js +55 -61
- package/lib/components/Sender/index.js +85 -91
- package/lib/components/Thinking/index.js +47 -57
- package/lib/components/ThoughtChain/index.js +20715 -20708
- package/lib/components/Typewriter/index.js +58 -49
- package/lib/components/Welcome/index.js +39 -43
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +28385 -28462
- package/lib/index.umd.js +1 -1
- package/lib/locale/index.js +97 -97
- package/lib/locale/lang/ar.js +18 -18
- package/lib/locale/lang/ar.umd.js +17 -17
- package/lib/locale/lang/de.js +18 -18
- package/lib/locale/lang/de.umd.js +17 -17
- package/lib/locale/lang/en.js +18 -18
- package/lib/locale/lang/en.umd.js +17 -17
- package/lib/locale/lang/es.js +18 -18
- package/lib/locale/lang/es.umd.js +17 -17
- package/lib/locale/lang/fr.js +18 -18
- package/lib/locale/lang/fr.umd.js +17 -17
- package/lib/locale/lang/it.js +18 -18
- package/lib/locale/lang/it.umd.js +17 -17
- package/lib/locale/lang/ja.js +18 -18
- package/lib/locale/lang/ja.umd.js +17 -17
- package/lib/locale/lang/ko.js +18 -18
- package/lib/locale/lang/ko.umd.js +17 -17
- package/lib/locale/lang/pt-br.js +18 -18
- package/lib/locale/lang/pt-br.umd.js +17 -17
- package/lib/locale/lang/ru-RU.js +18 -18
- package/lib/locale/lang/ru-RU.umd.js +17 -17
- package/lib/locale/lang/zh-CN.js +18 -18
- package/lib/locale/lang/zh-CN.umd.js +17 -17
- package/lib/locale/lang/zh-TW.js +18 -18
- package/lib/locale/lang/zh-TW.umd.js +17 -17
- package/lib/locale/mixin.js +9 -9
- package/lib/mixins/index.js +250 -250
- package/package.json +77 -77
package/README.md
CHANGED
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<a href="https://element-ui-x.com/">
|
|
3
|
-
<img src="https://element-ui-x.com/images/logo.png" alt="Element-UI-X" width="180" class="logo" />
|
|
4
|
-
</a>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
# Element-UI-X
|
|
8
|
-
|
|
9
|
-
**开箱即用的企业级 AI 组件库(基于 Vue 2.x + Element-Ui)**
|
|
10
|
-
|
|
11
|
-
<div align="center">
|
|
12
|
-
<img src="https://element-ui-x.com/demo/demo.png" /> 
|
|
13
|
-
<img src="https://element-ui-x.com/demo/demo1.png" /> 
|
|
14
|
-
<img src="https://element-ui-x.com/demo/demo2.png" /> 
|
|
15
|
-
<img src="https://element-ui-x.com/demo/demo3.png" /> 
|
|
16
|
-
<img src="https://element-ui-x.com/demo/demo4.png" /> 
|
|
17
|
-
<img src="https://element-ui-x.com/demo/demo5.png" /> 
|
|
18
|
-
<img src="https://element-ui-x.com/demo/demo6.png" /> 
|
|
19
|
-
<img src="https://element-ui-x.com/demo/demo7.png" /> 
|
|
20
|
-
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
## 📢 快速链接
|
|
24
|
-
|
|
25
|
-
| 资源类型 | <div style="width: 300px;" >链接</div> |
|
|
26
|
-
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
27
|
-
| **文档** | [📖 开发文档](https://element-ui-x.com/) |
|
|
28
|
-
| **在线演示** | [👁️ 在线预览](https://demo.element-ui-x.com) |
|
|
29
|
-
| **代码仓库** | [🐙 GitHub](https://github.com/worryzyy/element-ui-x)<br/>[📝 GitCode](https://gitcode.com/worryzyy/element-ui-x.git)<br/>[📝 Gitee](https://gitee.com/worryzyy/element-ui-x.git) |
|
|
30
|
-
| **NPM 包** | [📦 npm](https://www.npmjs.com/package/vue-element-ui-x) |
|
|
31
|
-
| **问题反馈** | [🐛 GitHub Issues](https://github.com/worryzyy/element-ui-x/issues)<br/>[🐛 GitCode Issues](https://gitcode.com/worryzyy/element-ui-x/issues)<br/>[🐛 Gitee Issues](https://gitee.com/worryzyy/element-ui-x/issues) |
|
|
32
|
-
| **交流讨论** | [🐒 交流群]() |
|
|
33
|
-
|
|
34
|
-
## 🛠️ 核心特性
|
|
35
|
-
|
|
36
|
-
- ✨ **企业级 AI 组件**
|
|
37
|
-
- 🚀 **零配置集成**
|
|
38
|
-
- 📦 **按需加载**
|
|
39
|
-
|
|
40
|
-
## 📦 安装
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# NPM (推荐)
|
|
44
|
-
npm install vue-element-ui-x
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## 📚 使用案例
|
|
49
|
-
|
|
50
|
-
1. **按需引入**
|
|
51
|
-
|
|
52
|
-
```vue
|
|
53
|
-
<script>
|
|
54
|
-
import { ElXTypewriter } from 'vue-element-ui-x';
|
|
55
|
-
</script>
|
|
56
|
-
|
|
57
|
-
<template>
|
|
58
|
-
<div
|
|
59
|
-
style="display: flex; flex-direction: column; height: 230px; justify-content: space-between;"
|
|
60
|
-
>
|
|
61
|
-
<el-x-typewriter
|
|
62
|
-
content="这是一个基础打字效果演示,展示Typewriter组件的基本功能。"
|
|
63
|
-
:typing="true"
|
|
64
|
-
ref="basicDemo"
|
|
65
|
-
/>
|
|
66
|
-
</div>
|
|
67
|
-
</template>
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
2. **全局引入**
|
|
71
|
-
|
|
72
|
-
```ts
|
|
73
|
-
// main.ts
|
|
74
|
-
import Vue from 'vue';
|
|
75
|
-
import ElementUI from 'element-ui';
|
|
76
|
-
import './assets/styles/reset.css';
|
|
77
|
-
import 'element-ui/lib/theme-chalk/index.css';
|
|
78
|
-
|
|
79
|
-
import ElementUIX from 'vue-element-ui-x';
|
|
80
|
-
import App from './App.vue';
|
|
81
|
-
import router from './router';
|
|
82
|
-
|
|
83
|
-
Vue.use(ElementUI);
|
|
84
|
-
Vue.use(ElementUIX);
|
|
85
|
-
|
|
86
|
-
Vue.config.productionTip = false;
|
|
87
|
-
|
|
88
|
-
new Vue({
|
|
89
|
-
router,
|
|
90
|
-
el: '#app',
|
|
91
|
-
render: h => h(App),
|
|
92
|
-
});
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## 🌟 已实现 组件 和 Mixins
|
|
96
|
-
|
|
97
|
-
| 组件名 | 描述 | 文档链接 |
|
|
98
|
-
| ---------------------- | ----------------- | ----------------------------------------------------------------- |
|
|
99
|
-
| `Typewriter` | 打字动画组件 | [📄 文档](https://element-ui-x.com/components/typewriter.html) |
|
|
100
|
-
| `Bubble` | 气泡消息组件 | [📄 文档](https://element-ui-x.com/components/bubble.html) |
|
|
101
|
-
| `BubbleList` | 气泡消息列表 | [📄 文档](https://element-ui-x.com/components/bubbleList.html) |
|
|
102
|
-
| `Conversations` | 会话管理组件 | [📄 文档](https://element-ui-x.com/components/conversations.html) |
|
|
103
|
-
| `Welcome` | 欢迎组件 | [📄 文档](https://element-ui-x.com/components/welcome.html) |
|
|
104
|
-
| `Prompts ` | 提示集组件 | [📄 文档](https://element-ui-x.com/components/prompts.html) |
|
|
105
|
-
| `FilesCard` | 文件卡片组件 | [📄 文档](https://element-ui-x.com/components/filesCard.html) |
|
|
106
|
-
| `Attachments` | 上传附件组件 | [📄 文档](https://element-ui-x.com/components/attachments.html) |
|
|
107
|
-
| `Sender` | 智能输入框 | [📄 文档](https://element-ui-x.com/components/sender.html) |
|
|
108
|
-
| `Thinking` | 思考中组件 | [📄 文档](https://element-ui-x.com/components/thinking.html) |
|
|
109
|
-
| `ThoughtChain` | 思考链组件 | [📄 文档](https://element-ui-x.com/components/thoughtChain.html) |
|
|
110
|
-
| `recordMixin` | 语音识别 Mixins | [📄 文档](https://element-ui-x.com/components/record-mixins.html) |
|
|
111
|
-
| `streamMixin` | 流模式接口 Mixins | [📄 文档](https://element-ui-x.com/components/stream-mixins.html) |
|
|
112
|
-
| `sendMixin & XRequest` | 流模式 Mixins | [📄 文档](https://element-ui-x.com/components/send-mixins.html) |
|
|
113
|
-
|
|
114
|
-
## 🎯 开发计划 (每周更新)
|
|
115
|
-
|
|
116
|
-
🎀 我们会在 issue 、交流群 等多方面收集大家的遇到的问题,和需求场景,制定短期和长期的开发计划,查看详情请移步 👉 **[开发计划](https://element-ui-x.com/roadmap.html)**
|
|
117
|
-
|
|
118
|
-
## 🤝 参与贡献
|
|
119
|
-
|
|
120
|
-
1. **Fork 仓库** → 2. **创建 Feature 分支** → 3. **提交 Pull Request**
|
|
121
|
-
|
|
122
|
-
详情可以移步 👉 **[开发指南](https://element-ui-x.com/guide/installation.html)**
|
|
123
|
-
|
|
124
|
-
欢迎:
|
|
125
|
-
|
|
126
|
-
- 🐛 Bug 修复
|
|
127
|
-
- 💡 新功能提案
|
|
128
|
-
- 📝 文档完善
|
|
129
|
-
- 🎨 样式优化
|
|
130
|
-
|
|
131
|
-
## 👥 社区支持
|
|
132
|
-
|
|
133
|
-
<div align="center">
|
|
134
|
-
<h3>🎀交流群🎀</h3>
|
|
135
|
-
<img src="https://element-ui-x.com/wechat.png" alt="微信交流群" width="180" style="margin: 20px;" />
|
|
136
|
-
<p>加入微信交流群,获取最新动态和技术支持</p>
|
|
137
|
-
|
|
138
|
-
<p>交流群失效 => 添加我的微信入群, 备注:element-ui-x</p>
|
|
139
|
-
<img src="https://element-ui-x.com/demo/author.png" alt="vx" width="180" style="margin: 20px;" />
|
|
140
|
-
</div>
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://element-ui-x.com/">
|
|
3
|
+
<img src="https://element-ui-x.com/images/logo.png" alt="Element-UI-X" width="180" class="logo" />
|
|
4
|
+
</a>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
# Element-UI-X
|
|
8
|
+
|
|
9
|
+
**开箱即用的企业级 AI 组件库(基于 Vue 2.x + Element-Ui)**
|
|
10
|
+
|
|
11
|
+
<div align="center">
|
|
12
|
+
<img src="https://element-ui-x.com/demo/demo.png" /> 
|
|
13
|
+
<img src="https://element-ui-x.com/demo/demo1.png" /> 
|
|
14
|
+
<img src="https://element-ui-x.com/demo/demo2.png" /> 
|
|
15
|
+
<img src="https://element-ui-x.com/demo/demo3.png" /> 
|
|
16
|
+
<img src="https://element-ui-x.com/demo/demo4.png" /> 
|
|
17
|
+
<img src="https://element-ui-x.com/demo/demo5.png" /> 
|
|
18
|
+
<img src="https://element-ui-x.com/demo/demo6.png" /> 
|
|
19
|
+
<img src="https://element-ui-x.com/demo/demo7.png" /> 
|
|
20
|
+
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
## 📢 快速链接
|
|
24
|
+
|
|
25
|
+
| 资源类型 | <div style="width: 300px;" >链接</div> |
|
|
26
|
+
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
27
|
+
| **文档** | [📖 开发文档](https://element-ui-x.com/) |
|
|
28
|
+
| **在线演示** | [👁️ 在线预览](https://demo.element-ui-x.com) |
|
|
29
|
+
| **代码仓库** | [🐙 GitHub](https://github.com/worryzyy/element-ui-x)<br/>[📝 GitCode](https://gitcode.com/worryzyy/element-ui-x.git)<br/>[📝 Gitee](https://gitee.com/worryzyy/element-ui-x.git) |
|
|
30
|
+
| **NPM 包** | [📦 npm](https://www.npmjs.com/package/vue-element-ui-x) |
|
|
31
|
+
| **问题反馈** | [🐛 GitHub Issues](https://github.com/worryzyy/element-ui-x/issues)<br/>[🐛 GitCode Issues](https://gitcode.com/worryzyy/element-ui-x/issues)<br/>[🐛 Gitee Issues](https://gitee.com/worryzyy/element-ui-x/issues) |
|
|
32
|
+
| **交流讨论** | [🐒 交流群]() |
|
|
33
|
+
|
|
34
|
+
## 🛠️ 核心特性
|
|
35
|
+
|
|
36
|
+
- ✨ **企业级 AI 组件**
|
|
37
|
+
- 🚀 **零配置集成**
|
|
38
|
+
- 📦 **按需加载**
|
|
39
|
+
|
|
40
|
+
## 📦 安装
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# NPM (推荐)
|
|
44
|
+
npm install vue-element-ui-x
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 📚 使用案例
|
|
49
|
+
|
|
50
|
+
1. **按需引入**
|
|
51
|
+
|
|
52
|
+
```vue
|
|
53
|
+
<script>
|
|
54
|
+
import { ElXTypewriter } from 'vue-element-ui-x';
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<template>
|
|
58
|
+
<div
|
|
59
|
+
style="display: flex; flex-direction: column; height: 230px; justify-content: space-between;"
|
|
60
|
+
>
|
|
61
|
+
<el-x-typewriter
|
|
62
|
+
content="这是一个基础打字效果演示,展示Typewriter组件的基本功能。"
|
|
63
|
+
:typing="true"
|
|
64
|
+
ref="basicDemo"
|
|
65
|
+
/>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
2. **全局引入**
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
// main.ts
|
|
74
|
+
import Vue from 'vue';
|
|
75
|
+
import ElementUI from 'element-ui';
|
|
76
|
+
import './assets/styles/reset.css';
|
|
77
|
+
import 'element-ui/lib/theme-chalk/index.css';
|
|
78
|
+
|
|
79
|
+
import ElementUIX from 'vue-element-ui-x';
|
|
80
|
+
import App from './App.vue';
|
|
81
|
+
import router from './router';
|
|
82
|
+
|
|
83
|
+
Vue.use(ElementUI);
|
|
84
|
+
Vue.use(ElementUIX);
|
|
85
|
+
|
|
86
|
+
Vue.config.productionTip = false;
|
|
87
|
+
|
|
88
|
+
new Vue({
|
|
89
|
+
router,
|
|
90
|
+
el: '#app',
|
|
91
|
+
render: h => h(App),
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## 🌟 已实现 组件 和 Mixins
|
|
96
|
+
|
|
97
|
+
| 组件名 | 描述 | 文档链接 |
|
|
98
|
+
| ---------------------- | ----------------- | ----------------------------------------------------------------- |
|
|
99
|
+
| `Typewriter` | 打字动画组件 | [📄 文档](https://element-ui-x.com/components/typewriter.html) |
|
|
100
|
+
| `Bubble` | 气泡消息组件 | [📄 文档](https://element-ui-x.com/components/bubble.html) |
|
|
101
|
+
| `BubbleList` | 气泡消息列表 | [📄 文档](https://element-ui-x.com/components/bubbleList.html) |
|
|
102
|
+
| `Conversations` | 会话管理组件 | [📄 文档](https://element-ui-x.com/components/conversations.html) |
|
|
103
|
+
| `Welcome` | 欢迎组件 | [📄 文档](https://element-ui-x.com/components/welcome.html) |
|
|
104
|
+
| `Prompts ` | 提示集组件 | [📄 文档](https://element-ui-x.com/components/prompts.html) |
|
|
105
|
+
| `FilesCard` | 文件卡片组件 | [📄 文档](https://element-ui-x.com/components/filesCard.html) |
|
|
106
|
+
| `Attachments` | 上传附件组件 | [📄 文档](https://element-ui-x.com/components/attachments.html) |
|
|
107
|
+
| `Sender` | 智能输入框 | [📄 文档](https://element-ui-x.com/components/sender.html) |
|
|
108
|
+
| `Thinking` | 思考中组件 | [📄 文档](https://element-ui-x.com/components/thinking.html) |
|
|
109
|
+
| `ThoughtChain` | 思考链组件 | [📄 文档](https://element-ui-x.com/components/thoughtChain.html) |
|
|
110
|
+
| `recordMixin` | 语音识别 Mixins | [📄 文档](https://element-ui-x.com/components/record-mixins.html) |
|
|
111
|
+
| `streamMixin` | 流模式接口 Mixins | [📄 文档](https://element-ui-x.com/components/stream-mixins.html) |
|
|
112
|
+
| `sendMixin & XRequest` | 流模式 Mixins | [📄 文档](https://element-ui-x.com/components/send-mixins.html) |
|
|
113
|
+
|
|
114
|
+
## 🎯 开发计划 (每周更新)
|
|
115
|
+
|
|
116
|
+
🎀 我们会在 issue 、交流群 等多方面收集大家的遇到的问题,和需求场景,制定短期和长期的开发计划,查看详情请移步 👉 **[开发计划](https://element-ui-x.com/roadmap.html)**
|
|
117
|
+
|
|
118
|
+
## 🤝 参与贡献
|
|
119
|
+
|
|
120
|
+
1. **Fork 仓库** → 2. **创建 Feature 分支** → 3. **提交 Pull Request**
|
|
121
|
+
|
|
122
|
+
详情可以移步 👉 **[开发指南](https://element-ui-x.com/guide/installation.html)**
|
|
123
|
+
|
|
124
|
+
欢迎:
|
|
125
|
+
|
|
126
|
+
- 🐛 Bug 修复
|
|
127
|
+
- 💡 新功能提案
|
|
128
|
+
- 📝 文档完善
|
|
129
|
+
- 🎨 样式优化
|
|
130
|
+
|
|
131
|
+
## 👥 社区支持
|
|
132
|
+
|
|
133
|
+
<div align="center">
|
|
134
|
+
<h3>🎀交流群🎀</h3>
|
|
135
|
+
<img src="https://element-ui-x.com/wechat.png" alt="微信交流群" width="180" style="margin: 20px;" />
|
|
136
|
+
<p>加入微信交流群,获取最新动态和技术支持</p>
|
|
137
|
+
|
|
138
|
+
<p>交流群失效 => 添加我的微信入群, 备注:element-ui-x</p>
|
|
139
|
+
<img src="https://element-ui-x.com/demo/author.png" alt="vx" width="180" style="margin: 20px;" />
|
|
140
|
+
</div>
|
package/components.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"typewriter": "./lib/components/Typewriter/index.js",
|
|
3
|
-
"bubble": "./lib/components/Bubble/index.js",
|
|
4
|
-
"bubble-list": "./lib/components/BubbleList/index.js",
|
|
5
|
-
"conversations": "./lib/components/Conversations/index.js",
|
|
6
|
-
"files-card": "./lib/components/FilesCard/index.js",
|
|
7
|
-
"prompts": "./lib/components/Prompts/index.js",
|
|
8
|
-
"sender": "./lib/components/Sender/index.js",
|
|
9
|
-
"thinking": "./lib/components/Thinking/index.js",
|
|
10
|
-
"thought-chain": "./lib/components/ThoughtChain/index.js",
|
|
11
|
-
"welcome": "./lib/components/Welcome/index.js",
|
|
12
|
-
"attachments": "./lib/components/Attachments/index.js"
|
|
1
|
+
{
|
|
2
|
+
"typewriter": "./lib/components/Typewriter/index.js",
|
|
3
|
+
"bubble": "./lib/components/Bubble/index.js",
|
|
4
|
+
"bubble-list": "./lib/components/BubbleList/index.js",
|
|
5
|
+
"conversations": "./lib/components/Conversations/index.js",
|
|
6
|
+
"files-card": "./lib/components/FilesCard/index.js",
|
|
7
|
+
"prompts": "./lib/components/Prompts/index.js",
|
|
8
|
+
"sender": "./lib/components/Sender/index.js",
|
|
9
|
+
"thinking": "./lib/components/Thinking/index.js",
|
|
10
|
+
"thought-chain": "./lib/components/ThoughtChain/index.js",
|
|
11
|
+
"welcome": "./lib/components/Welcome/index.js",
|
|
12
|
+
"attachments": "./lib/components/Attachments/index.js"
|
|
13
13
|
}
|