Browse Source
Merge in VISUAL/fineui from ~GUY/fineui:master to master * commit '3de35086633999de76719c6cec836647430e589a': feature: 日期不用放prepares里去了,prepares可以不init问题也不大了es6
guy-王川
2 years ago
6 changed files with 76 additions and 142 deletions
@ -1,67 +0,0 @@
|
||||
/** |
||||
* Created by astronaut007 on 2018/8/8 |
||||
*/ |
||||
// 牵扯到国际化这些常量在页面加载后再生效
|
||||
// full day names
|
||||
BI.Date = BI.Date || {}; |
||||
BI.Date._DN = ["星期日", |
||||
"星期一", |
||||
"星期二", |
||||
"星期三", |
||||
"星期四", |
||||
"星期五", |
||||
"星期六", |
||||
"星期日"]; |
||||
|
||||
// short day names
|
||||
BI.Date._SDN = ["日", |
||||
"一", |
||||
"二", |
||||
"三", |
||||
"四", |
||||
"五", |
||||
"六", |
||||
"日"]; |
||||
|
||||
// Monday first, etc.
|
||||
BI.Date._FD = 1; |
||||
|
||||
// full month namesdat
|
||||
BI.Date._MN = [ |
||||
"一月", |
||||
"二月", |
||||
"三月", |
||||
"四月", |
||||
"五月", |
||||
"六月", |
||||
"七月", |
||||
"八月", |
||||
"九月", |
||||
"十月", |
||||
"十一月", |
||||
"十二月"]; |
||||
|
||||
// short month names
|
||||
BI.Date._SMN = [0, |
||||
1, |
||||
2, |
||||
3, |
||||
4, |
||||
5, |
||||
6, |
||||
7, |
||||
8, |
||||
9, |
||||
10, |
||||
11]; |
||||
|
||||
BI.Date._QN = ["", "第1季度", |
||||
"第2季度", |
||||
"第3季度", |
||||
"第4季度"]; |
||||
|
||||
/** Adds the number of days array to the Date object. */ |
||||
BI.Date._MD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; |
||||
|
||||
// 实际上无论周几作为一周的第一天,周初周末都是在-6-0间做偏移,用一个数组就可以
|
||||
BI.Date._OFFSET = [0, -1, -2, -3, -4, -5, -6]; |
@ -1,66 +0,0 @@
|
||||
BI.prepares.push(function () { |
||||
BI.Date = BI.Date || {}; |
||||
// 牵扯到国际化这些常量在页面加载后再生效
|
||||
// full day names
|
||||
BI.Date._DN = [BI.i18nText("BI-Basic_Sunday"), |
||||
BI.i18nText("BI-Basic_Monday"), |
||||
BI.i18nText("BI-Basic_Tuesday"), |
||||
BI.i18nText("BI-Basic_Wednesday"), |
||||
BI.i18nText("BI-Basic_Thursday"), |
||||
BI.i18nText("BI-Basic_Friday"), |
||||
BI.i18nText("BI-Basic_Saturday"), |
||||
BI.i18nText("BI-Basic_Sunday")]; |
||||
|
||||
// short day names
|
||||
BI.Date._SDN = [BI.i18nText("BI-Basic_Simple_Sunday"), |
||||
BI.i18nText("BI-Basic_Simple_Monday"), |
||||
BI.i18nText("BI-Basic_Simple_Tuesday"), |
||||
BI.i18nText("BI-Basic_Simple_Wednesday"), |
||||
BI.i18nText("BI-Basic_Simple_Thursday"), |
||||
BI.i18nText("BI-Basic_Simple_Friday"), |
||||
BI.i18nText("BI-Basic_Simple_Saturday"), |
||||
BI.i18nText("BI-Basic_Simple_Sunday")]; |
||||
|
||||
// Monday first, etc.
|
||||
BI.Date._FD = 1; |
||||
|
||||
// full month namesdat
|
||||
BI.Date._MN = [ |
||||
BI.i18nText("BI-Basic_January"), |
||||
BI.i18nText("BI-Basic_February"), |
||||
BI.i18nText("BI-Basic_March"), |
||||
BI.i18nText("BI-Basic_April"), |
||||
BI.i18nText("BI-Basic_May"), |
||||
BI.i18nText("BI-Basic_June"), |
||||
BI.i18nText("BI-Basic_July"), |
||||
BI.i18nText("BI-Basic_August"), |
||||
BI.i18nText("BI-Basic_September"), |
||||
BI.i18nText("BI-Basic_October"), |
||||
BI.i18nText("BI-Basic_November"), |
||||
BI.i18nText("BI-Basic_December")]; |
||||
|
||||
// short month names
|
||||
BI.Date._SMN = [0, |
||||
1, |
||||
2, |
||||
3, |
||||
4, |
||||
5, |
||||
6, |
||||
7, |
||||
8, |
||||
9, |
||||
10, |
||||
11]; |
||||
|
||||
BI.Date._QN = ["", BI.i18nText("BI-Quarter_1"), |
||||
BI.i18nText("BI-Quarter_2"), |
||||
BI.i18nText("BI-Quarter_3"), |
||||
BI.i18nText("BI-Quarter_4")]; |
||||
|
||||
/** Adds the number of days array to the Date object. */ |
||||
BI.Date._MD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; |
||||
|
||||
// 实际上无论周几作为一周的第一天,周初周末都是在-6-0间做偏移,用一个数组就可以
|
||||
BI.Date._OFFSET = [0, -1, -2, -3, -4, -5, -6]; |
||||
}); |
Loading…
Reference in new issue