meixioacomponent 0.3.66 → 0.3.69

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.66",
3
+ "version": "0.3.69",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -4,15 +4,15 @@
4
4
  <span class="header-text">{{ headerText }}</span>
5
5
  <slot name="prefix"></slot>
6
6
  </div>
7
- <slot class="header-wrap-right" name="header-wrap-right"> </slot>
7
+ <slot class="header-wrap-right" name="header-wrap-right"></slot>
8
8
  </div>
9
9
  </template>
10
10
 
11
11
  <script>
12
12
  export default {
13
- name: "basePageHeader",
13
+ name: 'basePageHeader',
14
14
  data() {
15
- return {};
15
+ return {}
16
16
  },
17
17
  props: {
18
18
  headerText: {
@@ -20,7 +20,7 @@ export default {
20
20
  require: true,
21
21
  },
22
22
  },
23
- };
23
+ }
24
24
  </script>
25
25
 
26
26
  <style lang="less" scoped>
@@ -28,6 +28,7 @@ export default {
28
28
  width: 100%;
29
29
  height: auto;
30
30
  display: flex;
31
+ user-select: none;
31
32
  align-items: center;
32
33
  flex-flow: row nowrap;
33
34
  justify-content: space-between;
@@ -69,17 +69,16 @@
69
69
  </template>
70
70
  </el-form-item>
71
71
  </div>
72
-
73
- <baseButtonHandleVue
74
- v-if="footer"
75
- :align="`end`"
76
- :size="`mini`"
77
- class="form-footer"
78
- :config="handleConfig"
79
- ></baseButtonHandleVue>
80
72
  </el-form>
81
-
82
- <div class="form-skeleton-wrap" v-else>
73
+ <baseButtonHandleVue
74
+ v-if="footer"
75
+ :align="`end`"
76
+ :size="`mini`"
77
+ class="form-footer"
78
+ :config="handleConfig"
79
+ ></baseButtonHandleVue>
80
+
81
+ <div class="form-skeleton-wrap" v-if="loading">
83
82
  <div
84
83
  class="form-skeleton-item-wrap"
85
84
  :key="item.key"
@@ -367,7 +366,25 @@ export default {
367
366
  },
368
367
 
369
368
  disableWatcherResult(params) {
370
- this.$emit('disableWatcherResult', params)
369
+ const isBaseDialogForm = this.$parent.$options.name == 'baseDialogForm'
370
+ if (isBaseDialogForm) {
371
+ this.$emit('disableWatcherResult', params)
372
+ } else {
373
+ const { result, type, key } = params
374
+
375
+ const index = this.module.findIndex((item) => {
376
+ return item.key == key
377
+ })
378
+
379
+ if (index > -1) {
380
+ const formItem = this.module[index]
381
+ if (type == 'hide') {
382
+ this.$set(formItem, 'renderHide', result)
383
+ } else if (type == 'disable') {
384
+ this.$set(formItem, 'disabled', result)
385
+ }
386
+ }
387
+ }
371
388
  },
372
389
 
373
390
  setFormItemWidth() {
@@ -445,6 +462,7 @@ export default {
445
462
  align-items: flex-start;
446
463
  }
447
464
  .form-footer {
465
+ padding: var(--padding-5);
448
466
  margin-top: var(--margin-5);
449
467
  }
450
468
 
@@ -1,48 +1,52 @@
1
1
  class UseResize {
2
2
  constructor(parmas) {
3
3
  // type 为 width/height
4
- this.type = parmas.type;
4
+ this.type = parmas.type
5
5
  // 目标需要改变的值
6
- this.value = parmas.value;
6
+ this.value = parmas.value
7
7
  // 移动的时候的事件
8
- this.moveing = parmas.moveing;
8
+ this.moveing = parmas.moveing
9
9
  // 结束事件
10
- this.resizeEnd = parmas.resizeEnd;
11
- this.x = null;
12
- this.sub = null;
10
+ this.resizeEnd = parmas.resizeEnd
11
+ this.x = null
12
+ this.sub = null
13
13
  }
14
14
 
15
15
  setListen() {
16
- document.onmousemove = this.onResizeing;
17
- document.onmouseup = this.onResizeEnd;
16
+ document.onmousemove = this.onResizeing
17
+ document.onmouseup = this.onResizeEnd
18
18
  }
19
19
  removeListen() {
20
- document.onmousemove = null;
21
- document.onmouseup = null;
20
+ document.onmousemove = null
21
+ document.onmouseup = null
22
22
  }
23
23
 
24
24
  startResize(e) {
25
- this.setListen();
26
- if (this.type == "width") {
27
- this.x = e.clientX;
25
+ this.setListen()
26
+ if (this.type == 'width') {
27
+ this.x = e.clientX
28
28
  }
29
29
  }
30
30
 
31
+ initValue(value) {
32
+ this.value = value
33
+ }
34
+
31
35
  onResizeing = (e) => {
32
- let type = this.type;
33
- if (type == "width") {
34
- const stw = this.x - e.clientX;
35
- this.sub = this.value + stw;
36
- this.moveing(this.sub);
36
+ let type = this.type
37
+ if (type == 'width') {
38
+ const stw = this.x - e.clientX
39
+ this.sub = this.value + stw
40
+ this.moveing(this.sub)
37
41
  }
38
- };
42
+ }
39
43
  onResizeEnd = (e) => {
40
- this.removeListen();
41
- this.value = this.sub;
44
+ this.removeListen()
45
+ this.value = this.sub
42
46
  if (this.resizeEnd) {
43
- this.resizeEnd();
47
+ this.resizeEnd()
44
48
  }
45
- };
49
+ }
46
50
  }
47
51
 
48
- export default UseResize;
52
+ export default UseResize
@@ -819,7 +819,7 @@ export default {
819
819
  <template>
820
820
  <base-form-wrap
821
821
  :rowNumber="2"
822
- :disabled="true"
822
+ :disables="disables"
823
823
  :labelWidth="`155px`"
824
824
  ref="businessBaseForm"
825
825
  :formTitle="`dsada`"
@@ -845,7 +845,7 @@ export default {
845
845
  label: '法人身份证',
846
846
  },
847
847
  {
848
- value: '',
848
+ value: 1,
849
849
  key: 'businessLicense',
850
850
  type: 'select',
851
851
  label: '营业执照号',
@@ -858,6 +858,19 @@ export default {
858
858
  label: '营业执照电子版',
859
859
  },
860
860
  ],
861
+ disables: {
862
+ businessLicense: {
863
+ effects: [
864
+ {
865
+ key: 'businessLicenseFile',
866
+ type: 'hide',
867
+ fn: (val) => {
868
+ return val == 2
869
+ },
870
+ },
871
+ ],
872
+ },
873
+ },
861
874
  }
862
875
  },
863
876
  }