meixioacomponent 0.3.42 → 0.3.44

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.
@@ -11513,7 +11513,7 @@
11513
11513
  resize: vertical;
11514
11514
  padding: var(--padding-2) var(--padding-3);
11515
11515
  line-height: 1.5;
11516
- border: 0px !important;
11516
+ border: 2px solid var(--color-gray-d) !important;
11517
11517
  -webkit-box-sizing: border-box;
11518
11518
  box-sizing: border-box;
11519
11519
  width: 100%;
@@ -11527,6 +11527,10 @@
11527
11527
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
11528
11528
  }
11529
11529
 
11530
+ .el-textarea__inner:hover {
11531
+ border-color: var(--color-primary) !important;
11532
+ }
11533
+
11530
11534
  .el-textarea__inner::-webkit-input-placeholder {
11531
11535
  color: #8f959e;
11532
11536
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.3.42",
3
+ "version": "0.3.44",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -84,21 +84,20 @@
84
84
  v-model="showModule"
85
85
  placeholder="请选择地区"
86
86
  :suffix-icon="suffixIcon"
87
- >
88
- </el-input>
87
+ ></el-input>
89
88
  </div>
90
89
  </el-popover>
91
90
  </div>
92
91
  </template>
93
92
 
94
93
  <script>
95
- import { json } from "body-parser";
96
- import baseButtonHandleVue from "../baseButtonHandle/baseButtonHandle.vue";
94
+ import { json } from 'body-parser'
95
+ import baseButtonHandleVue from '../baseButtonHandle/baseButtonHandle.vue'
97
96
  //
98
- import areaJson from "./area";
99
- import areaConfig from "./areaConfig";
97
+ import areaJson from './area'
98
+ import areaConfig from './areaConfig'
100
99
  export default {
101
- name: "baseArea",
100
+ name: 'baseArea',
102
101
  data() {
103
102
  return {
104
103
  // 是否打开了选择器
@@ -113,10 +112,10 @@ export default {
113
112
  activeIndex: 0,
114
113
  // 是否回显过数据
115
114
  isReview: false,
116
- };
115
+ }
117
116
  },
118
117
  created() {
119
- this.init();
118
+ this.init()
120
119
  },
121
120
 
122
121
  props: {
@@ -135,103 +134,103 @@ export default {
135
134
  computed: {
136
135
  module: {
137
136
  set(val) {
138
- this.$emit("input", val);
137
+ this.$emit('input', val)
139
138
  },
140
139
  get() {
141
- return this.$props.value;
140
+ return this.$props.value
142
141
  },
143
142
  },
144
143
 
145
144
  suffixIcon() {
146
145
  if (this.isOpen) {
147
- return "el-icon-arrow-up";
146
+ return 'el-icon-arrow-up'
148
147
  } else {
149
- return "el-icon-arrow-down";
148
+ return 'el-icon-arrow-down'
150
149
  }
151
150
  },
152
151
  baseTimeTypeConfig() {
153
- return baseTimeTypeConfig;
152
+ return baseTimeTypeConfig
154
153
  },
155
154
  showModule() {
156
155
  if (this.areaValue.length > 0) {
157
- let text = "";
156
+ let text = ''
158
157
  this.areaValue.forEach((item) => {
159
158
  if (item.label) {
160
- let value = text ? ` / ${item.label}` : item.label;
161
- text += `${value}`;
159
+ let value = text ? ` / ${item.label}` : item.label
160
+ text += `${value}`
162
161
  }
163
- });
164
- return text;
162
+ })
163
+ return text
165
164
  }
166
- return null;
165
+ return null
167
166
  },
168
167
  areaJson() {
169
- return areaJson;
168
+ return areaJson
170
169
  },
171
170
  activeProvince() {
172
171
  if (this.areaValue.length > 0) {
173
- return this.areaValue[0].label;
172
+ return this.areaValue[0].label
174
173
  }
175
- return null;
174
+ return null
176
175
  },
177
176
  activeArea() {
178
177
  if (this.areaValue.length > 1) {
179
- return this.areaValue[this.activeIndex]?.label;
178
+ return this.areaValue[this.activeIndex]?.label
180
179
  }
181
- return null;
180
+ return null
182
181
  },
183
182
  areaList() {
184
183
  if (this.activeObj && this.activeObj.children.length > 0) {
185
- return this.activeObj.children;
184
+ return this.activeObj.children
186
185
  }
187
- return [];
186
+ return []
188
187
  },
189
188
  },
190
189
  methods: {
191
190
  init() {
192
191
  if (this.module && this.module instanceof Object) {
193
192
  for (let i = 0; i < areaConfig.length; i++) {
194
- let item = areaConfig[i];
195
- let value = this.module[`${item.value}`];
193
+ let item = areaConfig[i]
194
+ let value = this.module[`${item.value}`]
196
195
  this.$set(this.areaValue, i, {
197
196
  label: value,
198
197
  pre: null,
199
- });
198
+ })
200
199
  }
201
200
  }
202
201
  },
203
202
  eventShow() {
204
- this.isOpen = true;
203
+ this.isOpen = true
205
204
  if (!this.isReview) {
206
- this.review();
205
+ this.review()
207
206
  }
208
- this.setHandleConfig();
209
- this.scrollToProvince();
207
+ this.setHandleConfig()
208
+ this.scrollToProvince()
210
209
  },
211
210
  setHandleConfig() {
212
- console.log(this.$props.value);
211
+ console.log(this.$props.value)
213
212
  this.handleConfig = [
214
213
  {
215
- type: "info",
216
- text: this.module ? "清空" : "取消",
214
+ type: 'info',
215
+ text: this.module ? '清空' : '取消',
217
216
  plain: false,
218
217
  click: () => {
219
218
  if (!this.module) {
220
- this.cancelValue();
219
+ this.cancelValue()
221
220
  } else {
222
- this.cancelValue();
223
- this.module = null;
221
+ this.cancelValue()
222
+ this.module = null
224
223
  }
225
224
  },
226
225
  },
227
226
  {
228
- type: "primary",
229
- text: "确定",
227
+ type: 'primary',
228
+ text: '确定',
230
229
  click: () => {
231
- this.confirmValue();
230
+ this.confirmValue()
232
231
  },
233
232
  },
234
- ];
233
+ ]
235
234
  },
