Browse Source

整理代码

es6
guy 3 years ago
parent
commit
eee7b15a34
  1. 5
      src/base/single/0.single.js

5
src/base/single/0.single.js

@ -13,6 +13,7 @@ BI.Single = BI.inherit(BI.Widget, {
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.Single.superclass._defaultConfig.apply(this, arguments); var conf = BI.Single.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
el: {},
readonly: false, readonly: false,
title: null, title: null,
warningTitle: null, warningTitle: null,
@ -22,6 +23,10 @@ BI.Single = BI.inherit(BI.Widget, {
}); });
}, },
render: function () {
return this.options.el;
},
_showToolTip: function (e, opt) { _showToolTip: function (e, opt) {
opt || (opt = {}); opt || (opt = {});
var self = this, o = this.options; var self = this, o = this.options;

Loading…
Cancel
Save