提交 af4c25c1 编写于 作者: RedPing97's avatar RedPing97

优化看板视图分组头

上级 ab0d1aee
...@@ -89,21 +89,23 @@ ${ctrl.render.code} ...@@ -89,21 +89,23 @@ ${ctrl.render.code}
</#if> </#if>
</template> </template>
<template v-else> <template v-else>
<div v-show="!noItemsFolding" class="dataview-group-folading-kanban" @click="()=>{this.noItemsFolding = !this.noItemsFolding}"> <template v-for="(group, index) of groups">
<div class="unfold-icon"> <draggable :key="index" :list="group.items" class="dragbar" ghostClass="dragitems" handle=".dataview-group-item" :group="{name: 'bar', put: group.folding ? false:true}" @change="onDragChange($event,group.name)">
<i class="el-icon-s-unfold" :title="$t('app.kanban.unfold')"></i> <div v-show="!group.folding" class="dataview-group-folading-kanban" @click="onClick(group,index)">
</div> <div class="unfold-icon">
<div class="dataview-group-folding"> <i class="el-icon-s-unfold" :title="$t('app.kanban.unfold')"></i>
<span>{{$t('<#if langbase??>${langbase}.nodata</#if>')}})</span> </div>
</div> <div class="dataview-group-folding">
<span>{{getGroupText(group.value)}}({{group.items.length}})</span>
</div>
</div> </div>
<div v-show="noItemsFolding" class="dataview-group-content dataview-group-kanban" style="<#if ctrl.getGroupWidth() gt 0>width: ${ctrl.getGroupWidth()?c}px;<#else>flex-grow: 1;</#if>"> </draggable>
<div :key="group + index" v-show="group.folding" class="dataview-group-content dataview-group-kanban" style="<#if ctrl.getGroupWidth() gt 0>width: ${ctrl.getGroupWidth()?c}px;<#else>flex-grow: 1;</#if>">
<div class="dataview-group-header<#if ctrl.getGroupPSSysCss()??> ${ctrl.getGroupPSSysCss().getCssName()}</#if>"> <div class="dataview-group-header<#if ctrl.getGroupPSSysCss()??> ${ctrl.getGroupPSSysCss().getCssName()}</#if>">
<div class="fold-icon" @click="()=>{this.noItemsFolding = !this.noItemsFolding}"> <div class="fold-icon" @click="onClick(group,index)">
<i class="el-icon-s-fold" :title="$t('app.kanban.fold')"></i> <i class="el-icon-s-fold" :title="$t('app.kanban.fold')"></i>
</div> </div>
<span class="fold-text"> <span class="fold-text">{{ getGroupText(group.value) }}</span>
</span>
<#if ctrl.getGroupPSUIActionGroup()??> <#if ctrl.getGroupPSUIActionGroup()??>
<Poptip trigger="hover" content="content" placement="bottom-end" style="float: right;"> <Poptip trigger="hover" content="content" placement="bottom-end" style="float: right;">
<Icon type="md-more" /> <Icon type="md-more" />
...@@ -130,6 +132,7 @@ ${ctrl.render.code} ...@@ -130,6 +132,7 @@ ${ctrl.render.code}
</div> </div>
<span class="app-data-empty">{{ $t('<#if langbase??>${langbase}.nodata</#if>') }}</span> <span class="app-data-empty">{{ $t('<#if langbase??>${langbase}.nodata</#if>') }}</span>
</div> </div>
</template>
</template> </template>
</div> </div>
</#if> </#if>
...@@ -284,14 +287,6 @@ draggable, ...@@ -284,14 +287,6 @@ draggable,
*/ */
public isAddBehind:boolean = false; public isAddBehind:boolean = false;
/**
* 没有items时是否折叠
*
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public noItemsFolding:boolean = true;
/** /**
* 选中数组 * 选中数组
* @type {Array<any>} * @type {Array<any>}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册