mali-applet-ui 1.0.110 → 1.0.112
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.
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
<ml-checkbox v-model="isAllCheckboxChecked" :indeterminate="isAllCheckboxIndeterminate" @change="toggleAllCheckboxEvent">全选</ml-checkbox>
|
|
6
6
|
</view>
|
|
7
7
|
<view v-if="showCheckboxBtn" class="ml-tree-checkbox-btns-right">
|
|
8
|
-
<ml-button size="mini" status="primary" @click="setAllTreeExpand(
|
|
8
|
+
<ml-button v-if="isExpandAll" size="mini" status="primary" @click="setAllTreeExpand(false)">一键收起</ml-button>
|
|
9
|
+
<ml-button v-else size="mini" status="primary" @click="setAllTreeExpand(true)">一键展开</ml-button>
|
|
9
10
|
</view>
|
|
10
11
|
</view>
|
|
11
12
|
<ml-tree-node v-for="(item, index) in treeData" :key="index" :node-data="item"></ml-tree-node>
|
|
@@ -48,6 +49,7 @@ export default {
|
|
|
48
49
|
},
|
|
49
50
|
data () {
|
|
50
51
|
return {
|
|
52
|
+
isExpandAll: false,
|
|
51
53
|
treeData: [],
|
|
52
54
|
isAllCheckboxChecked: false,
|
|
53
55
|
isAllCheckboxIndeterminate: false,
|
|
@@ -256,6 +258,7 @@ export default {
|
|
|
256
258
|
}
|
|
257
259
|
}, { children: childrenField })
|
|
258
260
|
}
|
|
261
|
+
this.isExpandAll = expanded
|
|
259
262
|
this.expandRowKeys = rowKeys
|
|
260
263
|
}
|
|
261
264
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
</view>
|
|
42
42
|
<MlTreeIcon
|
|
43
43
|
:margin-right="15"
|
|
44
|
-
@tap-icon
|
|
44
|
+
@tap-icon="handleClickIcon($event, item)"
|
|
45
45
|
:info="getPrefixIcon(item)"
|
|
46
46
|
/>
|
|
47
47
|
<view class="ml-tree-node__title" :class="{ 'hasExplain': item[useProps.explain] }" @tap.stop="handleIntoChildren(item)">
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
<MlTreeIcon
|
|
53
53
|
:margin-right="15"
|
|
54
54
|
:info="getSuffixIcon(item)"
|
|
55
|
-
@tap-icon
|
|
55
|
+
@tap-icon="handleClickIcon($event, item)"
|
|
56
56
|
/>
|
|
57
57
|
<MlTreeIcon
|
|
58
58
|
v-if="(item.children && item.children.length) || (lazy && !item.isLeaf)"
|
|
59
59
|
:margin-right="15"
|
|
60
60
|
:info="{ icon: 'arrow-right' }"
|
|
61
|
-
@tap-icon
|
|
61
|
+
@tap-icon="handleIntoChildren(item)"
|
|
62
62
|
/>
|
|
63
63
|
</view>
|
|
64
64
|
</view>
|