mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
21 lines
251 B
JavaScript
21 lines
251 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()
|
|
}
|
|
})
|