Browse Source

Merge pull request #970 in VISUAL/fineui from ~TELLER/fineui:master to master

* commit 'ed6ae14fc2f1cf921b5d7afe1776fb88e4df7e4f':
  chore: update dist
es6
Teller 5 years ago
parent
commit
803b98623a
  1. 562
      dist/2.0/fineui.ie.js
  2. 58
      dist/2.0/fineui.ie.min.js
  3. 562
      dist/2.0/fineui.js
  4. 59
      dist/2.0/fineui.min.js
  5. 35
      dist/base.js
  6. 562
      dist/bundle.ie.js
  7. 58
      dist/bundle.ie.min.js
  8. 562
      dist/bundle.js
  9. 59
      dist/bundle.min.js
  10. 105
      dist/case.js
  11. 2
      dist/core.js
  12. 562
      dist/fineui.ie.js
  13. 58
      dist/fineui.ie.min.js
  14. 562
      dist/fineui.js
  15. 58
      dist/fineui.min.js
  16. 532
      dist/fineui_without_jquery_polyfill.js
  17. 2
      dist/utils.min.js
  18. 420
      dist/widget.js

562
dist/2.0/fineui.ie.js vendored

File diff suppressed because it is too large Load Diff

58
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

562
dist/2.0/fineui.js vendored

File diff suppressed because it is too large Load Diff

59
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

35
dist/base.js vendored

