mali-applet-ui 1.0.114 → 1.0.115

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.
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="ml-list-item-describe">
2
+ <view class="ml-list-item-describe" :class="{'is-ellipsis': ellipsis}">
3
3
  <view class="ml-list-item-describe-left" :class="[titleAlign ? `align-${titleAlign}` : '']" :style="leftStyle">{{ title || '' }}</view>
4
4
  <view class="ml-list-item-describe-content">
5
5
  <view class="ml-list-item-describe-text">
@@ -21,6 +21,10 @@ export default {
21
21
  title: String,
22
22
  titleWidth: String,
23
23
  titleAlign: String,
24
+ ellipsis: {
25
+ type: Boolean,
26
+ default: true
27
+ },
24
28
  content: String
25
29
  },
26
30
  computed: {
@@ -53,21 +57,23 @@ export default {
53
57
  text-align: right;
54
58
  }
55
59
  }
56
- .ml-list-item-describe-content {
57
- flex-grow: 1;
58
- overflow: hidden;
59
- text-overflow: ellipsis;
60
- white-space: nowrap;
61
- word-break: keep-all;
60
+ &.is-ellipsis {
61
+ .ml-list-item-describe-content,
62
62
  .ml-list-item-describe-text {
63
- display: block;
64
- width: 100%;
65
63
  overflow: hidden;
66
64
  text-overflow: ellipsis;
67
65
  white-space: nowrap;
68
66
  word-break: keep-all;
69
67
  }
70
68
  }
69
+ .ml-list-item-describe-content {
70
+ flex-grow: 1;
71
+ white-space: normal;
72
+ .ml-list-item-describe-text {
73
+ display: block;
74
+ width: 100%;
75
+ }
76
+ }
71
77
  .ml-list-item-describe-right {
72
78
  flex-shrink: 0;
73
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.114",
3
+ "version": "1.0.115",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",