meixioacomponent 0.2.39 → 0.2.42

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.2.39",
3
+ "version": "0.2.42",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -92,6 +92,7 @@
92
92
  </template>
93
93
 
94
94
  <script>
95
+ import { json } from "body-parser";
95
96
  import baseButtonHandleVue from "../baseButtonHandle/baseButtonHandle.vue";
96
97
  //
97
98
  import areaJson from "./area";
@@ -134,7 +135,6 @@ export default {
134
135
  computed: {
135
136
  module: {
136
137
  set(val) {
137
- console.log(val);
138
138
  this.$emit("input", val);
139
139
  },
140
140
  get() {
@@ -340,15 +340,18 @@ export default {
340
340
  for (let i = 0; i < this.areaValue.length; i++) {
341
341
  value[`${areaConfig[i].value}`] = this.areaValue[i].label;
342
342
  }
343
- if (JSON.stringify(value) !== "{}") {
343
+
344
+ if (JSON.stringify(value) != "{}") {
344
345
  this.module = value;
345
346
  }
346
- if (this.$parent.$options._componentTag == "el-form-item") {
347
- this.$emit("confirmAreaValue");
348
- } else {
349
- this.$emit("confirmAreaValue", value);
350
- this.doClose();
351
- }
347
+ this.$nextTick(() => {
348
+ if (this.$parent.$options._componentTag == "el-form-item") {
349
+ this.$emit("confirmAreaValue");
350
+ } else {
351
+ this.$emit("confirmAreaValue", value);
352
+ this.doClose();
353
+ }
354
+ });
352
355
  },
353
356
 
354
357
  doClose() {
@@ -377,7 +380,7 @@ export default {
377
380
  watch: {
378
381
  module(newVal, oldVal) {
379
382
  if (!newVal) {
380
- this.areaValue=[];
383
+ this.areaValue = [];
381
384
  return;
382
385
  }
383
386
  if (this.$parent.$options._componentTag == "el-form-item") {
@@ -14,7 +14,7 @@
14
14
  :color="`s`"
15
15
  :event="true"
16
16
  :size="`l`"
17
- :name="`icon-plus`"
17
+ :name="`meixicomponenticon-plus`"
18
18
  class="upload-icon"
19
19
  @iconClick="clickFile"
20
20
  ></base-icon>
@@ -93,20 +93,22 @@ export default {
93
93
  this.isDown = !this.isDown;
94
94
  },
95
95
  async startUpload() {
96
- for (let i = 0; i < this.$props.uploadArray.length; i++) {
97
- let item = this.$props.uploadArray[i];
96
+ let uploadArray = this.$props.uploadArray;
97
+ for (let i = 0; i < uploadArray.length; i++) {
98
+ let item = uploadArray[i];
98
99
  this.createUpload(item);
99
100
  }
100
101
  },
101
102
 
102
103
  appendUploadItem(list) {
104
+ let uploadArray = this.$props.uploadArray;
103
105
  if (list instanceof Array) {
104
106
  list.forEach((item) => {
105
- this.$props.uploadArray.push(item);
107
+ uploadArray.push(item);
106
108
  this.createUpload(item);
107
109
  });
108
110
  } else {
109
- this.$props.uploadArray.push(list);
111
+ uploadArray.push(list);
110
112
  }
111
113
  },
112
114
  createUpload(uploadItem) {
@@ -158,17 +160,17 @@ export default {
158
160
  },
159
161
 
160
162
  uploadEd() {
161
- let flag = this.$props.uploadArray.every((item) => {
163
+ let uploadArray = this.$props.uploadArray;
164
+ let flag = uploadArray.every((item) => {
162
165
  return !item.upload || item.upload.state != 0;
163
166
  });
164
167
  if (flag) {
165
168
  if (this.$props.uploadEdEvent) {
166
- let list = this.$props.uploadArray.filter((item) => {
169
+ uploadArray = uploadArray.filter((item) => {
167
170
  return item.process == 100 || !item.upload;
168
171
  });
169
- this.$props.uploadArray = list;
170
- //console.log(this.$props.uploadArray);
171
- this.$props.uploadEdEvent(list);
172
+
173
+ this.$props.uploadEdEvent(uploadArray);
172
174
  }
173
175
  }
174
176
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="item-wrap" :class="[type]">
3
3
  <div class="item-type">
4
- <svg-icon class="svg" :icon-class="`${svgKey}`"></svg-icon>
4
+ <base-svg class="svg" :icon-class="`${svgKey}`"></base-svg>
5
5
  </div>
6
6
  <div class="item-content">
7
7
  <div class="item-info">
@@ -57,7 +57,6 @@
57
57
  </el-form-item>
58
58
  </div>
59
59
 
60
-
61
60
  <baseButtonHandleVue
62
61
  v-if="footer"
63
62
  :align="`end`"
@@ -256,6 +255,7 @@ export default {
256
255
  }
257
256
  },
258
257
  submitVerifiData(params) {
258
+ console.log(params);
259
259
  if (this.$props.rules) {
260
260
  // element 验证单条表单修改
261
261
  let confrim = true;
@@ -263,15 +263,12 @@ export default {
263
263
  if (rulesItem) {
264
264
  console.log(rulesItem);
265
265
  console.log(this.$refs.form);
266
- this.$refs.form.validateField(
267
- [`${params.config.key}`],
268
- (errorMsg) => {
269
- console.log(errorMsg);
270
- if (errorMsg) {
271
- confrim = false;
272
- }
266
+ this.$refs.form.validateField(`${params.config.key}`, (errorMsg) => {
267
+ console.log(errorMsg);
268
+ if (errorMsg) {
269
+ confrim = false;
273
270
  }
274
- );
271
+ });
275
272
  }
276
273
  return confrim;
277
274
  } else {