Browse Source

Merge pull request #6256 in DEC/fineui from master to feature/x

* commit '1ee48b6bf9fc6562ea5012f600c48a30dec82b1f':
  无JIRA  toast 支持直接传level
  无JIRA 删掉无用的getTime方法,重复了
  BI-103212 fix: checkbox灰化时候选中状态颜色
es6
superman 3 years ago
parent
commit
d965b29c28
  1. 2
      bi.lessconfig.json
  2. 1
      src/base/foundation/message.js
  3. 14
      src/core/2.base.js
  4. 2
      typescript/base/foundation/message.ts

2
bi.lessconfig.json

@ -15,7 +15,7 @@
"@color-bi-background-active-radio-content": "#2C60DB",
"@color-bi-background-disabled-active-radio-content": "#D0D4DA",
"@color-bi-background-disabled-active-radio-content-theme-dark": "#606479",
"@color-bi-background-disabled-active-checkbox-content": "#D0D4DA",
"@color-bi-background-disabled-active-checkbox-content": "#FFFFFF",
"@color-bi-background-disabled-active-checkbox-content-theme-dark": "#606479",
"@color-bi-background-tooltip-success": "#2E3A4D",
"@color-bi-text-header-background": "#647185",

1
src/base/foundation/message.js

@ -22,6 +22,7 @@ BI.Msg = function () {
// BI.Msg.prompt(title, message, value, callback, min_width);
},
toast: function (message, options, context) {
BI.isString(options) && (options = { level: options })
options = options || {};
context = context || BI.Widget._renderEngine.createElement("body");
var level = options.level || "common";

14
src/core/2.base.js

@ -735,20 +735,6 @@
BI[name] = _apply(name);
});
_.extend(BI, {
getTime: function () {
if (_global.performance && _global.performance.now) {
return _global.performance.now();
}
if (_global.performance && _global.performance.webkitNow) {
return _global.performance.webkitNow();
}
if (Date.now) {
return Date.now();
}
return BI.getDate().getTime();
},
parseInt: function (number) {
var radix = 10;

2
typescript/base/foundation/message.ts

@ -2,5 +2,5 @@ export type _msg = {
alert: (title: string, message?: string | {[key: string]: any}, callback?: (result?: boolean)=>void) => void
confirm: (title: string, message?: string | {[key: string]: any}, callback?: (result: boolean)=>void) => void
prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, minWidth?: number) => void
toast: (message: string, options?: object, context?: HTMLElement) => void
toast: (message: string, options?: object | string, context?: HTMLElement) => void
}

Loading…
Cancel
Save