meixioacomponent 2.0.62 → 2.0.64

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": "2.0.62",
3
+ "version": "2.0.64",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -51,8 +51,8 @@ export default defineComponent({
51
51
  for (let j = 0; j < itemLength.length; j++) {
52
52
  const item = itemLength[j];
53
53
  const splitList = item.split('-');
54
- obj.idList.push(splitList[1]);
55
- obj[`${areaConfig[j].value}`] = splitList[0];
54
+ obj.idList.push(splitList[0]);
55
+ obj[`${areaConfig[j].value}`] = splitList[1];
56
56
  }
57
57
  value.push(obj);
58
58
  }
@@ -177,7 +177,7 @@ export default {
177
177
  const checkConfig = {
178
178
  colKey: 'row-select',
179
179
  type: this.$props.checkType,
180
- label: '',
180
+ label: 'row-select',
181
181
  disabled: (scope) => {
182
182
  if (this.$props.canSelected) {
183
183
  return !(this.$props.canSelected(scope))
@@ -5,7 +5,6 @@
5
5
  :contenteditable="contenteditable"
6
6
  :style="{ width: `${outline[0] + 2}px`, height: `${outline[1] + 2}px` }"
7
7
  class="base-upload-item-wrap"
8
- @click="clickFile"
9
8
  @mouseenter="mouseenter"
10
9
  v-on:paste="onPasteFile"
11
10
  >
@@ -18,14 +17,16 @@
18
17
  <input
19
18
  v-if="type === 'upload'"
20
19
  ref="inputFile"
21
- :accept="accept"
20
+ :accept="_accept"
22
21
  :multiple="uploadType !== 'single'"
23
22
  style="display: none"
24
23
  type="file"
25
24
  @change="onInputFileChange"
26
25
  />
27
26
 
28
- <div v-if="!uploadedValue" class="is-upload-pro-img">
27
+ <div
28
+ @click="clickFile"
29
+ v-if="!uploadedValue" class="is-upload-pro-img">
29
30
  <upload-icon></upload-icon>
30
31
  <div :class="{ disabled: disabled }" class="upload-notic-wrap">
31
32
  <div v-if="fileType === 'img'" class="primary-color">点击上传</div>
@@ -180,6 +181,9 @@ export default {
180
181
  };
181
182
  },
182
183
  },
184
+ accept:{
185
+ type:String
186
+ }
183
187
  },
184
188
  computed: {
185
189
  module: {
@@ -202,7 +206,7 @@ export default {
202
206
  return "";
203
207
  },
204
208
 
205
- accept() {
209
+ _accept() {
206
210
  let accept = "";
207
211
  let fileType = this.$props.fileType;
208
212
  switch (fileType) {
@@ -213,7 +217,7 @@ export default {
213
217
  accept = "video/*";
214
218
  break;
215
219
  case "other":
216
- accept = "";
220
+ accept = this.$props.accept;
217
221
  break;
218
222
  default:
219
223
  break;