mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 02:31:43 +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"
|
:component="treeComponent"
|
||||||
:table-config="tableConfig"
|
:table-config="tableConfig"
|
||||||
:tree-tab-config="treeTableConfig"
|
:tree-tab-config="treeTableConfig"
|
||||||
|
:tree-width="treeWidth"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
@@ -117,6 +118,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
treeWidth() {
|
||||||
|
return this.treeSetting.notShowBuiltinTree ? '16%' : '24%'
|
||||||
|
},
|
||||||
treeTableConfig() {
|
treeTableConfig() {
|
||||||
if (this.treeSetting.notShowBuiltinTree) {
|
if (this.treeSetting.notShowBuiltinTree) {
|
||||||
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
||||||
|
@@ -93,7 +93,7 @@ export default {
|
|||||||
},
|
},
|
||||||
treeWidth: {
|
treeWidth: {
|
||||||
type: String,
|
type: String,
|
||||||
default: () => '23.6%'
|
default: () => '24%'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
Reference in New Issue
Block a user