Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
92c6f15fab
2 changed files with 11 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ build({
|
|||
],
|
||||
'plugins': ['@babel/plugin-proposal-object-rest-spread'],
|
||||
'global': true,
|
||||
'only': ['**/ws/']
|
||||
'only': ['**/ws/', '**/yargs/']
|
||||
}]
|
||||
]
|
||||
})()
|
||||
|
|
|
|||
|
|
@ -6,7 +6,14 @@ module.exports = class Tab extends Panel {
|
|||
|
||||
static defaults() {
|
||||
|
||||
return Widget.defaults({}, ['_geometry', 'left', 'top', 'width', 'height'], {
|
||||
return Widget.defaults({
|
||||
|
||||
_tab:'tab',
|
||||
|
||||
detached: {type: 'boolean', value: true, help: [
|
||||
]}
|
||||
|
||||
}, ['_geometry', 'left', 'top', 'width', 'height'], {
|
||||
|
||||
_children:'children',
|
||||
|
||||
|
|
@ -38,14 +45,14 @@ module.exports = class Tab extends Panel {
|
|||
|
||||
hide() {
|
||||
if (this.detached) return
|
||||
// this.container.removeChild(this.widget)
|
||||
if (this.getProp('detached')) this.container.removeChild(this.widget)
|
||||
this.container.classList.remove('show')
|
||||
this.detached = true
|
||||
|
||||
}
|
||||
show() {
|
||||
if (!this.detached) return
|
||||
// this.container.appendChild(this.widget)
|
||||
if (this.getProp('detached')) 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