forked from github/dataease
fix: 数据集tree高度支持参数控制
This commit is contained in:
parent
7be1cde788
commit
1ea046b637
@ -24,7 +24,7 @@
|
||||
<!-- </el-row>-->
|
||||
|
||||
<el-col class="custom-tree-container">
|
||||
<div class="block">
|
||||
<div class="block" :style="treeStyle">
|
||||
<el-tree
|
||||
:default-expanded-keys="expandedArray"
|
||||
:data="data"
|
||||
@ -110,6 +110,11 @@ import { isKettleRunning, post } from '@/api/dataset/dataset'
|
||||
export default {
|
||||
name: 'DatasetGroupSelector',
|
||||
props: {
|
||||
fixHeight: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
customType: {
|
||||
type: Array,
|
||||
required: false,
|
||||
@ -163,7 +168,11 @@ export default {
|
||||
name: '',
|
||||
sort: 'type asc,create_time desc,name asc'
|
||||
},
|
||||
dsLoading: false
|
||||
dsLoading: false,
|
||||
treeStyle: this.fixHeight ? {
|
||||
height: '200px',
|
||||
overflow: 'auto'
|
||||
} : {}
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
|
@ -92,7 +92,7 @@
|
||||
width="500"
|
||||
trigger="click"
|
||||
>
|
||||
<dataset-group-selector show-mode="union" :custom-type="customType" :mode="1" @getTable="getTable" />
|
||||
<dataset-group-selector :fix-height="true" show-mode="union" :custom-type="customType" :mode="1" @getTable="getTable" />
|
||||
<el-button slot="reference" size="mini" style="width: 100%;">
|
||||
<p class="table-name-css" :title="targetTable.name || $t('dataset.pls_slc_union_table')">{{ targetTable.name || $t('dataset.pls_slc_union_table') }}</p>
|
||||
</el-button>
|
||||
|
Loading…
Reference in New Issue
Block a user