mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-13 10:48:35 +08:00
21 lines
252 B
JavaScript
21 lines
252 B
JavaScript
import { Class } from '../lib/util'
|
|
|
|
export default Class({
|
|
init($el) {
|
|
this._$el = $el
|
|
},
|
|
show() {
|
|
this._$el.show()
|
|
|
|
return this
|
|
},
|
|
hide() {
|
|
this._$el.hide()
|
|
|
|
return this
|
|
},
|
|
destroy() {
|
|
this._$el.remove()
|
|
},
|
|
})
|