Browse Source

针对移动端rem进行适配

es6
guy 4 years ago
parent
commit
eb607ebb79
  1. 3
      src/core/widget.js

3
src/core/widget.js

@ -40,7 +40,8 @@
_constructor: function () { _constructor: function () {
if (this.setup) { if (this.setup) {
pushTarget(this); pushTarget(this);
this.render = this.setup(); this.service = this.setup();
this.render = BI.isPlainObject(this.service) ? this.service.render : this.service;
popTarget(); popTarget();
} }
}, },

Loading…
Cancel
Save