fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/**
|
|
|
|
* 普通控件
|
|
|
|
*
|
|
|
|
* @class BI.MonthCard
|
|
|
|
* @extends BI.MultiDateCard
|
|
|
|
*/
|
|
|
|
BI.MonthCard = BI.inherit(BI.MultiDateCard, {
|
|
|
|
_defaultConfig: function () {
|
|
|
|
return $.extend(BI.MonthCard.superclass._defaultConfig.apply(this, arguments), {
|
|
|
|
baseCls: "bi-multidate-monthcard"
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
_init: function () {
|
|
|
|
BI.MonthCard.superclass._init.apply(this, arguments);
|
|
|
|
},
|
|
|
|
|
|
|
|
dateConfig: function () {
|
|
|
|
return [{
|
|
|
|
selected: true,
|
|
|
|
isEditorExist: true,
|
|
|
|
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV,
|
|
|
|
text: BI.i18nText("BI-Multi_Date_Month_Prev")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
isEditorExist: true,
|
|
|
|
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_AFTER,
|
|
|
|
text: BI.i18nText("BI-Multi_Date_Month_Next")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_BEGIN,
|
|
|
|
isEditorExist: false,
|
|
|
|
text: BI.i18nText("BI-Multi_Date_Month_Begin")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_END,
|
|
|
|
isEditorExist: false,
|
|
|
|
text: BI.i18nText("BI-Multi_Date_Month_End")
|
|
|
|
}];
|
|
|
|
},
|
|
|
|
|
|
|
|
defaultSelectedItem: function () {
|
|
|
|
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_MONTH_PREV;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
BI.MonthCard.EVENT_CHANGE = "EVENT_CHANGE";
|
|
|
|
BI.shortcut("bi.monthcard", BI.MonthCard);
|