@ -7411,7 +7411,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
} }
} }
}); });
BI.IconButton.EVENT_CHANGE = "IconButton.EVENT_CHANGE"; BI.IconButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_button", BI.IconButton);/** BI.shortcut("bi.icon_button", BI.IconButton);/**
* 图片的button * 图片的button
* *
@ -7497,7 +7497,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
} }
} }
}); });
BI.ImageButton.EVENT_CHANGE = "ImageButton.EVENT_CHANGE"; BI.ImageButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.image_button", BI.ImageButton); BI.shortcut("bi.image_button", BI.ImageButton);
/** /**
* 文字类型的按钮 * 文字类型的按钮
@ -9279,11 +9279,11 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
this.file.reset(); this.file.reset();
} }
}); });
BI.MultifileEditor.EVENT_CHANGE = "MultifileEditor.EVENT_CHANGE"; BI.MultifileEditor.EVENT_CHANGE = "EVENT_CHANGE";
BI.MultifileEditor.EVENT_UPLOADSTART = "MultifileEditor.EVENT_UPLOADSTART"; BI.MultifileEditor.EVENT_UPLOADSTART = "EVENT_UPLOADSTART";
BI.MultifileEditor.EVENT_ERROR = "MultifileEditor.EVENT_ERROR"; BI.MultifileEditor.EVENT_ERROR = "EVENT_ERROR";
BI.MultifileEditor.EVENT_PROGRESS = "MultifileEditor.EVENT_PROGRESS"; BI.MultifileEditor.EVENT_PROGRESS = "EVENT_PROGRESS";
BI.MultifileEditor.EVENT_UPLOADED = "MultifileEditor.EVENT_UPLOADED"; BI.MultifileEditor.EVENT_UPLOADED = "EVENT_UPLOADED";
BI.shortcut("bi.multifile_editor", BI.MultifileEditor);/** BI.shortcut("bi.multifile_editor", BI.MultifileEditor);/**
* *
* Created by GUY on 2016/1/18. * Created by GUY on 2016/1/18.
@ -9692,20 +9692,9 @@ BI.ImageCheckbox = BI.inherit(BI.IconButton, {
iconWidth: 16, iconWidth: 16,
iconHeight: 16 iconHeight: 16
}); });
},
_init: function () {
BI.ImageCheckbox.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.ImageCheckbox.superclass.doClick.apply(this, arguments);
if(this.isValid()) {
this.fireEvent(BI.Checkbox.EVENT_CHANGE);
}
} }
}); });
BI.ImageCheckbox.EVENT_CHANGE = "Checkbox.EVENT_CHANGE"; BI.ImageCheckbox.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.image_checkbox", BI.ImageCheckbox);/** BI.shortcut("bi.image_checkbox", BI.ImageCheckbox);/**
* guy * guy
@ -9765,7 +9754,7 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
} }
} }
}); });
BI.Checkbox.EVENT_CHANGE = "Checkbox.EVENT_CHANGE"; BI.Checkbox.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.checkbox", BI.Checkbox);/** BI.shortcut("bi.checkbox", BI.Checkbox);/**
* 文件 * 文件
@ -10386,7 +10375,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
} }
} }
}); });
BI.File.EVENT_CHANGE = "BI.File.EVENT_CHANGE"; BI.File.EVENT_CHANGE = "EVENT_CHANGE";
BI.File.EVENT_UPLOADSTART = "EVENT_UPLOADSTART"; BI.File.EVENT_UPLOADSTART = "EVENT_UPLOADSTART";
BI.File.EVENT_ERROR = "EVENT_ERROR"; BI.File.EVENT_ERROR = "EVENT_ERROR";
BI.File.EVENT_PROGRESS = "EVENT_PROGRESS"; BI.File.EVENT_PROGRESS = "EVENT_PROGRESS";
@ -10740,7 +10729,7 @@ BI.ImageRadio = BI.inherit(BI.IconButton, {
} }
} }
}); });
BI.ImageRadio.EVENT_CHANGE = "Radio.EVENT_CHANGE"; BI.ImageRadio.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.image_radio", BI.ImageRadio);/** BI.shortcut("bi.image_radio", BI.ImageRadio);/**
* guy * guy
@ -10801,7 +10790,7 @@ BI.Radio = BI.inherit(BI.BasicButton, {
} }
} }
}); });
BI.Radio.EVENT_CHANGE = "Radio.EVENT_CHANGE"; BI.Radio.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.radio", BI.Radio);/** BI.shortcut("bi.radio", BI.Radio);/**
* Created by dailer on 2019/6/19. * Created by dailer on 2019/6/19.

562
dist/bundle.ie.js vendored

File diff suppressed because it is too large Load Diff

58
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

562
dist/bundle.js vendored

File diff suppressed because it is too large Load Diff

59
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

105
dist/case.js vendored

@ -79,7 +79,7 @@ BI.IconChangeButton = BI.inherit(BI.Single, {
} }
} }
}); });
BI.IconChangeButton.EVENT_CHANGE = "IconChangeButton.EVENT_CHANGE"; BI.IconChangeButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.icon_change_button", BI.IconChangeButton);/** BI.shortcut("bi.icon_change_button", BI.IconChangeButton);/**
* 统一的trigger图标按钮 * 统一的trigger图标按钮
* *
@ -95,20 +95,9 @@ BI.TriggerIconButton = BI.inherit(BI.IconButton, {
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button", baseCls: (conf.baseCls || "") + " bi-trigger-icon-button",
extraCls: "pull-down-font" extraCls: "pull-down-font"
}); });
},
_init: function () {
BI.TriggerIconButton.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.TriggerIconButton.superclass.doClick.apply(this, arguments);
if (this.isValid()) {
this.fireEvent(BI.TriggerIconButton.EVENT_CHANGE, this);
}
} }
}); });
BI.TriggerIconButton.EVENT_CHANGE = "TriggerIconButton.EVENT_CHANGE"; BI.TriggerIconButton.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.trigger_icon_button", BI.TriggerIconButton);/** BI.shortcut("bi.trigger_icon_button", BI.TriggerIconButton);/**
* guy * guy
* @extends BI.Single * @extends BI.Single
@ -125,20 +114,9 @@ BI.HalfIconButton = BI.inherit(BI.IconButton, {
iconHeight: 16, iconHeight: 16,
selected: false selected: false
}); });
},
_init: function () {
BI.HalfIconButton.superclass._init.apply(this, arguments);
},
doClick: function () {
BI.HalfIconButton.superclass.doClick.apply(this, arguments);
if(this.isValid()) {
this.fireEvent(BI.HalfIconButton.EVENT_CHANGE);
}
} }
}); });
BI.HalfIconButton.EVENT_CHANGE = "HalfIconButton.EVENT_CHANGE"; BI.HalfIconButton.EVENT_CHANGE = BI.IconButton.EVENT_CHANGE;
BI.shortcut("bi.half_icon_button", BI.HalfIconButton);/** BI.shortcut("bi.half_icon_button", BI.HalfIconButton);/**
* guy * guy
@ -177,7 +155,7 @@ BI.HalfButton = BI.inherit(BI.BasicButton, {
} }
} }
}); });
BI.HalfButton.EVENT_CHANGE = "HalfIconButton.EVENT_CHANGE"; BI.HalfButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.half_button", BI.HalfButton);/** BI.shortcut("bi.half_button", BI.HalfButton);/**
* guy * guy
@ -357,7 +335,7 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
doClick: function () { doClick: function () {
BI.SingleSelectItem.superclass.doClick.apply(this, arguments); BI.SingleSelectItem.superclass.doClick.apply(this, arguments);
if (this.isValid()) { if (this.isValid()) {
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this); this.fireEvent(BI.SingleSelectItem.EVENT_CHANGE, this.isSelected(), this);
} }
}, },
@ -365,7 +343,8 @@ BI.SingleSelectItem = BI.inherit(BI.BasicButton, {
BI.SingleSelectItem.superclass.setSelected.apply(this, arguments); BI.SingleSelectItem.superclass.setSelected.apply(this, arguments);
} }
}); });
BI.SingleSelectItem.EVENT_CHANGE = "SingleSelectItem.EVENT_CHANGE";
BI.SingleSelectItem.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/** BI.shortcut("bi.single_select_item", BI.SingleSelectItem);/**
* guy * guy
* 单选框item * 单选框item
@ -424,6 +403,9 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, {
doClick: function () { doClick: function () {
BI.SingleSelectRadioItem.superclass.doClick.apply(this, arguments); BI.SingleSelectRadioItem.superclass.doClick.apply(this, arguments);
this.radio.setSelected(this.isSelected()); this.radio.setSelected(this.isSelected());
if (this.isValid()) {
this.fireEvent(BI.SingleSelectItem.EVENT_CHANGE, this.isSelected(), this);
}
}, },
setSelected: function (v) { setSelected: function (v) {
@ -433,6 +415,7 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, {
} }
}); });
BI.SingleSelectItem.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.single_select_radio_item", BI.SingleSelectRadioItem);/** BI.shortcut("bi.single_select_radio_item", BI.SingleSelectRadioItem);/**
* Created by roy on 15/10/16. * Created by roy on 15/10/16.
*/ */
@ -1917,9 +1900,12 @@ BI.YearCalendar = BI.inherit(BI.Widget, {
Y = Y | 0; Y = Y | 0;
var start = BI.YearCalendar.getStartYear(Y); var start = BI.YearCalendar.getStartYear(Y);
var items = []; var items = [];
// 对于年控件来说,只要传入的minDate和maxDate的year区间包含v就是合法的
var startDate = BI.parseDateTime(o.min, "%Y-%X-%d");
var endDate = BI.parseDateTime(o.max, "%Y-%X-%d");
BI.each(BI.range(BI.YearCalendar.INTERVAL), function (i) { BI.each(BI.range(BI.YearCalendar.INTERVAL), function (i) {
var td = {}; var td = {};
if (BI.checkDateVoid(start + i, 1, 1, o.min, o.max)[0]) { if (BI.checkDateVoid(start + i, 1, 1, BI.print(BI.getDate(startDate.getFullYear(), 0, 1), "%Y-%X-%d"), BI.print(BI.getDate(endDate.getFullYear(), 0, 1), "%Y-%X-%d"))[0]) {
td.disabled = true; td.disabled = true;
} }
td.text = start + i; td.text = start + i;
@ -2043,9 +2029,7 @@ BI.ArrowTreeGroupNodeCheckbox = BI.inherit(BI.IconButton, {
extraCls: "bi-arrow-group-node-checkbox" extraCls: "bi-arrow-group-node-checkbox"
}); });
}, },
_init: function () {
BI.ArrowTreeGroupNodeCheckbox.superclass._init.apply(this, arguments);
},
setSelected: function (v) { setSelected: function (v) {
BI.ArrowTreeGroupNodeCheckbox.superclass.setSelected.apply(this, arguments); BI.ArrowTreeGroupNodeCheckbox.superclass.setSelected.apply(this, arguments);
if(v) { if(v) {
@ -2093,10 +2077,7 @@ BI.FirstTreeNodeCheckbox = BI.inherit(BI.IconButton, {
iconHeight: 24 iconHeight: 24
}); });
}, },
_init: function () {
BI.FirstTreeNodeCheckbox.superclass._init.apply(this, arguments);
},
setSelected: function (v) { setSelected: function (v) {
BI.FirstTreeNodeCheckbox.superclass.setSelected.apply(this, arguments); BI.FirstTreeNodeCheckbox.superclass.setSelected.apply(this, arguments);
if(v === true) { if(v === true) {
@ -2119,10 +2100,7 @@ BI.LastTreeNodeCheckbox = BI.inherit(BI.IconButton, {
iconHeight: 24 iconHeight: 24
}); });
}, },
_init: function () {
BI.LastTreeNodeCheckbox.superclass._init.apply(this, arguments);
},
setSelected: function (v) { setSelected: function (v) {
BI.LastTreeNodeCheckbox.superclass.setSelected.apply(this, arguments); BI.LastTreeNodeCheckbox.superclass.setSelected.apply(this, arguments);
if (v === true) { if (v === true) {
@ -2145,10 +2123,7 @@ BI.MidTreeNodeCheckbox = BI.inherit(BI.IconButton, {
iconHeight: 24 iconHeight: 24
}); });
}, },
_init: function () {
BI.MidTreeNodeCheckbox.superclass._init.apply(this, arguments);
},
setSelected: function (v) { setSelected: function (v) {
BI.MidTreeNodeCheckbox.superclass.setSelected.apply(this, arguments); BI.MidTreeNodeCheckbox.superclass.setSelected.apply(this, arguments);
if(v === true) { if(v === true) {
@ -2171,10 +2146,7 @@ BI.TreeNodeCheckbox = BI.inherit(BI.IconButton, {
iconHeight: 24 iconHeight: 24
}); });
}, },
_init: function () {
BI.TreeNodeCheckbox.superclass._init.apply(this, arguments);
},
setSelected: function (v) { setSelected: function (v) {
BI.TreeNodeCheckbox.superclass.setSelected.apply(this, arguments); BI.TreeNodeCheckbox.superclass.setSelected.apply(this, arguments);
if(v) { if(v) {
@ -2251,7 +2223,7 @@ BI.CustomColorChooser = BI.inherit(BI.Widget, {
return this.editor.getValue(); return this.editor.getValue();
} }
}); });
BI.CustomColorChooser.EVENT_CHANGE = "CustomColorChooser.EVENT_CHANGE"; BI.CustomColorChooser.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.custom_color_chooser", BI.CustomColorChooser);/** BI.shortcut("bi.custom_color_chooser", BI.CustomColorChooser);/**
* 选色控件 * 选色控件
* *
@ -2358,7 +2330,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
return this.combo.getValue(); return this.combo.getValue();
} }
}); });
BI.ColorChooser.EVENT_CHANGE = "ColorChooser.EVENT_CHANGE"; BI.ColorChooser.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.color_chooser", BI.ColorChooser);/** BI.shortcut("bi.color_chooser", BI.ColorChooser);/**
* 选色控件 * 选色控件
* *
@ -2581,8 +2553,8 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
return this.colorEditor.getValue(); return this.colorEditor.getValue();
} }
}); });
BI.ColorChooserPopup.EVENT_VALUE_CHANGE = "ColorChooserPopup.EVENT_VALUE_CHANGE"; BI.ColorChooserPopup.EVENT_VALUE_CHANGE = "EVENT_VALUE_CHANGE";
BI.ColorChooserPopup.EVENT_CHANGE = "ColorChooserPopup.EVENT_CHANGE"; BI.ColorChooserPopup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.color_chooser_popup", BI.ColorChooserPopup);/** BI.shortcut("bi.color_chooser_popup", BI.ColorChooserPopup);/**
* 选色控件 * 选色控件
* *
@ -2629,8 +2601,8 @@ BI.SimpleColorChooserPopup = BI.inherit(BI.Widget, {
return this.popup.getValue(); return this.popup.getValue();
} }
}); });
BI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE = "ColorChooserPopup.EVENT_VALUE_CHANGE"; BI.SimpleColorChooserPopup.EVENT_VALUE_CHANGE = "EVENT_VALUE_CHANGE";
BI.SimpleColorChooserPopup.EVENT_CHANGE = "ColorChooserPopup.EVENT_CHANGE"; BI.SimpleColorChooserPopup.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.simple_color_chooser_popup", BI.SimpleColorChooserPopup);/** BI.shortcut("bi.simple_color_chooser_popup", BI.SimpleColorChooserPopup);/**
* 简单选色控件没有自动和透明 * 简单选色控件没有自动和透明
* *
@ -2687,7 +2659,7 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, {
return this.combo.getValue(); return this.combo.getValue();
} }
}); });
BI.SimpleColorChooser.EVENT_CHANGE = "ColorChooser.EVENT_CHANGE"; BI.SimpleColorChooser.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.simple_color_chooser", BI.SimpleColorChooser);/** BI.shortcut("bi.simple_color_chooser", BI.SimpleColorChooser);/**
* 选色控件 * 选色控件
* *
@ -2751,7 +2723,7 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
} }
} }
}); });
BI.ColorChooserTrigger.EVENT_CHANGE = "ColorChooserTrigger.EVENT_CHANGE"; BI.ColorChooserTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.color_chooser_trigger", BI.ColorChooserTrigger);/** BI.shortcut("bi.color_chooser_trigger", BI.ColorChooserTrigger);/**
* 选色控件 * 选色控件
* *
@ -2847,7 +2819,7 @@ BI.LongColorChooserTrigger = BI.inherit(BI.Trigger, {
} }
} }
}); });
BI.LongColorChooserTrigger.EVENT_CHANGE = "ColorChooserTrigger.EVENT_CHANGE"; BI.LongColorChooserTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.long_color_chooser_trigger", BI.LongColorChooserTrigger);/** BI.shortcut("bi.long_color_chooser_trigger", BI.LongColorChooserTrigger);/**
* 简单选色控件按钮 * 简单选色控件按钮
* *
@ -2906,7 +2878,7 @@ BI.ColorPickerButton = BI.inherit(BI.BasicButton, {
BI.Maskers[b ? "show" : "hide"](this.getName()); BI.Maskers[b ? "show" : "hide"](this.getName());
} }
}); });
BI.ColorPickerButton.EVENT_CHANGE = "ColorPickerButton.EVENT_CHANGE"; BI.ColorPickerButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.color_picker_button", BI.ColorPickerButton);/** BI.shortcut("bi.color_picker_button", BI.ColorPickerButton);/**
* 简单选色控件 * 简单选色控件
* *
@ -3095,7 +3067,7 @@ BI.ColorPicker = BI.inherit(BI.Widget, {
return this.colors.getValue(); return this.colors.getValue();
} }
}); });
BI.ColorPicker.EVENT_CHANGE = "ColorPicker.EVENT_CHANGE"; BI.ColorPicker.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.color_picker", BI.ColorPicker);/** BI.shortcut("bi.color_picker", BI.ColorPicker);/**
* 简单选色控件 * 简单选色控件
* *
@ -3338,7 +3310,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
})); }));
} }
}); });
BI.ColorPickerEditor.EVENT_CHANGE = "ColorPickerEditor.EVENT_CHANGE"; BI.ColorPickerEditor.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.color_picker_editor", BI.ColorPickerEditor);/** BI.shortcut("bi.color_picker_editor", BI.ColorPickerEditor);/**
* 简单选色控件 * 简单选色控件
* *
@ -3447,7 +3419,7 @@ BI.SimpleColorPickerEditor = BI.inherit(BI.Widget, {
})); }));
} }
}); });
BI.SimpleColorPickerEditor.EVENT_CHANGE = "ColorPickerEditor.EVENT_CHANGE"; BI.SimpleColorPickerEditor.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.simple_color_picker_editor", BI.SimpleColorPickerEditor);BI.Farbtastic = BI.inherit(BI.BasicButton, { BI.shortcut("bi.simple_color_picker_editor", BI.SimpleColorPickerEditor);BI.Farbtastic = BI.inherit(BI.BasicButton, {
constants: { constants: {
@ -3726,7 +3698,7 @@ BI.shortcut("bi.simple_color_picker_editor", BI.SimpleColorPickerEditor);BI.Farb
return this.value; return this.value;
} }
}); });
BI.Farbtastic.EVENT_CHANGE = "Farbtastic.EVENT_CHANGE"; BI.Farbtastic.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.farbtastic", BI.Farbtastic);/** BI.shortcut("bi.farbtastic", BI.Farbtastic);/**
* Created by GUY on 2017/2/8. * Created by GUY on 2017/2/8.
* *
@ -7190,7 +7162,7 @@ BI.Panel = BI.inherit(BI.Widget, {
this.text.setValue(title); this.text.setValue(title);
} }
}); });
BI.Panel.EVENT_CHANGE = "Panel.EVENT_CHANGE"; BI.Panel.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.panel", BI.Panel); BI.shortcut("bi.panel", BI.Panel);
BI.LinearSegmentButton = BI.inherit(BI.BasicButton, { BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
@ -8043,7 +8015,8 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
value: o.curr, value: o.curr,
errorText: BI.i18nText("BI-Please_Input_Positive_Integer"), errorText: BI.i18nText("BI-Please_Input_Positive_Integer"),
width: 40, width: 40,
height: 24 height: 24,
invisible: o.pages <= 1
}); });
this.pager = BI.createWidget({ this.pager = BI.createWidget({
@ -8083,7 +8056,8 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
hasPrev: o.hasPrev, hasPrev: o.hasPrev,
hasNext: o.hasNext, hasNext: o.hasNext,
firstPage: o.firstPage, firstPage: o.firstPage,
lastPage: o.lastPage lastPage: o.lastPage,
invisible: o.pages <= 1
}); });
this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () { this.editor.on(BI.TextEditor.EVENT_CONFIRM, function () {
@ -8101,7 +8075,8 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
type: "bi.label", type: "bi.label",
title: o.pages, title: o.pages,
text: "/" + o.pages, text: "/" + o.pages,
lgap: 5 lgap: 5,
invisible: o.pages <= 1
}); });
this.rowCount = BI.createWidget({ this.rowCount = BI.createWidget({
@ -8162,6 +8137,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
setAllPages: function (v) { setAllPages: function (v) {
this.allPages.setText("/" + v); this.allPages.setText("/" + v);
this.allPages.setTitle(v); this.allPages.setTitle(v);
this.options.pages = v;
this.pager.setAllPages(v); this.pager.setAllPages(v);
this.editor.setEnable(v >= 1); this.editor.setEnable(v >= 1);
}, },
@ -8199,6 +8175,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
populate: function () { populate: function () {
this.pager.populate(); this.pager.populate();
this.setPagerVisible(this.options.pages > 1);
} }
}); });
BI.AllCountPager.EVENT_CHANGE = "EVENT_CHANGE"; BI.AllCountPager.EVENT_CHANGE = "EVENT_CHANGE";
@ -9013,7 +8990,7 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
} }
} }
}); });
BI.MultiSelectBar.EVENT_CHANGE = "MultiSelectBar.EVENT_CHANGE"; BI.MultiSelectBar.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.multi_select_bar", BI.MultiSelectBar); BI.shortcut("bi.multi_select_bar", BI.MultiSelectBar);
/** /**
* guy * guy
@ -9504,7 +9481,7 @@ BI.EditorTrigger = BI.inherit(BI.Trigger, {
this.editor.setState(text); this.editor.setState(text);
} }
}); });
BI.EditorTrigger.EVENT_CHANGE = "BI.EditorTrigger.EVENT_CHANGE"; BI.EditorTrigger.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.editor_trigger", BI.EditorTrigger); BI.shortcut("bi.editor_trigger", BI.EditorTrigger);
/** /**
* 图标按钮trigger * 图标按钮trigger

2
dist/core.js vendored

@ -21068,7 +21068,7 @@ BI.ShowListener = BI.inherit(BI.OB, {
} }
} }
}); });
BI.ShowListener.EVENT_CHANGE = "ShowListener.EVENT_CHANGE";/** BI.ShowListener.EVENT_CHANGE = "EVENT_CHANGE";/**
* style加载管理器 * style加载管理器
* *
* Created by GUY on 2015/9/7. * Created by GUY on 2015/9/7.

562
dist/fineui.ie.js vendored

File diff suppressed because it is too large Load Diff

58
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

562
dist/fineui.js vendored

File diff suppressed because it is too large Load Diff

58
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

532
dist/fineui_without_jquery_polyfill.js vendored

File diff suppressed because it is too large Load Diff

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

420
dist/widget.js vendored

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save