Browse Source

Merge pull request #576 in VISUAL/fineui from ~IMP/fineui_fui:master to master

* commit '37c0a7d2ad7feab62b0eccb4baaa809144d479e5':
  format
  format
  压缩
  format
  移动端format
es6
imp 6 years ago
parent
commit
54e7306a59
  1. 1
      Gruntfile.js
  2. 65
      dist/utils.js
  3. 2
      dist/utils.min.js
  4. 66
      utils/date.i18n.js

1
Gruntfile.js

@ -168,6 +168,7 @@ module.exports = function (grunt) {
"src/core/inject.js",
"src/core/utils/*.js",
"utils/date.i18n.js",
"src/data/data.js",
"src/data/**/*.js"
],

65
dist/utils.js vendored

@ -16785,6 +16785,71 @@ BI.Region.prototype = {
return pos;
}
};/**
* Created by astronaut007 on 2018/8/8
*/
// 牵扯到国际化这些常量在页面加载后再生效
// full day names
Date._DN = ["星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六",
"星期日"];
// short day names
Date._SDN = ["日",
"一",
"二",
"三",
"四",
"五",
"六",
"日"];
// Monday first, etc.
Date._FD = 1;
// full month namesdat
Date._MN = [
"一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"十一月",
"十二月",];
// short month names
Date._SMN = [0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11];
Date._QN = ["", "第1季度",
"第2季度",
"第3季度",
"第4季度"];
/** Adds the number of days array to the Date object. */
Date._MD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
// 实际上无论周几作为一周的第一天,周初周末都是在-6-0间做偏移,用一个数组就可以
Date._OFFSET = [0, -1, -2, -3, -4, -5, -6];/**
* 缓冲池
* @type {{Buffer: {}}}
*/

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

66
utils/date.i18n.js

@ -0,0 +1,66 @@
/**
* Created by astronaut007 on 2018/8/8
*/
// 牵扯到国际化这些常量在页面加载后再生效
// full day names
Date._DN = ["星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六",
"星期日"];
// short day names
Date._SDN = ["日",
"一",
"二",
"三",
"四",
"五",
"六",
"日"];
// Monday first, etc.
Date._FD = 1;
// full month namesdat
Date._MN = [
"一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"十一月",
"十二月",];
// short month names
Date._SMN = [0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11];
Date._QN = ["", "第1季度",
"第2季度",
"第3季度",
"第4季度"];
/** Adds the number of days array to the Date object. */
Date._MD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
// 实际上无论周几作为一周的第一天,周初周末都是在-6-0间做偏移,用一个数组就可以
Date._OFFSET = [0, -1, -2, -3, -4, -5, -6];
Loading…
Cancel
Save