Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
var CoreView = require('backbone/core-view');
var template = require('./overlay.tpl');
module.exports = CoreView.extend({
initialize: function (opts) {
if (!opts.overlayModel) throw new Error('overlayModel is required');
this.overlayModel = opts.overlayModel;
this._initBinds();
},
render: function () {
this.$el.empty();
this.$el.append(template({
visible: !this.overlayModel.get('visible') ? 'is-hidden' : ''
}));
return this;
},
_initBinds: function () {
this.listenTo(this.overlayModel, 'change:visible', this.render);
}
});

View File

@@ -0,0 +1 @@
<div class="Disable-overlay <%- visible %>"></div>