meixioacomponent 0.3.41 → 0.3.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.
@@ -8923,16 +8923,7 @@
8923
8923
  outline-width: 0;
8924
8924
  }
8925
8925
 
8926
- .el-tooltip__popper {
8927
- position: absolute;
8928
- border-radius: 4px;
8929
- padding: 10px;
8930
- z-index: 2000;
8931
- font-size: 12px;
8932
- line-height: 1.2;
8933
- min-width: 10px;
8934
- word-wrap: break-word;
8935
- }
8926
+
8936
8927
 
8937
8928
  .el-tooltip__popper .popper__arrow,
8938
8929
  .el-tooltip__popper .popper__arrow::after {
@@ -14276,16 +14267,6 @@
14276
14267
  outline-width: 0;
14277
14268
  }
14278
14269
 
14279
- .el-tooltip__popper {
14280
- position: absolute;
14281
- border-radius: 4px;
14282
- padding: 10px;
14283
- z-index: 2000;
14284
- font-size: 12px;
14285
- line-height: 1.2;
14286
- min-width: 10px;
14287
- word-wrap: break-word;
14288
- }
14289
14270
 
14290
14271
  .el-tooltip__popper .popper__arrow,
14291
14272
  .el-tooltip__popper .popper__arrow::after {
@@ -18390,7 +18371,7 @@
18390
18371
  .el-tooltip__popper {
18391
18372
  position: absolute;
18392
18373
  border-radius: 4px;
18393
- padding: 10px;
18374
+ padding: 4px;
18394
18375
  z-index: 2000;
18395
18376
  font-size: 12px;
18396
18377
  line-height: 1.2;
@@ -13,6 +13,10 @@ body {
13
13
  margin: 0px;
14
14
  --footer-height: 40px;
15
15
  --header-height: 63px;
16
+
17
+ .popper__arrow {
18
+ display: none !important;
19
+ }
16
20
  }
17
21
 
18
22
  html {
@@ -109,4 +113,4 @@ h6 {
109
113
 
110
114
  #nprogress .bar {
111
115
  background: var(--color-primary) !important;
112
- }
116
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -2,24 +2,27 @@
2
2
  <div
3
3
  class="base-icon-wrap"
4
4
  :title="title"
5
- @click.stop="iconClick"
6
5
  :class="{ event: event && !disable, plain: plain, disable: disable }"
7
6
  >
8
- <i :class="iconName" :style="{ color: _color, fontSize: _size }"></i>
7
+ <i
8
+ @click.stop="iconClick"
9
+ :class="iconName"
10
+ :style="{ color: _color, fontSize: _size }"
11
+ ></i>
9
12
  </div>
10
13
  </template>
11
14
 
12
15
  <script>
13
16
  export default {
14
- name: "baseIcon",
17
+ name: 'baseIcon',
15
18
  data() {
16
- return {};
19
+ return {}
17
20
  },
18
21
 
19
22
  props: {
20
23
  iconClass: {
21
24
  type: String,
22
- default: "meixi",
25
+ default: 'meixi',
23
26
  },
24
27
  event: {
25
28
  type: Boolean,
@@ -30,11 +33,11 @@ export default {
30
33
  require: true,
31
34
  },
32
35
  color: {
33
- default: "d",
36
+ default: 'd',
34
37
  type: String,
35
38
  },
36
39
  size: {
37
- default: "d",
40
+ default: 'd',
38
41
  type: String,
39
42
  },
40
43
  active: {
@@ -55,65 +58,66 @@ export default {
55
58
  },
56
59
  computed: {
57
60
  _color() {
58
- let color = null;
61
+ let color = null
59
62
  if (this.$props.active) {
60
- color = `var(--color-primary)`;
61
- return color;
63
+ color = `var(--color-primary)`
64
+ return color
62
65
  }
63
- let propsColor = this.$props.color;
66
+ let propsColor = this.$props.color
64
67
  switch (propsColor) {
65
- case "d":
66
- color = `var(--icon-color-d)`;
67
- break;
68
- case "m":
69
- color = `var(--icon-color-m)`;
70
- break;
71
- case "s":
72
- color = `var(--icon-color-s)`;
73
- break;
68
+ case 'd':
69
+ color = `var(--icon-color-d)`
70
+ break
71
+ case 'm':
72
+ color = `var(--icon-color-m)`
73
+ break
74
+ case 's':
75
+ color = `var(--icon-color-s)`
76
+ break
74
77
  default:
75
- color = `var(--${propsColor})`;
76
- break;
78
+ color = `var(--${propsColor})`
79
+ break
77
80
  }
78
- return color;
81
+ return color
79
82
  },
80
83
  _size() {
81
- let size = null;
84
+ let size = null
82
85
  switch (this.$props.size) {
83
- case "s":
84
- size = `var(--icon-size-s)`;
85
- break;
86
- case "d":
87
- size = `var(--icon-size-base)`;
88
- break;
89
- case "l":
90
- size = `var(--icon-size-l)`;
91
- break;
86
+ case 's':
87
+ size = `var(--icon-size-s)`
88
+ break
89
+ case 'd':
90
+ size = `var(--icon-size-base)`
91
+ break
92
+ case 'l':
93
+ size = `var(--icon-size-l)`
94
+ break
92
95
 
93
96
  default:
94
- break;
97
+ break
95
98
  }
96
- return size;
99
+ return size
97
100
  },
98
101
  iconName() {
99
- let _iconClass = this.$props.iconClass;
100
- if (_iconClass == "meixi") {
101
- return `meixicomponenticonfont ${this.$props.name}`;
102
- } else if (_iconClass == "element") {
103
- return `${this.$props.name}`;
104
- } else if (_iconClass == "other") {
105
- return `${this.$props.name}`;
102
+ let _iconClass = this.$props.iconClass
103
+ if (_iconClass == 'meixi') {
104
+ return `meixicomponenticonfont ${this.$props.name}`
105
+ } else if (_iconClass == 'element') {
106
+ return `${this.$props.name}`
107
+ } else if (_iconClass == 'other') {
108
+ return `${this.$props.name}`
106
109
  }
107
110
  },
108
111
  },
109
112
  methods: {
110
113
  iconClick() {
111
114
  if (this.$props.event) {
112
- this.$emit("iconClick");
115
+ console.log('das')
116
+ this.$emit('iconClick')
113
117
  }
114
118
  },
115
119
  },
116
- };
120
+ }
117
121
  </script>
118
122
 
119
123
  <style lang="less" scoped>
@@ -139,7 +143,7 @@ export default {
139
143
  &:hover {
140
144
  // background: var(--hover-gray);
141
145
  i {
142
- color: var(--color-primary) !important;
146
+ color: var(--color-primary);
143
147
  }
144
148
  }
145
149
  }
@@ -8,7 +8,7 @@
8
8
  :size="`l`"
9
9
  :event="event"
10
10
  @iconClick="iconClick"
11
- style="margin-right: var(--margin-5)"
11
+ style="margin-right: var(--margin-5);"
12
12
  ></base-icon>
13
13
  <span>{{ label }}</span>
14
14
  </div>
@@ -29,8 +29,8 @@
29
29
  textAlign: valueAlign,
30
30
  }"
31
31
  >
32
- {{ value }}</span
33
- >
32
+ {{ value }}
33
+ </span>
34
34
  </el-tooltip>
35
35
 
36
36
  <div
@@ -48,15 +48,15 @@
48
48
 
49
49
  <script>
50
50
  export default {
51
- name: "baseLineInfoItem",
51
+ name: 'baseLineInfoItem',
52
52
  data() {
53
53
  return {
54
54
  isChildren: false,
55
- };
55
+ }
56
56
  },
57
57
  created() {
58
- if (this.$parent.$options.name == "baseLineInfoGroup") {
59
- this.isChildren = true;
58
+ if (this.$parent.$options.name == 'baseLineInfoGroup') {
59
+ this.isChildren = true
60
60
  }
61
61
  },
62
62
  props: {
@@ -81,7 +81,7 @@ export default {
81
81
  },
82
82
  valueAlign: {
83
83
  type: String,
84
- default: "left",
84
+ default: 'left',
85
85
  },
86
86
  labelWidth: {
87
87
  type: Number,
@@ -89,45 +89,45 @@ export default {
89
89
  },
90
90
  computed: {
91
91
  _labelWidth() {
92
- let width = null;
92
+ let width = null
93
93
  if (this.isChildren) {
94
- width = this.$parent.labelWidth;
94
+ width = this.$parent.labelWidth
95
95
  } else {
96
- width = this.$props.labelWidth;
96
+ width = this.$props.labelWidth
97
97
  }
98
- return width;
98
+ return width
99
99
  },
100
100
 
101
101
  slotAlignStyle() {
102
- let value = "";
103
- let align = this.$props.valueAlign;
102
+ let value = ''
103
+ let align = this.$props.valueAlign
104
104
  switch (align) {
105
- case "left":
106
- value = `flex-start`;
107
- break;
108
- case "center":
109
- value = `center`;
110
- break;
111
- case "right":
112
- value = "flex-end";
113
- break;
105
+ case 'left':
106
+ value = `flex-start`
107
+ break
108
+ case 'center':
109
+ value = `center`
110
+ break
111
+ case 'right':
112
+ value = 'flex-end'
113
+ break
114
114
 
115
115
  default:
116
- break;
116
+ break
117
117
  }
118
- return value;
118
+ return value
119
119
  },
120
120
  },
121
121
  methods: {
122
122
  iconClick() {
123
123
  if (this.isChildren) {
124
- this.$emit("infoclickicon");
124
+ this.$emit('infoclickicon')
125
125
  } else {
126
- this.$emit("infoclickicon", this.$props);
126
+ this.$emit('infoclickicon', this.$props)
127
127
  }
128
128
  },
129
129
  },
130
- };
130
+ }
131
131
  </script>
132
132
 
133
133
  <style lang="less" scoped>
@@ -137,7 +137,12 @@ export default {
137
137
  display: flex;
138
138
  align-items: center;
139
139
  flex-flow: row nowrap;
140
+ margin-bottom: var(--margin-4);
140
141
  justify-content: space-between;
142
+
143
+ &:last-of-type {
144
+ margin-bottom: 0px;
145
+ }
141
146
  .infor-label {
142
147
  display: flex;
143
148
  align-items: center;
@@ -148,8 +153,6 @@ export default {
148
153
  }
149
154
  .infor-value {
150
155
  box-sizing: border-box;
151
- padding: var(--padding-5) 0px;
152
- padding-left: var(--padding-5);
153
156
  .infor-value_text {
154
157
  vertical-align: middle;
155
158
  color: var(--font-color-d);
@@ -19,6 +19,7 @@
19
19
  :disabled="disabled"
20
20
  class="popover-button"
21
21
  :type="module ? 'selected' : 'info'"
22
+ @click.stop="iconClick"
22
23
  :class="{ 'is-single': !buttonText && buttonIcon }"
23
24
  >
24
25
  <base-icon
@@ -32,7 +33,7 @@
32
33
  @iconClick="iconClick"
33
34
  :color="module ? 'text-white' : 'd'"
34
35
  ></base-icon>
35
- <span class="inner-span" v-if="buttonText"> {{ buttonText }}</span>
36
+ <span class="inner-span" v-if="buttonText">{{ buttonText }}</span>
36
37
  </el-button>
37
38
  <template slot="reference" v-else>
38
39
  <slot name="popoverReference"></slot>
@@ -42,9 +43,9 @@
42
43
 
43
44
  <script>
44
45
  export default {
45
- name: "basePopoverButton",
46
+ name: 'basePopoverButton',
46
47
  data() {
47
- return {};
48
+ return {}
48
49
  },
49
50
 
50
51
  props: {
@@ -57,17 +58,17 @@ export default {
57
58
  // click/focus/hover/manual
58
59
  trigger: {
59
60
  type: String,
60
- default: "click",
61
+ default: 'click',
61
62
  },
62
63
  // 位置
63
64
  // top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end
64
65
  placement: {
65
- default: "bottom",
66
+ default: 'bottom',
66
67
  type: String,
67
68
  },
68
69
  // button 按钮的大小
69
70
  buttonSize: {
70
- default: "small",
71
+ default: 'small',
71
72
  },
72
73
  // 控制显影的参数
73
74
  value: {
@@ -77,7 +78,7 @@ export default {
77
78
  // button文字内容
78
79
  buttonText: {
79
80
  type: String,
80
- default: "",
81
+ default: '',
81
82
  },
82
83
 
83
84
  // icon的类名
@@ -88,7 +89,7 @@ export default {
88
89
 
89
90
  iconClass: {
90
91
  type: String,
91
- default: "meixi",
92
+ default: 'meixi',
92
93
  },
93
94
 
94
95
  template: {
@@ -99,33 +100,29 @@ export default {
99
100
  computed: {
100
101
  module: {
101
102
  set(val) {
102
- this.$emit("input", val);
103
+ this.$emit('input', val)
103
104
  },
104
105
  get() {
105
- return this.$props.value;
106
+ return this.$props.value
106
107
  },
107
108
  },
108
109
  },
109
110
  methods: {
110
111
  popoverShow() {
111
- this.$emit("popoverShow");
112
+ this.$emit('popoverShow')
112
113
  },
113
114
  popoverHide() {
114
- this.$emit("poporverHide");
115
+ this.$emit('poporverHide')
115
116
  },
116
117
  iconClick() {
117
- this.module = !this.module;
118
+ this.$refs.popover.doShow()
118
119
  },
119
120
  },
120
- };
121
+ }
121
122
  </script>
122
123
 
123
124
  <style lang="less" scoped>
124
- .popover-content {
125
- }
126
125
  .popover-button {
127
- .button-icon {
128
- }
129
126
  /deep/ span {
130
127
  display: flex;
131
128
  align-items: center;
@@ -139,6 +136,5 @@ export default {
139
136
  .is-single {
140
137
  border: none;
141
138
  padding: 7px !important;
142
- background: var(--color-gray-m);
143
139
  }
144
140
  </style>