guy 8 years ago
parent
commit
e66a85cf9e
  1. 3
      bi/base.js
  2. 8
      bi/core.js
  3. 3
      docs/base.js
  4. 8
      docs/core.js
  5. 3
      src/base/single/editor/editor.js
  6. 8
      src/core/proto/date.js

3
bi/base.js

@ -17543,6 +17543,7 @@ BI.Editor = BI.inherit(BI.Single, {
rgap: 0, rgap: 0,
tgap: 0, tgap: 0,
bgap: 0, bgap: 0,
//title,warningTitle这两个属性没用
tipType: "warning", tipType: "warning",
inputType: "text", inputType: "text",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
@ -17560,6 +17561,7 @@ BI.Editor = BI.inherit(BI.Single, {
this.editor = this.addWidget(BI.createWidget({ this.editor = this.addWidget(BI.createWidget({
type: "bi.input", type: "bi.input",
element: "<input type='" + o.inputType + "'/>", element: "<input type='" + o.inputType + "'/>",
root: true,
watermark: o.watermark, watermark: o.watermark,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
@ -17579,7 +17581,6 @@ BI.Editor = BI.inherit(BI.Single, {
type: "bi.label", type: "bi.label",
cls: "bi-water-mark", cls: "bi-water-mark",
text: this.options.watermark, text: this.options.watermark,
height: this.options.height,
forceCenter: true, forceCenter: true,
height: o.height - 2 * (o.vgap + o.tgap), height: o.height - 2 * (o.vgap + o.tgap),
whiteSpace: "nowrap", whiteSpace: "nowrap",

8
bi/core.js

@ -6018,6 +6018,14 @@ Date.HOUR = 60 * Date.MINUTE;
Date.DAY = 24 * Date.HOUR; Date.DAY = 24 * Date.HOUR;
Date.WEEK = 7 * Date.DAY; Date.WEEK = 7 * Date.DAY;
/**
* 获取时区
* @returns {String}
*/
Date.prototype.getTimezone = function () {
return this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/, "$1$2").replace(/[^A-Z]/g, "");
};
/** Returns the number of days in the current month */ /** Returns the number of days in the current month */
Date.prototype.getMonthDays = function (month) { Date.prototype.getMonthDays = function (month) {
var year = this.getFullYear(); var year = this.getFullYear();

3
docs/base.js

@ -17543,6 +17543,7 @@ BI.Editor = BI.inherit(BI.Single, {
rgap: 0, rgap: 0,
tgap: 0, tgap: 0,
bgap: 0, bgap: 0,
//title,warningTitle这两个属性没用
tipType: "warning", tipType: "warning",
inputType: "text", inputType: "text",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
@ -17560,6 +17561,7 @@ BI.Editor = BI.inherit(BI.Single, {
this.editor = this.addWidget(BI.createWidget({ this.editor = this.addWidget(BI.createWidget({
type: "bi.input", type: "bi.input",
element: "<input type='" + o.inputType + "'/>", element: "<input type='" + o.inputType + "'/>",
root: true,
watermark: o.watermark, watermark: o.watermark,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
@ -17579,7 +17581,6 @@ BI.Editor = BI.inherit(BI.Single, {
type: "bi.label", type: "bi.label",
cls: "bi-water-mark", cls: "bi-water-mark",
text: this.options.watermark, text: this.options.watermark,
height: this.options.height,
forceCenter: true, forceCenter: true,
height: o.height - 2 * (o.vgap + o.tgap), height: o.height - 2 * (o.vgap + o.tgap),
whiteSpace: "nowrap", whiteSpace: "nowrap",

8
docs/core.js

@ -23514,6 +23514,14 @@ Date.HOUR = 60 * Date.MINUTE;
Date.DAY = 24 * Date.HOUR; Date.DAY = 24 * Date.HOUR;
Date.WEEK = 7 * Date.DAY; Date.WEEK = 7 * Date.DAY;
/**
* 获取时区
* @returns {String}
*/
Date.prototype.getTimezone = function () {
return this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/, "$1$2").replace(/[^A-Z]/g, "");
};
/** Returns the number of days in the current month */ /** Returns the number of days in the current month */
Date.prototype.getMonthDays = function (month) { Date.prototype.getMonthDays = function (month) {
var year = this.getFullYear(); var year = this.getFullYear();

3
src/base/single/editor/editor.js

@ -14,6 +14,7 @@ BI.Editor = BI.inherit(BI.Single, {
rgap: 0, rgap: 0,
tgap: 0, tgap: 0,
bgap: 0, bgap: 0,
//title,warningTitle这两个属性没用
tipType: "warning", tipType: "warning",
inputType: "text", inputType: "text",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
@ -31,6 +32,7 @@ BI.Editor = BI.inherit(BI.Single, {
this.editor = this.addWidget(BI.createWidget({ this.editor = this.addWidget(BI.createWidget({
type: "bi.input", type: "bi.input",
element: "<input type='" + o.inputType + "'/>", element: "<input type='" + o.inputType + "'/>",
root: true,
watermark: o.watermark, watermark: o.watermark,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
@ -50,7 +52,6 @@ BI.Editor = BI.inherit(BI.Single, {
type: "bi.label", type: "bi.label",
cls: "bi-water-mark", cls: "bi-water-mark",
text: this.options.watermark, text: this.options.watermark,
height: this.options.height,
forceCenter: true, forceCenter: true,
height: o.height - 2 * (o.vgap + o.tgap), height: o.height - 2 * (o.vgap + o.tgap),
whiteSpace: "nowrap", whiteSpace: "nowrap",

8
src/core/proto/date.js

@ -66,6 +66,14 @@ Date.HOUR = 60 * Date.MINUTE;
Date.DAY = 24 * Date.HOUR; Date.DAY = 24 * Date.HOUR;
Date.WEEK = 7 * Date.DAY; Date.WEEK = 7 * Date.DAY;
/**
* 获取时区
* @returns {String}
*/
Date.prototype.getTimezone = function () {
return this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/, "$1$2").replace(/[^A-Z]/g, "");
};
/** Returns the number of days in the current month */ /** Returns the number of days in the current month */
Date.prototype.getMonthDays = function (month) { Date.prototype.getMonthDays = function (month) {
var year = this.getFullYear(); var year = this.getFullYear();

Loading…
Cancel
Save