Add: DevTools display event #50

This commit is contained in:
surunzi
2018-01-25 17:37:13 +08:00
parent ea360b4596
commit f93084897f

View File

@@ -36,6 +36,7 @@ export default class DevTools extends Emitter
show()
{
this._isShow = true;
this.emit('show');
this._$el.show();
this._navBar.resetStyle();
@@ -51,6 +52,7 @@ export default class DevTools extends Emitter
hide()
{
this._isShow = false;
this.emit('hide');
this._$el.css({opacity: 0});
setTimeout(() => this._$el.hide(), 300);