设备类型下拉 配置中加入默认是否展开的 配置项

This commit is contained in:
shih
2026-04-22 14:43:22 +08:00
parent a784b0b4c0
commit fe19b233ee
2 changed files with 3 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ interface Column {
placeholder?: string placeholder?: string
textFormatter?: string //回显名称格式化 textFormatter?: string //回显名称格式化
clearable?: boolean clearable?: boolean
defaultExpandAll?: boolean //默认展开所有节点
} }
interface Props { interface Props {
column: Column column: Column
@@ -213,6 +214,7 @@ const treeSblxOption = ref({
multiple: props.column.multiple, multiple: props.column.multiple,
checkStrictly: props.column.checkStrictly, checkStrictly: props.column.checkStrictly,
accordion: props.column.accordion, accordion: props.column.accordion,
defaultExpandAll: props.column.defaultExpandAll || false,
props: { label: 'industryName', value: 'id', childern: 'children' } props: { label: 'industryName', value: 'id', childern: 'children' }
}) })
const treeSblxData = ref<TreeSblx[]>([]) const treeSblxData = ref<TreeSblx[]>([])

View File

@@ -421,6 +421,7 @@ const sblxSelectConfig = [
{ label: '勾选值只保留子节点', value: 'leafOnly', val: false, type: 'switch', dic: dicObj.boolean }, { label: '勾选值只保留子节点', value: 'leafOnly', val: false, type: 'switch', dic: dicObj.boolean },
{ label: '禁用父级勾选', value: 'stopParent', val: false, type: 'switch', dic: dicObj.boolean }, { label: '禁用父级勾选', value: 'stopParent', val: false, type: 'switch', dic: dicObj.boolean },
{ label: '每次只展开一个同级树节点', value: 'accordion', val: false, type: 'switch', dic: dicObj.boolean }, { label: '每次只展开一个同级树节点', value: 'accordion', val: false, type: 'switch', dic: dicObj.boolean },
{ label: '默认展开所有节点', value: 'defaultExpandAll', val: false, type: 'switch', dic: dicObj.boolean },
{ label: '分隔符', value: 'separator', val: ' | ' }, { label: '分隔符', value: 'separator', val: ' | ' },
] ]
} }