mali-applet-ui 1.0.60 → 1.0.62
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.
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
<view class="ml-chunk-item" :class="[className || '', span && !width ? `span-${span}` : '', itemAlign ? `align-${itemAlign}` : '', {'is-fixed': span || width, 'is-vertical': isVertical}]" :style="styles" @click="clickEvent" @tap="tapEvent">
|
|
3
3
|
<slot>
|
|
4
4
|
<view class="ml-chunk-item-num">
|
|
5
|
-
<ml-amount-text v-if="type === 'amount'" :value="value" :simplify="simplify" />
|
|
6
|
-
<text v-else>{{ currNum }}</text>
|
|
5
|
+
<ml-amount-text v-if="type === 'amount'" :value="value" :simplify="simplify" :status="status" />
|
|
6
|
+
<ml-text v-else :status="status">{{ currNum }}</ml-text>
|
|
7
|
+
</view>
|
|
8
|
+
<view class="ml-chunk-item-name" @click="titleEvent">
|
|
9
|
+
<slot name="title">
|
|
10
|
+
<ml-text :underline="titleUnderline">{{ title || '' }}</ml-text>
|
|
11
|
+
<text v-if="titleUnit">{{ titleUni || '' }}</text>
|
|
12
|
+
</slot>
|
|
7
13
|
</view>
|
|
8
|
-
<view class="ml-chunk-item-name">{{ title || '' }}</view>
|
|
9
14
|
</slot>
|
|
10
15
|
</view>
|
|
11
16
|
</template>
|
|
@@ -23,12 +28,15 @@ export default {
|
|
|
23
28
|
amount: [String, Number],
|
|
24
29
|
simplify: Boolean,
|
|
25
30
|
type: String,
|
|
31
|
+
status: String,
|
|
26
32
|
span: [String, Number],
|
|
27
33
|
url: String,
|
|
28
34
|
redirect: Boolean,
|
|
29
35
|
align: String,
|
|
30
36
|
width: String,
|
|
31
37
|
title: String,
|
|
38
|
+
titleUnderline: Boolean,
|
|
39
|
+
titleUnit: String,
|
|
32
40
|
className: String
|
|
33
41
|
},
|
|
34
42
|
inject: {
|
|
@@ -72,6 +80,9 @@ export default {
|
|
|
72
80
|
}
|
|
73
81
|
this.$emit('tap', {})
|
|
74
82
|
this.$emit('click', {})
|
|
83
|
+
},
|
|
84
|
+
titleEvent () {
|
|
85
|
+
this.$emit('title-click', {})
|
|
75
86
|
}
|
|
76
87
|
}
|
|
77
88
|
}
|
|
@@ -127,6 +138,7 @@ export default {
|
|
|
127
138
|
overflow: hidden;
|
|
128
139
|
text-overflow: ellipsis;
|
|
129
140
|
white-space: nowrap;
|
|
141
|
+
font-size: $ml-describe-font-size;
|
|
130
142
|
}
|
|
131
143
|
}
|
|
132
144
|
</style>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="ml-list-item-describe">
|
|
3
|
-
<view class="ml-list-item-describe-left">{{ title || '' }}</view>
|
|
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
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
5
|
+
<view class="ml-list-item-describe-text">
|
|
6
|
+
<slot>
|
|
7
|
+
<text>{{ content || '' }}</text>
|
|
8
|
+
</slot>
|
|
9
|
+
</view>
|
|
8
10
|
</view>
|
|
9
11
|
<view class="ml-list-item-describe-right">
|
|
10
12
|
<slot name="extra"></slot>
|
|
@@ -17,7 +19,15 @@ export default {
|
|
|
17
19
|
name: 'MlListItemDescribe',
|
|
18
20
|
props: {
|
|
19
21
|
title: String,
|
|
22
|
+
titleWidth: String,
|
|
23
|
+
titleAlign: String,
|
|
20
24
|
content: String
|
|
25
|
+
},
|
|
26
|
+
computed: {
|
|
27
|
+
leftStyle () {
|
|
28
|
+
const wSy = this.titleWidth ? `width: ${this.titleWidth};` : ''
|
|
29
|
+
return `${wSy}`
|
|
30
|
+
}
|
|
21
31
|
}
|
|
22
32
|
}
|
|
23
33
|
</script>
|
|
@@ -33,12 +43,30 @@ export default {
|
|
|
33
43
|
padding: 4rpx 0;
|
|
34
44
|
.ml-list-item-describe-left {
|
|
35
45
|
flex-shrink: 0;
|
|
46
|
+
&.align-left {
|
|
47
|
+
text-align: left;
|
|
48
|
+
}
|
|
49
|
+
&.align-center {
|
|
50
|
+
text-align: center;
|
|
51
|
+
}
|
|
52
|
+
&.align-right {
|
|
53
|
+
text-align: right;
|
|
54
|
+
}
|
|
36
55
|
}
|
|
37
56
|
.ml-list-item-describe-content {
|
|
38
57
|
flex-grow: 1;
|
|
39
58
|
overflow: hidden;
|
|
40
59
|
text-overflow: ellipsis;
|
|
41
60
|
white-space: nowrap;
|
|
61
|
+
word-break: keep-all;
|
|
62
|
+
.ml-list-item-describe-text {
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
word-break: keep-all;
|
|
69
|
+
}
|
|
42
70
|
}
|
|
43
71
|
.ml-list-item-describe-right {
|
|
44
72
|
flex-shrink: 0;
|