mali-applet-ui 1.0.78 → 1.0.80
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,25 @@
|
|
|
1
|
+
const events = {
|
|
2
|
+
state: {
|
|
3
|
+
// 全局临时事件参数,用于跨页面跳交互时临时通讯使用
|
|
4
|
+
eventData: null,
|
|
5
|
+
// 全局resize事件
|
|
6
|
+
globalResize: null
|
|
7
|
+
},
|
|
8
|
+
getters: {
|
|
9
|
+
eventData: (state) => state.eventData,
|
|
10
|
+
globalResize: (state) => state.globalResize
|
|
11
|
+
},
|
|
12
|
+
mutations: {
|
|
13
|
+
setEvent (state, evnt) {
|
|
14
|
+
state[`global${evnt.type.slice(0, 1).toUpperCase()}${evnt.type.slice(1)}`] = evnt
|
|
15
|
+
},
|
|
16
|
+
initEventData (state) {
|
|
17
|
+
state.eventData = null
|
|
18
|
+
},
|
|
19
|
+
setEventData (state, data) {
|
|
20
|
+
state.eventData = data
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default events
|