vue-element-ui-x 0.1.0 → 0.1.3
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 +109 -27
- package/lib/{attachments.js → components/Attachments/index.js} +2 -2
- package/lib/{bubble.js → components/Bubble/index.js} +2 -2
- package/lib/{bubble-list.js → components/BubbleList/index.js} +3 -3
- package/lib/{conversations.js → components/Conversations/index.js} +1 -1
- package/lib/{files-card.js → components/FilesCard/index.js} +1 -1
- package/lib/{prompts.js → components/Prompts/index.js} +1 -1
- package/lib/{sender.js → components/Sender/index.js} +4 -4
- package/lib/{think.js → components/Think/index.js} +1 -1
- package/lib/{thinking.js → components/Thinking/index.js} +1 -1
- package/lib/{thought-chain.js → components/ThoughtChain/index.js} +2 -2
- package/lib/{typewriter.js → components/Typewriter/index.js} +1 -1
- package/lib/{welcome.js → components/Welcome/index.js} +1 -1
- package/lib/index.common.js +1 -19
- package/lib/index.esm.js +1 -19
- package/lib/index.js +17 -17
- package/lib/index.umd.js +1 -19
- package/lib/{mixins.js → mixins/index.js} +2 -2
- package/package.json +21 -4
- package/src/mixins/sendMixin.js +1 -1
- package/src/mixins/streamMixin.js +1 -1
|
@@ -399,7 +399,7 @@ class XRequest {
|
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
|
-
* sendMixin -
|
|
402
|
+
* sendMixin -
|
|
403
403
|
* 用于处理发送操作管理请求状态的 mixin,支持可选的中止功能,同时支持 Promise 和 SSE(服务端事件)
|
|
404
404
|
*/
|
|
405
405
|
const sendMixin = {
|
|
@@ -723,7 +723,7 @@ function XStream(options, signal) {
|
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
/**
|
|
726
|
-
* streamMixin -
|
|
726
|
+
* streamMixin -
|
|
727
727
|
* 用于处理流式数据的 mixin,支持 SSE 数据解析和中断功能
|
|
728
728
|
* @namespace streamMixin
|
|
729
729
|
* @type {Object}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-element-ui-x",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "基于Element UI
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "基于Vue 2 + Element UI的AI聊天组件库",
|
|
5
5
|
"main": "lib/index.common.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
7
7
|
"files": [
|
|
@@ -10,6 +10,22 @@
|
|
|
10
10
|
"package.json",
|
|
11
11
|
"README.md"
|
|
12
12
|
],
|
|
13
|
+
"author": "worryzyy",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"homepage": "https://element-ui-x.com",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/worryzyy/element-ui-x.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"element-ui",
|
|
22
|
+
"vue",
|
|
23
|
+
"ai"
|
|
24
|
+
],
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/worryzyy/element-ui-x/issues"
|
|
27
|
+
},
|
|
28
|
+
|
|
13
29
|
"scripts": {
|
|
14
30
|
"build": "npm run build:common && npm run build:esm && npm run build:umd && npm run build:components",
|
|
15
31
|
"build:common": "webpack --config build/webpack.common.conf.js",
|
|
@@ -24,9 +40,10 @@
|
|
|
24
40
|
"devDependencies": {
|
|
25
41
|
"babel-loader": "^8.2.3",
|
|
26
42
|
"css-loader": "^5.2.7",
|
|
27
|
-
"sass": "^
|
|
28
|
-
"sass-loader": "^10.
|
|
43
|
+
"node-sass": "^6.0.1",
|
|
44
|
+
"sass-loader": "^10.0.0",
|
|
29
45
|
"style-loader": "^2.0.0",
|
|
46
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
30
47
|
"vue-loader": "^15.9.8",
|
|
31
48
|
"vue-template-compiler": "^2.6.14",
|
|
32
49
|
"webpack": "^4.46.0",
|
package/src/mixins/sendMixin.js
CHANGED