You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
712 B
44 lines
712 B
/**
|
|
* Mixin to Extend a Sidebar
|
|
*
|
|
* @author Björn Hase
|
|
* @license http://opensource.org/licenses/MIT The MIT License
|
|
* @link https://gitea.node001.net/tiny-components/sidebar-form
|
|
*
|
|
*/
|
|
|
|
export default {
|
|
|
|
state: {
|
|
isOpen: false, // if sidebar is open
|
|
isLoading: false // if loading is shown
|
|
},
|
|
|
|
/**
|
|
* close current sidebar
|
|
*
|
|
*/
|
|
handleClose() {
|
|
this.state.isOpen = false
|
|
this.reset()
|
|
|
|
this.update()
|
|
},
|
|
|
|
/**
|
|
*
|
|
*
|
|
*/
|
|
onBeforeMount() {
|
|
this.reset()
|
|
},
|
|
|
|
/**
|
|
* function to reset current form data
|
|
* will call before Mount and after close
|
|
*
|
|
*/
|
|
reset() {
|
|
|
|
}
|
|
} |