refactor(web): 优化 tab 显示性能

This commit is contained in:
2023-06-01 10:46:15 +08:00
parent f6c0d53abf
commit 001e8d3e5f
2 changed files with 4 additions and 6 deletions

View File

@@ -5,7 +5,6 @@ function yarnClusterTab() {
{ {
type: 'tabs', type: 'tabs',
mountOnEnter: true, mountOnEnter: true,
unmountOnExit: true,
tabsMode: 'line', tabsMode: 'line',
tabs: [ tabs: [
{ {
@@ -14,10 +13,10 @@ function yarnClusterTab() {
yarnQueueCrud('b1,b5,b5-sync,a4,b4') yarnQueueCrud('b1,b5,b5-sync,a4,b4')
], ],
}, },
yarnTab('b1', '压缩 b1', 'datalake,tyly'), yarnTab('b1', 'b1', 'datalake,tyly'),
yarnTab('a4', '压缩 a4'), yarnTab('a4', 'a4'),
yarnTab('b4', '压缩 b4'), yarnTab('b4', 'b4'),
yarnTab('b5', '压缩 b5', 'ten_iap.datalake'), yarnTab('b5', 'b5', 'ten_iap.datalake'),
] ]
} }
] ]

View File

@@ -52,7 +52,6 @@
body: { body: {
type: 'tabs', type: 'tabs',
mountOnEnter: true, mountOnEnter: true,
unmountOnExit: true,
tabsMode: 'strong', tabsMode: 'strong',
tabs: [ tabs: [
// logTab(), // logTab(),