mali-applet-ui 1.0.78 → 1.0.79
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.
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
@change="handleChangeCheckbox(item)"></ml-checkbox>
|
|
31
31
|
<ml-radio :value="checkIndex" :label="item[useProps.key]" v-else @change="handleChangeRadio"></ml-radio>
|
|
32
32
|
</view>
|
|
33
|
-
<MlTreeIcon @click="e => $emit('click-icon', item, 'prefix')" :info="getPrefixIcon(item)" :key="index"></MlTreeIcon>
|
|
33
|
+
<MlTreeIcon :margin-right="15" @click="e => $emit('click-icon', item, 'prefix')" :info="getPrefixIcon(item)" :key="index"></MlTreeIcon>
|
|
34
34
|
<view class="ml-tree-node__title" @click="handleIntoChildren(item)">
|
|
35
35
|
<view class="nowrap">{{ item[useProps.label] || '' }}</view>
|
|
36
36
|
<view class="ml-tree-node__explain" v-if="item[useProps.explain]">{{ item[useProps.explain] }}</view>
|
|
37
37
|
</view>
|
|
38
38
|
<view class="ml-tree-node__extra">
|
|
39
|
-
<MlTreeIcon @click="e => $emit('click-icon', item, 'suffix')" :info="getSuffixIcon(item)" :key="index"></MlTreeIcon>
|
|
40
|
-
<MlTreeIcon @click="handleIntoChildren(item)" v-if="(item.children && item.children.length) || (lazy && !item.isLeaf)" :info="{ icon: 'arrow-right' }" :key="index"></MlTreeIcon>
|
|
39
|
+
<MlTreeIcon :margin-right="15" @click="e => $emit('click-icon', item, 'suffix')" :info="getSuffixIcon(item)" :key="index"></MlTreeIcon>
|
|
40
|
+
<MlTreeIcon :margin-right="15" @click="handleIntoChildren(item)" v-if="(item.children && item.children.length) || (lazy && !item.isLeaf)" :info="{ icon: 'arrow-right' }" :key="index"></MlTreeIcon>
|
|
41
41
|
</view>
|
|
42
42
|
</view>
|
|
43
43
|
</view>
|
|
@@ -350,7 +350,9 @@ export default {
|
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
.ml-tree-node__extra {
|
|
353
|
-
|
|
353
|
+
display: flex;
|
|
354
|
+
align-items: center;
|
|
355
|
+
padding: 0 0 0 20rpx;
|
|
354
356
|
}
|
|
355
357
|
|
|
356
358
|
&:last-child {
|
|
@@ -11,12 +11,13 @@ export default {
|
|
|
11
11
|
virtualHost: true
|
|
12
12
|
},
|
|
13
13
|
props: {
|
|
14
|
-
info: Object
|
|
14
|
+
info: Object,
|
|
15
|
+
marginRight: Number
|
|
15
16
|
},
|
|
16
17
|
computed: {
|
|
17
18
|
useStyle () {
|
|
18
|
-
const { info } = this
|
|
19
|
-
return `color: ${info?.color}; font-size: ${Number(info?.fontSize)}rpx`
|
|
19
|
+
const { info, marginRight } = this
|
|
20
|
+
return `color: ${info?.color}; font-size: ${Number(info?.fontSize)}rpx; margin-right: ${marginRight}rpx`
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -25,6 +26,5 @@ export default {
|
|
|
25
26
|
<style lang="scss" scoped>
|
|
26
27
|
.ml-tree-node__icon {
|
|
27
28
|
display: inline-flex;
|
|
28
|
-
margin-right: 15rpx;
|
|
29
29
|
}
|
|
30
30
|
</style>
|
package/package.json
CHANGED
package/store/events.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const events = {
|
|
2
|
+
state: {
|
|
3
|
+
eventData: null
|
|
4
|
+
},
|
|
5
|
+
getters: {
|
|
6
|
+
eventData: (state) => state.eventData
|
|
7
|
+
},
|
|
8
|
+
mutations: {
|
|
9
|
+
initEventData (state) {
|
|
10
|
+
state.eventData = null
|
|
11
|
+
},
|
|
12
|
+
setEventData (state, data) {
|
|
13
|
+
state.eventData = data
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default events
|