Browse Source

默认值放属性上

es6
guy 3 years ago
parent
commit
738a81cb7c
  1. 2
      src/case/button/item.multiselect.js
  2. 2
      src/case/button/item.singleselect.icontext.js
  3. 2
      src/case/button/item.singleselect.js
  4. 2
      src/case/button/item.singleselect.radio.js
  5. 5
      src/case/calendar/calendar.date.item.js
  6. 1
      src/case/calendar/calendar.js
  7. 2
      src/case/combo/iconcombo/popup.iconcombo.js
  8. 2
      src/case/combo/icontextvaluecombo/popup.icontextvalue.js
  9. 1
      src/case/combo/searchtextvaluecombo/popup.searchtextvalue.js
  10. 1
      src/case/combo/textvaluecheckcombo/popup.textvaluecheck.js
  11. 1
      src/case/combo/textvaluecombo/popup.textvalue.js

2
src/case/button/item.multiselect.js

@ -10,7 +10,7 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
attributes: { attributes: {
tabIndex: 1 tabIndex: 1
}, },
height: 24, height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
logic: { logic: {
dynamic: false dynamic: false
}, },

2
src/case/button/item.singleselect.icontext.js

@ -12,7 +12,7 @@ BI.SingleSelectIconTextItem = BI.inherit(BI.Single, {
tabIndex: 1 tabIndex: 1
}, },
iconCls: "", iconCls: "",
height: 24 height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT
}); });
}, },

2
src/case/button/item.singleselect.js

@ -6,7 +6,7 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
tabIndex: 1 tabIndex: 1
}, },
textHgap: 10, textHgap: 10,
height: 24, height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
textAlign: "left" textAlign: "left"
}); });
}, },

2
src/case/button/item.singleselect.radio.js

@ -13,7 +13,7 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, {
logic: { logic: {
dynamic: false dynamic: false
}, },
height: 24, height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
iconWrapperWidth: 16, iconWrapperWidth: 16,
textHgap: 10, textHgap: 10,
textVgap: 0, textVgap: 0,

5
src/case/calendar/calendar.date.item.js

@ -2,6 +2,11 @@
* 专门为calendar的视觉加的button作为私有button,不能配置任何属性也不要用这个玩意 * 专门为calendar的视觉加的button作为私有button,不能配置任何属性也不要用这个玩意
*/ */
BI.CalendarDateItem = BI.inherit(BI.BasicButton, { BI.CalendarDateItem = BI.inherit(BI.BasicButton, {
props: function() {
return {
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 8,
}
},
render: function () { render: function () {
var self = this, o = this.options; var self = this, o = this.options;

1
src/case/calendar/calendar.js

@ -162,7 +162,6 @@ BI.Calendar = BI.inherit(BI.Widget, {
whiteSpace: "normal", whiteSpace: "normal",
once: false, once: false,
forceSelected: true, forceSelected: true,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + 8,
value: o.year + "-" + month + "-" + td.text, value: o.year + "-" + month + "-" + td.text,
disabled: td.lastMonth || td.nextMonth || td.disabled, disabled: td.lastMonth || td.nextMonth || td.disabled,
lgap: 2, lgap: 2,

2
src/case/combo/iconcombo/popup.iconcombo.js

@ -19,7 +19,6 @@ BI.IconComboPopup = BI.inherit(BI.Pane, {
type: "bi.button_group", type: "bi.button_group",
items: BI.createItems(o.items, { items: BI.createItems(o.items, {
type: "bi.single_select_icon_text_item", type: "bi.single_select_icon_text_item",
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
}), }),
chooseType: o.chooseType, chooseType: o.chooseType,
layouts: [{ layouts: [{
@ -47,7 +46,6 @@ BI.IconComboPopup = BI.inherit(BI.Pane, {
BI.IconComboPopup.superclass.populate.apply(this, arguments); BI.IconComboPopup.superclass.populate.apply(this, arguments);
items = BI.createItems(items, { items = BI.createItems(items, {
type: "bi.single_select_icon_text_item", type: "bi.single_select_icon_text_item",
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
}); });
this.popup.populate(items); this.popup.populate(items);
}, },

2
src/case/combo/icontextvaluecombo/popup.icontextvalue.js

@ -20,7 +20,6 @@ BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
type: "bi.button_group", type: "bi.button_group",
items: BI.createItems(o.items, { items: BI.createItems(o.items, {
type: "bi.single_select_icon_text_item", type: "bi.single_select_icon_text_item",
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
iconHeight: o.iconHeight, iconHeight: o.iconHeight,
iconWidth: o.iconWidth, iconWidth: o.iconWidth,
iconWrapperWidth: o.iconWrapperWidth iconWrapperWidth: o.iconWrapperWidth
@ -55,7 +54,6 @@ BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
var o = this.options; var o = this.options;
items = BI.createItems(items, { items = BI.createItems(items, {
type: "bi.single_select_icon_text_item", type: "bi.single_select_icon_text_item",
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
iconWrapperWidth: o.iconWrapperWidth, iconWrapperWidth: o.iconWrapperWidth,
iconHeight: o.iconHeight, iconHeight: o.iconHeight,
iconWidth: o.iconWidth, iconWidth: o.iconWidth,

1
src/case/combo/searchtextvaluecombo/popup.searchtextvalue.js

@ -47,7 +47,6 @@ BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {
return BI.extend({ return BI.extend({
type: "bi.single_select_item", type: "bi.single_select_item",
textAlign: o.textAlign, textAlign: o.textAlign,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
title: item.title || item.text title: item.title || item.text
}, item); }, item);
}); });

1
src/case/combo/textvaluecheckcombo/popup.textvaluecheck.js

@ -41,7 +41,6 @@ BI.TextValueCheckComboPopup = BI.inherit(BI.Pane, {
type: "bi.single_select_item", type: "bi.single_select_item",
cls: "bi-list-item", cls: "bi-list-item",
textAlign: o.textAlign, textAlign: o.textAlign,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
title: item.title || item.text title: item.title || item.text
}, item); }, item);
}); });

1
src/case/combo/textvaluecombo/popup.textvalue.js

@ -41,7 +41,6 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, {
return BI.extend({ return BI.extend({
type: "bi.single_select_item", type: "bi.single_select_item",
textAlign: o.textAlign, textAlign: o.textAlign,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
title: item.title || item.text title: item.title || item.text
}, item); }, item);
}); });

Loading…
Cancel
Save