From ba7315ac15b13409c227b3f573b54f1c8013cdc6 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 13 Jun 2017 09:23:23 +0800 Subject: [PATCH] add --- bi/case.js | 18 +++++++++--------- docs/case.js | 18 +++++++++--------- src/case/segment/button.segment.js | 18 +++++++++--------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/bi/case.js b/bi/case.js index 974f1f22a..4ea3bd985 100644 --- a/bi/case.js +++ b/bi/case.js @@ -9896,17 +9896,17 @@ BI.shortcut("bi.detail_pager", BI.DetailPager);/** */ BI.SegmentButton = BI.inherit(BI.BasicButton, { - _defaultConfig: function() { + _defaultConfig: function () { var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments); - return BI.extend( conf, { - baseCls : (conf.baseCls ||"")+' bi-segment-button bi-list-item-active', + return BI.extend(conf, { + baseCls: (conf.baseCls || "") + ' bi-segment-button bi-list-item-active', shadow: true, readonly: true, - hgap: 10 + hgap: 5 }) }, - _init:function() { + _init: function () { BI.SegmentButton.superclass._init.apply(this, arguments); var opts = this.options, self = this; //if (BI.isNumber(opts.height) && BI.isNull(opts.lineHeight)) { @@ -9915,7 +9915,7 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, { this.text = BI.createWidget({ type: "bi.label", element: this, - height: opts.height-2, + height: opts.height - 2, whiteSpace: opts.whiteSpace, text: opts.text, value: opts.value, @@ -9923,16 +9923,16 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, { }) }, - setSelected: function(){ + setSelected: function () { BI.SegmentButton.superclass.setSelected.apply(this, arguments); }, - setText : function(text) { + setText: function (text) { BI.SegmentButton.superclass.setText.apply(this, arguments); this.text.setText(text); }, - destroy : function() { + destroy: function () { BI.SegmentButton.superclass.destroy.apply(this, arguments); } }); diff --git a/docs/case.js b/docs/case.js index 974f1f22a..4ea3bd985 100644 --- a/docs/case.js +++ b/docs/case.js @@ -9896,17 +9896,17 @@ BI.shortcut("bi.detail_pager", BI.DetailPager);/** */ BI.SegmentButton = BI.inherit(BI.BasicButton, { - _defaultConfig: function() { + _defaultConfig: function () { var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments); - return BI.extend( conf, { - baseCls : (conf.baseCls ||"")+' bi-segment-button bi-list-item-active', + return BI.extend(conf, { + baseCls: (conf.baseCls || "") + ' bi-segment-button bi-list-item-active', shadow: true, readonly: true, - hgap: 10 + hgap: 5 }) }, - _init:function() { + _init: function () { BI.SegmentButton.superclass._init.apply(this, arguments); var opts = this.options, self = this; //if (BI.isNumber(opts.height) && BI.isNull(opts.lineHeight)) { @@ -9915,7 +9915,7 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, { this.text = BI.createWidget({ type: "bi.label", element: this, - height: opts.height-2, + height: opts.height - 2, whiteSpace: opts.whiteSpace, text: opts.text, value: opts.value, @@ -9923,16 +9923,16 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, { }) }, - setSelected: function(){ + setSelected: function () { BI.SegmentButton.superclass.setSelected.apply(this, arguments); }, - setText : function(text) { + setText: function (text) { BI.SegmentButton.superclass.setText.apply(this, arguments); this.text.setText(text); }, - destroy : function() { + destroy: function () { BI.SegmentButton.superclass.destroy.apply(this, arguments); } }); diff --git a/src/case/segment/button.segment.js b/src/case/segment/button.segment.js index 95fb94ca0..a90cef7c7 100644 --- a/src/case/segment/button.segment.js +++ b/src/case/segment/button.segment.js @@ -7,17 +7,17 @@ */ BI.SegmentButton = BI.inherit(BI.BasicButton, { - _defaultConfig: function() { + _defaultConfig: function () { var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments); - return BI.extend( conf, { - baseCls : (conf.baseCls ||"")+' bi-segment-button bi-list-item-active', + return BI.extend(conf, { + baseCls: (conf.baseCls || "") + ' bi-segment-button bi-list-item-active', shadow: true, readonly: true, - hgap: 10 + hgap: 5 }) }, - _init:function() { + _init: function () { BI.SegmentButton.superclass._init.apply(this, arguments); var opts = this.options, self = this; //if (BI.isNumber(opts.height) && BI.isNull(opts.lineHeight)) { @@ -26,7 +26,7 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, { this.text = BI.createWidget({ type: "bi.label", element: this, - height: opts.height-2, + height: opts.height - 2, whiteSpace: opts.whiteSpace, text: opts.text, value: opts.value, @@ -34,16 +34,16 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, { }) }, - setSelected: function(){ + setSelected: function () { BI.SegmentButton.superclass.setSelected.apply(this, arguments); }, - setText : function(text) { + setText: function (text) { BI.SegmentButton.superclass.setText.apply(this, arguments); this.text.setText(text); }, - destroy : function() { + destroy: function () { BI.SegmentButton.superclass.destroy.apply(this, arguments); } });