tabs: test tabs perfs without DOM detach (#589)
This commit is contained in:
parent
483a991d6f
commit
c3b9563adf
1 changed files with 2 additions and 2 deletions
|
|
@ -38,14 +38,14 @@ module.exports = class Tab extends Panel {
|
|||
|
||||
hide() {
|
||||
if (this.detached) return
|
||||
this.container.removeChild(this.widget)
|
||||
// this.container.removeChild(this.widget)
|
||||
this.container.classList.remove('show')
|
||||
this.detached = true
|
||||
|
||||
}
|
||||
show() {
|
||||
if (!this.detached) return
|
||||
this.container.appendChild(this.widget)
|
||||
// this.container.appendChild(this.widget)
|
||||
this.container.classList.add('show')
|
||||
this.detached = false
|
||||
resize.check(this.widget, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue