mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 16:32:28 +00:00
Merge pull request #3949 from jumpserver/pr@v4@tree
perf: asset tree type tree width css
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
:component="treeComponent"
|
||||
:table-config="tableConfig"
|
||||
:tree-tab-config="treeTableConfig"
|
||||
:tree-width="treeWidth"
|
||||
v-bind="$attrs"
|
||||
v-on="$listeners"
|
||||
>
|
||||
@@ -117,6 +118,9 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
treeWidth() {
|
||||
return this.treeSetting.notShowBuiltinTree ? '16%' : '24%'
|
||||
},
|
||||
treeTableConfig() {
|
||||
if (this.treeSetting.notShowBuiltinTree) {
|
||||
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
||||
|
@@ -93,7 +93,7 @@ export default {
|
||||
},
|
||||
treeWidth: {
|
||||
type: String,
|
||||
default: () => '23.6%'
|
||||
default: () => '24%'
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
Reference in New Issue
Block a user