236
235
 
237
236
  review() {
@@ -240,165 +239,165 @@ export default {
240
239
  this.areaValue.forEach((item, index) => {
241
240
  if (index == 0) {
242
241
  let cindex = areaJson.findIndex((citem) => {
243
- return citem.label == item.label;
244
- });
242
+ return citem.label == item.label
243
+ })
245
244
 
246
- this.checkProvince(areaJson[cindex]);
245
+ this.checkProvince(areaJson[cindex])
247
246
  } else {
248
247
  //console.log("else");
249
248
  //console.log(this.activeObj);
250
249
  if (this.activeObj && this.activeObj.children.length > 0) {
251
250
  let cindex = this.activeObj.children.findIndex((citem) => {
252
- return item.label == citem.label;
253
- });
251
+ return item.label == citem.label
252
+ })
254
253
 
255
- this.checkArea(this.activeObj.children[cindex]);
254
+ this.checkArea(this.activeObj.children[cindex])
256
255
  }
257
256
  }
258
- });
257
+ })
259
258
 
260
- this.isReview = true;
259
+ this.isReview = true
261
260
  },
262
261
 
263
262
  eventHide() {
264
- this.isOpen = false;
265
- this.cancelValue();
263
+ this.isOpen = false
264
+ this.cancelValue()
266
265
  },
267
266
 
268
267
  openSelectWrap() {
269
- if (this.$props.disable) return;
270
- this.isOpen = !this.isOpen;
268
+ if (this.$props.disable) return
269
+ this.isOpen = !this.isOpen
271
270
  },
272
271
  // 选择省份
273
272
  checkProvince(province) {
274
- this.activeIndex = 0;
275
- this.areaValue = [];
273
+ this.activeIndex = 0
274
+ this.areaValue = []
276
275
  this.$set(this.areaValue, 0, {
277
276
  label: province.label,
278
277
  pre: null,
279
278
  value: province.value,
280
- });
279
+ })
281
280
 
