meixioacomponent 0.2.97 → 0.3.0

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.97",
3
+ "version": "0.3.00",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -8,13 +8,14 @@
8
8
  }"
9
9
  >
10
10
  <div class="item-content" v-if="!isEdit">
11
- <span
11
+ <p
12
12
  v-if="!spContentType"
13
13
  class="content-value"
14
14
  @click="handleClick('content')"
15
15
  :class="[`${config.click ? 'click' : config.color}`]"
16
- >{{ contentValue }}</span
17
16
  >
17
+ {{ contentValue }}
18
+ </p>
18
19
 
19
20
  <!-- 单选框 -->
20
21
  <el-radio-group
@@ -437,6 +438,9 @@ export default {
437
438
  height: auto;
438
439
  position: relative;
439
440
  border-radius: calc(var(--radius) * 2);
441
+ /deep/ .el-form-item__content {
442
+ line-height: inherit;
443
+ }
440
444
  .item-content {
441
445
  display: flex;
442
446
  align-items: center;
@@ -459,7 +463,11 @@ export default {
459
463
  visibility: hidden;
460
464
  }
461
465
  .content-value {
462
- display: inline-block;
466
+ height: 100%;
467
+ overflow: hidden;
468
+ white-space: nowrap;
469
+ width: calc(100% -24px);
470
+ text-overflow: ellipsis;
463
471
  color: var(--font-color-d);
464
472
  font-size: var(--font-size-s);
465
473
  font-weight: var(--font-weight-g);
@@ -110,7 +110,7 @@ export default {
110
110
  async checkValidate() {
111
111
  let refs = this.$refs.proForm;
112
112
  let validateResult = true;
113
- let validate = await refs[i].checkValidate();
113
+ let validate = await refs.checkValidate();
114
114
  validateResult = validate.result;
115
115
  if (!validateResult) {
116
116
  return validateResult;