meixioacomponent 0.2.39 → 0.2.40

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.40",
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>
@@ -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 {