282
281
  if (province.children.length > 0) {
283
- this.activeObj = province;
284
- this.activeIndex += 1;
282
+ this.activeObj = province
283
+ this.activeIndex += 1
285
284
  }
286
- this.isReview = true;
285
+ this.isReview = true
287
286
  },
288
287
  // 选择地区
289
288
  checkArea(area) {
290
289
  if (!area) {
291
- this.isReview = true;
292
- return;
290
+ this.isReview = true
291
+ return
293
292
  }
294
293
 
295
- let pre = this.areaValue[this.activeIndex];
294
+ let pre = this.areaValue[this.activeIndex]
296
295
  if (!pre) {
297
296
  this.$set(this.areaValue, this.activeIndex, {
298
297
  label: area.label,
299
298
  pre: this.activeObj,
300
299
  value: area.value,
301
- });
300
+ })
302
301
  } else {
303
- pre.label = area.label;
302
+ pre.label = area.label
304
303
  }
305
304
 
306
305
  if (area.children) {
307
- this.activeObj = area;
308
- this.activeIndex += 1;
306
+ this.activeObj = area
307
+ this.activeIndex += 1
309
308
  }
310
- this.isReview = true;
309
+ this.isReview = true
311
310
  },
312
311
 
313
312
  // 返回
314
313
  backArea() {
315
314
  //console.log(this.activeIndex);
316
315
  //console.log(this.areaValue);
317
- let currentArea = this.areaValue[this.activeIndex - 1];
318
- this.areaValue.splice(this.activeIndex, 1);
319
- this.activeIndex -= 1;
316
+ let currentArea = this.areaValue[this.activeIndex - 1]
317
+ this.areaValue.splice(this.activeIndex, 1)
318
+ this.activeIndex -= 1
320
319
  if (currentArea.pre) {
321
- this.activeObj = currentArea.pre;
320
+ this.activeObj = currentArea.pre
322
321
  }
323
322
  },
324
323
 
325
324
  deleteCheck() {
326
325
  if (this.activeIndex == 1) {
327
- this.areaValue.splice(this.activeIndex, 1);
326
+ this.areaValue.splice(this.activeIndex, 1)
328
327
  } else {
329
- this.backArea();
328
+ this.backArea()
330
329
  }
331
330
  },
332
331
 
333
332
  cancelValue() {
334
333
  if (!this.module) {
335
- this.areaValue = [];
334
+ this.areaValue = []
336
335
  } else {
337
- this.init();
336
+ this.init()
338
337
  // this.module = null;
339
- this.isReview = false;
338
+ this.isReview = false
340
339
  }
341
- this.doClose();
340
+ this.doClose()
342
341
  },
343
342
 
344
343
  confirmValue() {
345
- let value = {};
346
- let valueId = [];
344
+ let value = {}
345
+ let valueId = []
347
346
  for (let i = 0; i < this.areaValue.length; i++) {
348
- const item = this.areaValue[i];
349
- const flag = i == this.areaValue.length - 1;
350
- value[`${areaConfig[i].value}`] = item.label;
351
- valueId.push(item.value);
347
+ const item = this.areaValue[i]
348
+ const flag = i == this.areaValue.length - 1
349
+ value[`${areaConfig[i].value}`] = item.label
350
+ valueId.push(item.value)
352
351
  }
353
- value.idList = valueId;
354
- if (JSON.stringify(value) != "{}") {
355
- this.module = value;
352
+ value.idList = valueId
353
+ if (JSON.stringify(value) != '{}') {
354
+ this.module = value
356
355
  }
357
356
  this.$nextTick(() => {
358
- if (this.$parent.$options._componentTag == "el-form-item") {
359
- this.$emit("confirmAreaValue");
357
+ if (this.$parent.$options._componentTag == 'el-form-item') {
358
+ this.$emit('confirmAreaValue')
360
359
  } else {
361
- this.$emit("confirmAreaValue", value);
362
- this.doClose();
360
+ this.$emit('confirmAreaValue', value)
361
+ this.doClose()
363
362
  }
364
- });
363
+ })
365
364
  },
366
365
 
367
366
  doClose() {
368
- this.$refs.popover.doClose();
367
+ this.$refs.popover.doClose()
369
368
  },
370
369
 
