forked from fanruan/fineui
windy
7 years ago
14 changed files with 542 additions and 804 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,50 +0,0 @@
|
||||
/** |
||||
* 有确定取消按钮的弹出层 |
||||
* @class BI.BarPopoverSection |
||||
* @extends BI.PopoverSection |
||||
* @abstract |
||||
*/ |
||||
BI.BarPopoverSection = BI.inherit(BI.PopoverSection, { |
||||
_defaultConfig: function () { |
||||
return BI.extend(BI.BarPopoverSection.superclass._defaultConfig.apply(this, arguments), { |
||||
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] |
||||
}); |
||||
}, |
||||
|
||||
_init: function () { |
||||
BI.BarPopoverSection.superclass._init.apply(this, arguments); |
||||
}, |
||||
|
||||
rebuildSouth: function (south) { |
||||
var self = this, o = this.options; |
||||
this.sure = BI.createWidget({ |
||||
type: "bi.button", |
||||
text: this.options.btns[0], |
||||
warningTitle: o.warningTitle, |
||||
value: 0, |
||||
handler: function (v) { |
||||
self.end(); |
||||
self.close(v); |
||||
} |
||||
}); |
||||
this.cancel = BI.createWidget({ |
||||
type: "bi.button", |
||||
text: this.options.btns[1], |
||||
value: 1, |
||||
level: "ignore", |
||||
handler: function (v) { |
||||
self.close(v); |
||||
} |
||||
}); |
||||
BI.createWidget({ |
||||
type: "bi.right_vertical_adapt", |
||||
element: south, |
||||
lgap: 10, |
||||
items: [this.cancel, this.sure] |
||||
}); |
||||
}, |
||||
|
||||
setConfirmButtonEnable: function (v) { |
||||
this.sure.setEnable(!!v); |
||||
} |
||||
}); |
@ -1,26 +0,0 @@
|
||||
/** |
||||
* 弹出层 |
||||
* @class BI.PopoverSection |
||||
* @extends BI.Widget |
||||
* @abstract |
||||
*/ |
||||
BI.PopoverSection = BI.inherit(BI.Widget, { |
||||
_init: function () { |
||||
BI.PopoverSection.superclass._init.apply(this, arguments); |
||||
}, |
||||
|
||||
rebuildNorth: function (north) { |
||||
return true; |
||||
}, |
||||
rebuildCenter: function (center) {}, |
||||
rebuildSouth: function (south) { |
||||
return false; |
||||
}, |
||||
close: function () { |
||||
this.fireEvent(BI.PopoverSection.EVENT_CLOSE); |
||||
}, |
||||
end: function () { |
||||
|
||||
} |
||||
}); |
||||
BI.PopoverSection.EVENT_CLOSE = "EVENT_CLOSE"; |
Loading…
Reference in new issue