mali-applet-ui 1.0.61 → 1.0.63
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,12 +2,13 @@
|
|
|
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
7
|
</view>
|
|
8
8
|
<view class="ml-chunk-item-name" @click="titleEvent">
|
|
9
9
|
<slot name="title">
|
|
10
|
-
<text>{{ title || '' }}</text>
|
|
10
|
+
<ml-text :underline="titleUnderline">{{ title || '' }}</ml-text>
|
|
11
|
+
<text v-if="titleUnit">{{ titleUni || '' }}</text>
|
|
11
12
|
</slot>
|
|
12
13
|
</view>
|
|
13
14
|
</slot>
|
|
@@ -27,12 +28,15 @@ export default {
|
|
|
27
28
|
amount: [String, Number],
|
|
28
29
|
simplify: Boolean,
|
|
29
30
|
type: String,
|
|
31
|
+
status: String,
|
|
30
32
|
span: [String, Number],
|
|
31
33
|
url: String,
|
|
32
34
|
redirect: Boolean,
|
|
33
35
|
align: String,
|
|
34
36
|
width: String,
|
|
35
37
|
title: String,
|
|
38
|
+
titleUnderline: Boolean,
|
|
39
|
+
titleUnit: String,
|
|
36
40
|
className: String
|
|
37
41
|
},
|
|
38
42
|
inject: {
|
|
@@ -134,6 +138,7 @@ export default {
|
|
|
134
138
|
overflow: hidden;
|
|
135
139
|
text-overflow: ellipsis;
|
|
136
140
|
white-space: nowrap;
|
|
141
|
+
font-size: $ml-describe-font-size;
|
|
137
142
|
}
|
|
138
143
|
}
|
|
139
144
|
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
<view class="ml-list-item-describe-text">
|
|
6
6
|
<slot>
|
|
@@ -19,7 +19,15 @@ export default {
|
|
|
19
19
|
name: 'MlListItemDescribe',
|
|
20
20
|
props: {
|
|
21
21
|
title: String,
|
|
22
|
+
titleWidth: String,
|
|
23
|
+
titleAlign: String,
|
|
22
24
|
content: String
|
|
25
|
+
},
|
|
26
|
+
computed: {
|
|
27
|
+
leftStyle () {
|
|
28
|
+
const wSy = this.titleWidth ? `width: ${this.titleWidth};` : ''
|
|
29
|
+
return `${wSy}`
|
|
30
|
+
}
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
33
|
</script>
|
|
@@ -35,6 +43,15 @@ export default {
|
|
|
35
43
|
padding: 4rpx 0;
|
|
36
44
|
.ml-list-item-describe-left {
|
|
37
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
|
+
}
|
|
38
55
|
}
|
|
39
56
|
.ml-list-item-describe-content {
|
|
40
57
|
flex-grow: 1;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="ml-tree" :class="[className || '']">
|
|
3
|
+
</view>
|
|
4
|
+
</template>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import XEUtils from 'xe-utils'
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
name: 'MlTree',
|
|
11
|
+
props: {
|
|
12
|
+
value: Array
|
|
13
|
+
},
|
|
14
|
+
methods: {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<style lang="scss">
|
|
20
|
+
</style>
|