371
370
  // 滚动到指定位置
372
371
  scrollToProvince() {
373
372
  if (this.areaValue.length > 0) {
374
- let index = 0;
375
- let label = this.areaValue[0].label;
373
+ let index = 0
374
+ let label = this.areaValue[0].label
376
375
  for (let i = 0; i < areaJson.length; i++) {
377
- let item = areaJson[i];
376
+ let item = areaJson[i]
378
377
  if (item.label == label) {
379
- index = i;
380
- break;
378
+ index = i
379
+ break
381
380
  }
382
381
  }
383
- let refs = this.$refs.middleLeft;
382
+ let refs = this.$refs.middleLeft
384
383
  this.$nextTick(() => {
385
- refs.scrollTop = refs.childNodes[index].offsetTop - refs.clientHeight;
386
- });
384
+ refs.scrollTop = refs.childNodes[index].offsetTop - refs.clientHeight
385
+ })
387
386
  }
388
387
  },
389
388
  },
390
389
  watch: {
391
390
  module(newVal, oldVal) {
392
391
  if (!newVal) {
393
- this.areaValue = [];
394
- return;
392
+ this.areaValue = []
393
+ return
395
394
  }
396
- if (this.$parent.$options._componentTag == "el-form-item") {
397
- this.init();
395
+ if (this.$parent.$options._componentTag == 'el-form-item') {
396
+ this.init()
398
397
  }
399
398
  },
400
399
  },
401
- };
400
+ }
402
401
  </script>
403
402
 
404
403
  <style lang="less" scoped>
@@ -429,7 +428,9 @@ export default {
429
428
  .area-select-content {
430
429
  width: 400px;
431
430
  height: 300px;
431
+ box-sizing: border-box;
432
432
  background: var(--bg-white);
433
+ padding: 0px var(--padding-4);
433
434
  .content-title {
434
435
  width: 100%;
435
436
  height: 40px;
@@ -26,18 +26,18 @@
26
26
  </template>
27
27
 
28
28
  <script>
29
- import baseLineInfoItemVue from "../baseLineInfoItem/baseLineInfoItem.vue";
29
+ import baseLineInfoItemVue from '../baseLineInfoItem/baseLineInfoItem.vue'
30
30
  //
31
- import { ArrayChunk } from "../../../utils/utils";
31
+ import { ArrayChunk } from '../../../utils/utils'
32
32
  export default {
33
- name: "baseLineInfoGroup",
33
+ name: 'baseLineInfoGroup',
34
34
  data() {
35
35
  return {
36
36
  labelWidth: null,
37
- };
37
+ }
38
38
  },
39
39
  created() {
40
- this.init();
40
+ this.init()
41
41
  },
42
42
  components: {
43
43
  baseLineInfoItemVue,
@@ -45,7 +45,7 @@ export default {
45
45
  props: {
46
46
  valueAlign: {
47
47
  type: String,
48
- default: "left",
48
+ default: 'left',
49
49
  },
50
50
  lineNumber: {
51
51
  type: Number,
@@ -58,25 +58,24 @@ export default {
58
58
  },
59
59
  computed: {
60
60
  mountedList() {
61
- return ArrayChunk(this.$props.infoList, this.$props.lineNumber);
61
+ return ArrayChunk(this.$props.infoList, this.$props.lineNumber)
62
62
  },
63
63
  },
64
64
  methods: {
65
65
  init() {
66
- let _inforList = this.$props.infoList;
66
+ let _inforList = this.$props.infoList
67
67
  _inforList.forEach((item, index) => {
68
- let width = item.label.length * 14 + (item.icon ? 42 : 0);
68
+ let width = item.label.length * 14 + (item.icon ? 42 : 0)
69
69
  if (this.labelWidth < width) {
70
- this.labelWidth = width;
70
+ this.labelWidth = width
71
71
  }
72
- });
73
- //console.log(this.labelWidth);
72
+ })
74
73
  },
75
74
  infoclickicon(item) {
76
- this.$emit("infoclickicon", item);
75
+ this.$emit('infoclickicon', item)
77
76
  },
78
77
  },
79
- };
78
+ }
80
79
  </script>
81
80
 
82
81
  <style lang="less" scoped>
@@ -88,6 +87,10 @@ export default {
88
87
  align-items: center;
89
88
  flex-flow: row nowrap;
90
89
  justify-content: flex-start;
90
+ margin-bottom: calc(var(--margin-4) * 2);
91
+ &:last-of-type {
92
+ margin-bottom: 0px;
93
+ }
91
94
  }
92
95
  }
93
96
  </style>
@@ -18,10 +18,10 @@
18
18
  >
19
19
  <el-tooltip
20
20
  effect="dark"
21
- placement="top"
22
21
  v-if="!useSlot"
23
22
  :content="`${value}`"
24
23
  :visible-arrow="false"
24
+ :placement="tooltipPlacement"
25
25
  >
26
26
  <span
27
27
  class="infor-value_text"
@@ -117,6 +117,26 @@ export default {
117
117
  }
118
118
  return value
119
119
  },
120
+
121
+ tooltipPlacement() {
122
+ let value = ''
123
+ let align = this.$props.valueAlign
124
+ switch (align) {
125
+ case 'left':
126
+ value = `top-start`
127
+ break
128
+ case 'center':
129
+ value = `top`
130
+ break
131
+ case 'right':
132
+ value = 'top-end'
133
+ break
134
+
135
+ default:
136
+ break
137
+ }
138
+ return value
139
+ },
120
140
  },
