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

树调整

上级 cce1471a
...@@ -3,30 +3,35 @@ ...@@ -3,30 +3,35 @@
<#if ctrl.render??> <#if ctrl.render??>
${ctrl.render.code} ${ctrl.render.code}
<#else> <#else>
<mt-tab-container v-if="!isOptional" @input="deleteNode" v-model="active" swipeable> <ion-searchbar></ion-searchbar>
<mt-tab-container-item :id="index" v-for="(nodelist,index) in nodeArray" :key="index"> <div class="treeNav">
<div v-for="(node,index) in nodelist" :key="index"> <template v-for="(item,index) in treeNav">
<mt-cell :title="node.srfmajortext"> <ion-label :key="index" :class="index+1 < treeNav.length? 'treeNav-active':'' ">{{item}}</ion-label>
<van-icon v-if="node.leaf === false" name="wap-nav" @click.native="show(node)"/> <span class="tree-span" :key="index+'span'" v-if="index+1 < treeNav.length">></span>
</mt-cell> </template>
</div> </div>
</mt-tab-container-item> <div class="tree-partition"></div>
</mt-tab-container> <#if ctrl.getPSDETreeNodes?? && ctrl.getPSDETreeNodes()??>
<ion-list>
<van-checkbox-group v-if="isOptional" v-model="checkedList"> <#list ctrl.getPSDETreeNodes() as node>
<mt-tab-container v-model="active" @input="deleteNode" swipeable> <#if node.isRootNode?? && node.isRootNode()?? && node.isRootNode()>
<mt-tab-container-item :id="index" v-for="(nodelist,index) in nodeArray" :key="index"> <#if node.getPSDETreeNodeRSs?? && node.getPSDETreeNodeRSs()??>
<template v-for="(node,index2) in nodelist" > <#list node.getPSDETreeNodeRSs() as nodeitem>
<mt-cell v-if="node.leaf === false" :title="node.text" :key="'cell'+index2" @click.native="show(node)"> <#if nodeitem.getChildPSDETreeNode?? && nodeitem.getChildPSDETreeNode()??>
<van-icon name="wap-nav" /> <#assign nodeitemchild = nodeitem.getChildPSDETreeNode()>
</mt-cell> <#if nodeitemchild.hasPSDETreeNodeRSs?? && nodeitemchild.hasPSDETreeNodeRSs()?? && nodeitemchild.hasPSDETreeNodeRSs()>
<mt-cell v-else :title="node.text" :key="'cell'+index2" @click.native="toggle(node)"> <ion-item>
<van-checkbox :name="node.id"></van-checkbox> <ion-label>${nodeitemchild.getName}</ion-label>
</mt-cell> <ion-icon class="tree-icon" slot="end" name="chevron-forward-outline"></ion-icon>
</template> </ion-item>
</mt-tab-container-item> </#if>
</mt-tab-container> </#if>
</van-checkbox-group> </#list>
</#if>
</#if>
</#list>
</ion-list>
</#if>
</#if> </#if>
</div> </div>
</template> </template>
\ No newline at end of file
...@@ -17,6 +17,14 @@ import { Util } from '@ibiz-core/utils' ...@@ -17,6 +17,14 @@ import { Util } from '@ibiz-core/utils'
*/ */
public treeName = '<#if ctrl.getLogicName?? && ctrl.getLogicName()??>${ctrl.getLogicName()}</#if>' ; public treeName = '<#if ctrl.getLogicName?? && ctrl.getLogicName()??>${ctrl.getLogicName()}</#if>' ;
/**
* 树视图导航数组名称
*
* @type {string[]}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public treeNav = [];
/** /**
* 获取多项数据 * 获取多项数据
* *
......
<#ibizinclude> <#ibizinclude>
../@MACRO/CSS/DEFAULT.less.ftl ../@MACRO/CSS/DEFAULT.less.ftl
</#ibizinclude> </#ibizinclude>
.app-mob-treeview {
.treeNav {
padding-left: 14px;
.treeNav-active {
color: #705697;
}
.tree-span {
padding: 0 3px;
}
}
.tree-partition {
margin-top: 10px;
height: 8px;
background-color: #ededed;
}
.tree-icon{
color: #ccc;
font-size: 20px;
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册