mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-13 10:48:35 +08:00
24 lines
313 B
JavaScript
24 lines
313 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();
|
|
}
|
|
}); |