121
141
  methods: {
122
142
  iconClick() {
@@ -4,6 +4,7 @@
4
4
  <baseUploadItemVue
5
5
  :key="index"
6
6
  :type="`img`"
7
+ :isGroup="true"
7
8
  :uploadItem="item"
8
9
  v-for="(item, index) in module"
9
10
  @handleDeleteUploadItem="handleDeleteUploadItem(index)"
@@ -12,6 +13,7 @@
12
13
  :type="`upload`"
13
14
  v-show="!isMax"
14
15
  ref="itemUpload"
16
+ :isGroup="true"
15
17
  :fileType="fileType"
16
18
  :uploadType="`multiple`"
17
19
  @inputChange="inputChange"
@@ -24,20 +26,21 @@
24
26
  </template>
25
27
 
26
28
  <script>
27
- import baseSkeletonVue from "../baseSkeleton/baseSkeleton.vue";
28
- import baseUploadItemVue from "./baseUploadItem.vue";
29
+ import baseSkeletonVue from '../baseSkeleton/baseSkeleton.vue'
30
+ import baseUploadItemVue from './baseUploadItem.vue'
29
31
  //
30
- import { baseUploadMixins } from "./mixins";
32
+ import { baseUploadMixins } from './mixins'
31
33
  export default {
32
- name: "baseUpload",
34
+ name: 'baseUpload',
33
35
  data() {
34
36
  return {
37
+ isGroup: true,
35
38
  uploadLoading: false,
36
- };
39
+ }
37
40
  },
38
41
  beforeDestroy() {
39
42
  if (this.dynamicmount) {
40
- this.uploadEd();
43
+ this.uploadEd()
41
44
  }
42
45
  },
43
46
  mixins: [baseUploadMixins],
@@ -48,7 +51,7 @@ export default {
48
51
  props: {
49
52
  textNotic: {
50
53
  type: String,
51
- default: "点击+上传图片",
54
+ default: '点击+上传图片',
52
55
  },
53
56
  max: {
54
57
  type: Number,
@@ -60,25 +63,25 @@ export default {
60
63
  },
61
64
  fileType: {
62
65
  type: String,
63
- default: "img",
66
+ default: 'img',
64
67
  },
65
68
  },
66
69
  computed: {
67
70
  module: {
68
71
  set(val) {
69
- this.$emit("input", val);
72
+ this.$emit('input', val)
70
73
  },
71
74
  get() {
72
- return this.$props.value;
75
+ return this.$props.value
73
76
  },
74
77
  },
75
78
  },
76
79
  methods: {
77
80
  handleDeleteUploadItem(index) {
78
- this.module.splice(index, 1);
81
+ this.module.splice(index, 1)
79
82
  },
80
83
  },
81
- };
84
+ }
82
85
  </script>
83
86
 
84
87
  <style lang="less" scoped>