Browse Source

补充web/function

master
Roy.Liu 4 years ago
parent
commit
dfff4c0d1a
  1. 12
      typescript/core/platform/web/function.ts
  2. 6
      typescript/core/platform/web/index.ts
  3. 3
      typescript/index.ts

12
typescript/core/platform/web/function.ts

@ -0,0 +1,12 @@
export type _function = {
isIE: () => boolean;
getIEVersion: () => number;
isEdge: () => boolean;
isChrome: () => boolean;
isFireFox: () => boolean;
isOpera: () => boolean;
isSafari: () => boolean;
isMac: () => boolean;
isWindows: () => boolean;
isSupportCss3: (style: string) => boolean;
}

6
typescript/core/platform/web/index.ts

@ -0,0 +1,6 @@
import { _function } from "./function";
export interface _web extends _function {
}

3
typescript/index.ts

@ -142,6 +142,7 @@ import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.iconte
import { ListView } from './base/list/listview'; import { ListView } from './base/list/listview';
import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center'; import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center';
import { _msg } from './base/foundation/message'; import { _msg } from './base/foundation/message';
import { _web } from './core/platform/web';
type ClassConstructor<T extends {}> = T & { type ClassConstructor<T extends {}> = T & {
@ -151,7 +152,7 @@ type ClassConstructor<T extends {}> = T & {
readonly xtype: string; readonly xtype: string;
} }
export interface BI extends _func, _i18n, _base, _inject, _var { export interface BI extends _func, _i18n, _base, _inject, _var, _web {
OB: ClassConstructor<_OB>; OB: ClassConstructor<_OB>;
Plugin: _Plugin; Plugin: _Plugin;
Widget: ClassConstructor<_Widget> & _WidgetStatic; Widget: ClassConstructor<_Widget> & _WidgetStatic;

Loading…
Cancel
Save