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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-element-ui-x",
3
- "version": "0.1.8-beta",
3
+ "version": "0.1.9-beta",
4
4
  "description": "基于Vue 2 + Element UI的AI聊天组件库",
5
5
  "main": "lib/index.esm.js",
6
6
  "module": "lib/index.umd.js",
@@ -19,9 +19,9 @@
19
19
  :action="uploadAction"
20
20
  :http-request="customUpload"
21
21
  :show-file-list="false"
22
- @change="handleUploadChange"
23
- @success="handleUploadSuccess"
24
- @error="handleUploadError"
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
- @change="handleUploadChange"
98
- @success="handleUploadSuccess"
99
- @error="handleUploadError"
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
- 'uploadChange',
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('uploadChange', file, fileList);
368
+ this.$emit('upload-change', file, fileList);
369
369
  },
370
370
  handleUploadSuccess(response, file, fileList) {
371
- this.$emit('uploadSuccess', response, file, fileList);
371
+ this.$emit('upload-success', response, file, fileList);
372
372
  },
373
373
  handleUploadError(error, file, fileList) {
374
- this.$emit('uploadError', error, file, fileList);
374
+ this.$emit('upload-error', error, file, fileList);
375
375
  },
376
376
 
377
377
  getTargetElement() {