meixioacomponent 0.3.21 → 0.3.22

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": "meixioacomponent",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -48,6 +48,7 @@
48
48
  :size="`l`"
49
49
  :color="`d`"
50
50
  :event="true"
51
+ v-if="!disabled"
51
52
  :name="`meixicomponenticon-close`"
52
53
  @iconClick="handleDeleteUploadItem"
53
54
  ></base-icon>
@@ -102,6 +103,11 @@ export default {
102
103
  type: Number,
103
104
  default: 99,
104
105
  },
106
+
107
+ disabled: {
108
+ type: Boolean,
109
+ default: false,
110
+ },
105
111
  },
106
112
  computed: {
107
113
  module: {
@@ -195,7 +201,8 @@ export default {
195
201
  },
196
202
 
197
203
  async onPasteFile() {
198
- if (this.uploadLoading) return;
204
+ const { disabled } = this.$props;
205
+ if (this.uploadLoading || disabled) return;
199
206
  const items = (event.clipboardData || window.clipboardData).items;
200
207
  const rowList = [];
201
208
  if (this.fileType == "img") {
@@ -211,6 +218,7 @@ export default {
211
218
  rowList.push(file);
212
219
  }
213
220
  }
221
+ if (rowList.length <= 0) return;
214
222
  let list = await this.returnFiles(rowList);
215
223
  this.emitEvent(list);
216
224
  },