vue-element-ui-x 0.1.8-beta → 0.1.9-beta
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 +229 -237
- package/lib/components/Conversations/index.js +13 -13
- package/lib/components/FilesCard/index.js +207 -211
- package/lib/components/Sender/index.js +15 -15
- package/lib/components/ThoughtChain/index.js +14 -14
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +271 -279
- package/lib/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/Attachments/src/main.vue +10 -10
- package/src/components/Conversations/src/main.vue +636 -635
- package/src/components/FilesCard/src/main.vue +4 -8
- package/src/components/Sender/src/main.vue +4 -3
- package/src/components/ThoughtChain/src/main.vue +293 -293
- package/lib/attachments.js +0 -3082
- package/lib/bubble-list.js +0 -13840
- package/lib/bubble.js +0 -13125
- package/lib/conversations.js +0 -18825
- package/lib/files-card.js +0 -2471
- package/lib/mixins.js +0 -1016
- package/lib/prompts.js +0 -832
- package/lib/sender.js +0 -1911
- package/lib/think.js +0 -799
- package/lib/thinking.js +0 -809
- package/lib/thought-chain.js +0 -30391
- package/lib/typewriter.js +0 -12788
- package/lib/welcome.js +0 -755
package/package.json
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
:action="uploadAction"
|
|
20
20
|
:http-request="customUpload"
|
|
21
21
|
:show-file-list="false"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
:on-change="handleUploadChange"
|
|
23
|
+
:on-success="handleUploadSuccess"
|
|
24
|
+
:on-error="handleUploadError"
|
|
25
25
|
>
|
|
26
26
|
<i class="el-icon-plus uploader-icon"></i>
|
|
27
27
|
</el-upload>
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
height: overflow === 'scrollY' && '',
|
|
95
95
|
}"
|
|
96
96
|
class="el-x-attachments-upload-btn"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
:on-change="handleUploadChange"
|
|
98
|
+
:on-success="handleUploadSuccess"
|
|
99
|
+
:on-error="handleUploadError"
|
|
100
100
|
>
|
|
101
101
|
<i class="el-icon-plus uploader-icon"></i>
|
|
102
102
|
</el-upload>
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
// 默认实现:发出事件,让父组件处理
|
|
350
350
|
const { file } = options;
|
|
351
351
|
this.$emit(
|
|
352
|
-
'
|
|
352
|
+
'upload-change',
|
|
353
353
|
{
|
|
354
354
|
file,
|
|
355
355
|
},
|
|
@@ -365,13 +365,13 @@
|
|
|
365
365
|
return Promise.resolve();
|
|
366
366
|
},
|
|
367
367
|
handleUploadChange(file, fileList) {
|
|
368
|
-
this.$emit('
|
|
368
|
+
this.$emit('upload-change', file, fileList);
|
|
369
369
|
},
|
|
370
370
|
handleUploadSuccess(response, file, fileList) {
|
|
371
|
-
this.$emit('
|
|
371
|
+
this.$emit('upload-success', response, file, fileList);
|
|
372
372
|
},
|
|
373
373
|
handleUploadError(error, file, fileList) {
|
|
374
|
-
this.$emit('
|
|
374
|
+
this.$emit('upload-error', error, file, fileList);
|
|
375
375
|
},
|
|
376
376
|
|
|
377
377
|
getTargetElement() {
|