meixioacomponent 0.1.4 → 0.1.5

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.1.4",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -12,7 +12,7 @@
12
12
  "axios": "^0.27.2",
13
13
  "core-js": "^3.6.5",
14
14
  "dayjs": "^1.11.3",
15
- "element-ui": "^2.15.9",
15
+ "element-ui": "^2.15.8",
16
16
  "register-service-worker": "^1.7.1",
17
17
  "vue": "^2.6.11",
18
18
  "vue-router": "^3.2.0",
@@ -151,7 +151,7 @@ export default {
151
151
  computed: {
152
152
  module: {
153
153
  set(val) {
154
- console.log(val);
154
+ //console.log(val);
155
155
  this.$emit("input", val);
156
156
  },
157
157
  get() {
@@ -205,9 +205,9 @@ export default {
205
205
  },
206
206
  methods: {
207
207
  init() {
208
- console.log("start");
208
+ //console.log("start");
209
209
  if (this.module && this.module instanceof Object) {
210
- console.log("end");
210
+ //console.log("end");
211
211
  for (let i = 0; i < areaConfig.length; i++) {
212
212
  let item = areaConfig[i];
213
213
  let value = this.module[`${item.value}`];
@@ -237,8 +237,8 @@ export default {
237
237
 
238
238
  this.checkProvince(areaJson[cindex]);
239
239
  } else {
240
- console.log("else");
241
- console.log(this.activeObj);
240
+ //console.log("else");
241
+ //console.log(this.activeObj);
242
242
  if (this.activeObj && this.activeObj.children.length > 0) {
243
243
  let cindex = this.activeObj.children.findIndex((citem) => {
244
244
  return item.label == citem.label;
@@ -298,8 +298,8 @@ export default {
298
298
 
299
299
  // 返回
300
300
  backArea() {
301
- console.log(this.activeIndex);
302
- console.log(this.areaValue);
301
+ //console.log(this.activeIndex);
302
+ //console.log(this.areaValue);
303
303
  let currentArea = this.areaValue[this.activeIndex - 1];
304
304
  this.areaValue.splice(this.activeIndex, 1);
305
305
  this.activeIndex -= 1;
@@ -334,7 +334,7 @@ export default {
334
334
  // this.module[`${areaConfig[i].value}`] = this.areaValue[i].label;
335
335
  // } else if (this.$props.value != null && !this.module) {
336
336
  // this.$emit("changeValue", {});
337
- // console.log(this.value);
337
+ // //console.log(this.value);
338
338
  // this.module[`${areaConfig[i].value}`] = this.areaValue[i].label;
339
339
  // // let obj = {};
340
340
  // // obj[`${areaConfig[i].value}`] = this.areaValue[i].label;
@@ -345,7 +345,7 @@ export default {
345
345
  this.module = value;
346
346
 
347
347
  this.$emit("confirmAreaValue", value);
348
- console.log(this.module);
348
+ //console.log(this.module);
349
349
  this.$refs.popover.doClose();
350
350
  },
351
351
 
@@ -92,9 +92,9 @@ export default {
92
92
  },
93
93
  methods: {
94
94
  showDialog(cb) {
95
- console.log(this.$refs.dialog);
95
+ //console.log(this.$refs.dialog);
96
96
  this.centerDialogVisible = true;
97
- console.log(this.$refs.dialog);
97
+ //console.log(this.$refs.dialog);
98
98
  if (cb) {
99
99
  cb();
100
100
  }
@@ -102,7 +102,7 @@ export default {
102
102
  closeDialog() {
103
103
  if (this.$props.isDestroy) {
104
104
  this.isShow = false;
105
- console.log(this.isShow);
105
+ //console.log(this.isShow);
106
106
  // this.$destroy();
107
107
  this.$nextTick(() => {
108
108
  this.$destroy();
@@ -149,7 +149,7 @@ export default {
149
149
  }),
150
150
  };
151
151
 
152
- console.log(obj);
152
+ //console.log(obj);
153
153
  this.$emit("editoConfirm", obj);
154
154
  },
155
155
  uploadEd(list) {
@@ -84,8 +84,8 @@ export default {
84
84
  this.loading = false;
85
85
  },
86
86
  errorEd() {
87
- console.log(this.$props.src)
88
- console.log("imgError");
87
+ //console.log(this.$props.src)
88
+ //console.log("imgError");
89
89
  this.loading = false;
90
90
  this.isError = true;
91
91
  },
@@ -70,7 +70,7 @@ export default {
70
70
  this.labelWidth = width;
71
71
  }
72
72
  });
73
- console.log(this.labelWidth);
73
+ //console.log(this.labelWidth);
74
74
  },
75
75
  infoclickicon(item) {
76
76
  this.$emit("infoclickicon", item);
@@ -49,14 +49,14 @@ export default {
49
49
  },
50
50
  methods: {
51
51
  handleSizeChange(e) {
52
- console.log("handleSizeChange");
52
+ //console.log("handleSizeChange");
53
53
  this.$props.pageProps[`${this.$props.config.size}`] = e;
54
54
  this.$emit("sizeChange");
55
55
  },
56
56
  handleCurrentChange(e) {
57
- console.log(e);
58
- console.log(this.$props.pageProps);
59
- console.log("handleCurrentChange");
57
+ //console.log(e);
58
+ //console.log(this.$props.pageProps);
59
+ //console.log("handleCurrentChange");
60
60
  this.$emit("currentChange");
61
61
  },
62
62
  },
@@ -115,7 +115,7 @@ export default {
115
115
  computed: {
116
116
  module: {
117
117
  set(val) {
118
- console.log(val);
118
+ //console.log(val);
119
119
  this.$emit("input", val);
120
120
  },
121
121
  get() {
@@ -134,7 +134,7 @@ export default {
134
134
  },
135
135
  showModule() {
136
136
  if (this.module) {
137
- console.log(typeof this.module);
137
+ //console.log(typeof this.module);
138
138
  if (typeof this.module == "string") {
139
139
  let text = null;
140
140
  this.baseTimeTypeConfig.forEach((item) => {
@@ -36,8 +36,8 @@ export const baseUploadMixins = {
36
36
  },
37
37
 
38
38
  uploadEd(list) {
39
- console.log(list);
40
- console.log(this.module);
39
+ //console.log(list);
40
+ //console.log(this.module);
41
41
  this.module = list;
42
42
  this.uploadLoading = false;
43
43
  this.$emit("uploadEd", list);
@@ -167,7 +167,7 @@ export default {
167
167
  return item.process == 100 || !item.upload;
168
168
  });
169
169
  this.$props.uploadArray = list;
170
- console.log(this.$props.uploadArray);
170
+ //console.log(this.$props.uploadArray);
171
171
  this.$props.uploadEdEvent(list);
172
172
  }
173
173
  }
@@ -21,9 +21,9 @@ export default {
21
21
  };
22
22
  },
23
23
  mounted() {
24
- console.log("dyMounted");
24
+ //console.log("dyMounted");
25
25
  this.$nextTick(() => {
26
- console.log(this.componentMounted);
26
+ //console.log(this.componentMounted);
27
27
  });
28
28
  },
29
29
 
@@ -68,7 +68,7 @@ export default {
68
68
  this.componentMounted.$on("hook:mounted", () => {});
69
69
  this.componentMounted.$on("hook:destroyed", () => {
70
70
  this.mountedDom = null;
71
- console.log("destroyed");
71
+ //console.log("destroyed");
72
72
  this.close();
73
73
  });
74
74
  },
@@ -33,6 +33,7 @@ import baseProTable from "./proPageTable/index";
33
33
  // js 文件相关
34
34
  import DynamicMount from "./dynamicmount/index.js";
35
35
  import componentConfig from "../config/componentConfig";
36
+ import DynamicMountClass from "./dynamicmount/DynamicMount";
36
37
  import SelectStore from "../config/selectStore/SelectStore";
37
38
  //
38
39
  import useImg from "../config/use/UseImg";
@@ -123,4 +124,5 @@ export default {
123
124
  SelectStore,
124
125
  useImg,
125
126
  useFixedHeader,
127
+ DynamicMountClass
126
128
  };
@@ -112,7 +112,7 @@ export default {
112
112
  let result = true;
113
113
  for (let i = 0; i < refs.length; i++) {
114
114
  result = await refs[i].checkValidate();
115
- console.log(result);
115
+ //console.log(result);
116
116
  if (!result) {
117
117
  return result;
118
118
  }
@@ -174,7 +174,7 @@ export default {
174
174
  const rulesItem = this.$props.rules[params.config.key];
175
175
  if (rulesItem) {
176
176
  this.$refs.form.validateField([`${params.config.key}`], (errorMsg) => {
177
- console.log(errorMsg);
177
+ //console.log(errorMsg);
178
178
  if (!errorMsg) {
179
179
  params.this.handleConfirm();
180
180
  this.$emit("formItemConfirm", params.config);
@@ -193,7 +193,7 @@ export default {
193
193
  },
194
194
  setFormLineList() {
195
195
  this.formLineList = ArrayChunk(this.$props.formList, this.chunkLength);
196
- console.log(this.formLineList);
196
+ //console.log(this.formLineList);
197
197
  },
198
198
  // 返回form表单值
199
199
  returnFormValue() {
@@ -482,7 +482,7 @@ export default {
482
482
  if (proScreenConfig.length > 0) {
483
483
  this._proScreenConfig = proScreenConfig.map((item) => {
484
484
  let index = this.$props.tableConfig.findIndex((citem) => {
485
- console.log(citem);
485
+ //console.log(citem);
486
486
  return citem.key == item.key;
487
487
  });
488
488
 
@@ -493,7 +493,7 @@ export default {
493
493
  }
494
494
  });
495
495
 
496
- console.log(this._proScreenConfig);
496
+ //console.log(this._proScreenConfig);
497
497
  }
498
498
  },
499
499
  // 打开高级筛选
@@ -512,7 +512,7 @@ export default {
512
512
  },
513
513
 
514
514
  handleScreenItem(config) {
515
- console.log(config);
515
+ //console.log(config);
516
516
 
517
517
  let index = this.proScreenList.findIndex((item) => {
518
518
  return item.key == config.value;
@@ -617,7 +617,7 @@ export default {
617
617
  // element表格的重新渲染方法
618
618
  daLayoutTable() {
619
619
  this.$nextTick(() => {
620
- console.log(this.$props.tableConfig);
620
+ //console.log(this.$props.tableConfig);
621
621
  this.$refs.elTable.doLayout();
622
622
  });
623
623
  },
@@ -630,7 +630,7 @@ export default {
630
630
  },
631
631
  // 自定义表格的列
632
632
  setTableHeaderConfig(configList) {
633
- console.log(configList);
633
+ //console.log(configList);
634
634
  const index = this.$props.tableConfig.filter((item) => {
635
635
  return item.lock;
636
636
  }).length;
@@ -673,7 +673,7 @@ export default {
673
673
  } else {
674
674
  tableCheckboxConfig.value = val;
675
675
  }
676
- console.log(tableCheckboxConfig.value);
676
+ //console.log(tableCheckboxConfig.value);
677
677
  },
678
678
 
679
679
  // 返回被选中的值
@@ -690,8 +690,8 @@ export default {
690
690
  },
691
691
  watch: {
692
692
  fixedList(newValue, oldValue) {
693
- console.log("fixedList:");
694
- console.log(newValue);
693
+ //console.log("fixedList:");
694
+ //console.log(newValue);
695
695
  },
696
696
  },
697
697
  };
@@ -25,9 +25,9 @@ class UseSelectStoreClass {
25
25
  }
26
26
 
27
27
  registerStore(params) {
28
- console.log(params);
28
+ //console.log(params);
29
29
  this.storeClassList[`${params.name}`] = params.class;
30
- console.log(this.storeClassList);
30
+ //console.log(this.storeClassList);
31
31
  }
32
32
  }
33
33
  export default UseSelectStoreClass;
@@ -15,7 +15,7 @@ const selectStore = {
15
15
  mutations: {
16
16
  CREATE_SELECTSTORE: (state) => {
17
17
  state.selectStore = new UseSelectStoreClass();
18
- console.log("注册成功");
18
+ //console.log("注册成功");
19
19
  },
20
20
  },
21
21
  actions: {},
@@ -22,7 +22,7 @@ class UseImg {
22
22
  });
23
23
  // 挂载事件
24
24
  this.dynamicMount.on("mounted", () => {
25
- // console.log("mounted");
25
+ // //console.log("mounted");
26
26
  });
27
27
  this.dynamicMount.init();
28
28
  });
@@ -23,7 +23,7 @@ class Upload {
23
23
  return;
24
24
  });
25
25
  this.state = 1;
26
- console.log(uploadEdUrl);
26
+ //console.log(uploadEdUrl);
27
27
  resolve(uploadEdUrl);
28
28
  });
29
29
  }
@@ -86,7 +86,7 @@ export const ArrayChunk = (arr, size) => {
86
86
 
87
87
  // 文件大小
88
88
  export const filterFileSize = (fileSize) => {
89
- console.log(fileSize);
89
+ //console.log(fileSize);
90
90
  let fileSizeByte = fileSize;
91
91
  let fileSizeMsg = "";
92
92
  if (fileSizeByte < 1048576)