Merge pull request #3949 from jumpserver/pr@v4@tree

perf: asset tree type tree width css
This commit is contained in:
feng626
2024-05-17 17:45:44 +08:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -93,7 +93,7 @@ export default {
},
treeWidth: {
type: String,
default: () => '23.6%'
default: () => '24%'
}
},
data() {