Merge pull request '树形列表使用第一列为展开列' (#2) from gfastVip/gfast-mandate:master into master

Reviewed-on: https://git.qjit.cn/gfast-plugins/gfast-mandate/pulls/2
This commit is contained in:
易小虎 2024-03-26 17:47:12 +08:00
commit e3b1b0fe34

View File

@ -4,6 +4,7 @@
{{$treeParentCode := .table.TreeParentCode}}
{{$treeCode := .table.TreeCode}}
{{$treeName := .table.TreeName}}
{{$firstColumn := index .table.ListColumns 0 }}
<div class="{{.table.ModuleName}}-{{.table.BusinessName|CaseCamelLower}}-container">
<el-card shadow="hover">
@ -716,7 +717,7 @@ export default defineComponent({
treeData.value = list
}
//=============================================================================================================
const expandColumnKey = '{{$treeCode}}'
const expandColumnKey = '{{$firstColumn.HtmlField}}'
const expandedRowKeys = ref<string[]>([])