提交 52b3f3e8 编写于 作者: KK's avatar KK

树视图部件 ui调整

上级 6c2541a5
...@@ -19,7 +19,16 @@ ...@@ -19,7 +19,16 @@
</template> </template>
</ion-list> </ion-list>
<div class="tree-partition tree-partition-bigger" v-if="rootNodes.length > 0"></div> <div class="tree-partition tree-partition-bigger" v-if="rootNodes.length > 0"></div>
<ion-list v-if="viewType != 'DEMOBPICKUPTREEVIEW'"> <!-- 树视图 -->
<ion-list v-if="viewType == 'DEMOBTREEVIEW'">
<template v-for="item in valueNodes">
<ion-item v-if="!item.isNode" :key="item.id">
<ion-label>{{item.text}}</ion-label>
</ion-item>
</template>
</ion-list>
<!-- 树单选 -->
<ion-list v-else-if="viewType == 'DEMOBPICKUPTREEVIEW' && !isSingleSelect">
<template v-for="item in valueNodes"> <template v-for="item in valueNodes">
<ion-item v-if="!item.isNode" :key="item.id"> <ion-item v-if="!item.isNode" :key="item.id">
<ion-checkbox color="secondary" v-if="viewType == 'DEMOBPICKUPTREEVIEW' && !isSingleSelect" :checked="item.checked" :value="item.srfkey" @ionChange="checkboxChange" slot="end"></ion-checkbox> <ion-checkbox color="secondary" v-if="viewType == 'DEMOBPICKUPTREEVIEW' && !isSingleSelect" :checked="item.checked" :value="item.srfkey" @ionChange="checkboxChange" slot="end"></ion-checkbox>
...@@ -27,7 +36,8 @@ ...@@ -27,7 +36,8 @@
</ion-item> </ion-item>
</template> </template>
</ion-list> </ion-list>
<ion-radio-group v-if="viewType == 'DEMOBPICKUPTREEVIEW' && isSingleSelect" :value="selectedValue" > <!-- 树多选 -->
<ion-radio-group v-else-if="viewType == 'DEMOBPICKUPTREEVIEW' && isSingleSelect" :value="selectedValue" >
<template v-for="item in valueNodes"> <template v-for="item in valueNodes">
<ion-item :key="item.id" @click="onSimpleSelChange(item)"> <ion-item :key="item.id" @click="onSimpleSelChange(item)">
<ion-label>{{item.text}}</ion-label> <ion-label>{{item.text}}</ion-label>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册