forked from fanruan/fineui
Zhenfei.Li
4 years ago
62 changed files with 3379 additions and 2762 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,6 @@
|
||||
import { Widget } from '../../core/widget'; |
||||
export declare class ListView extends Widget { |
||||
static xtype: string; |
||||
restore(): void; |
||||
populate<T>(items: T[]): void; |
||||
} |
@ -0,0 +1,6 @@
|
||||
import { Widget } from '../../../core/widget'; |
||||
export declare class IconTextValueCombo extends Widget { |
||||
static xtype: string; |
||||
static EVENT_CHANGE: string; |
||||
populate<T>(items: T[]): void; |
||||
} |
@ -1,8 +1,8 @@
|
||||
import _array from "./array"; |
||||
import _string from "./string"; |
||||
import _number from "./number"; |
||||
import _function from "./function"; |
||||
import { _Date } from "./date"; |
||||
export interface _func extends _array, _string, _number, _function { |
||||
import { _array } from "./array"; |
||||
import { _string } from "./string"; |
||||
import { _number } from "./number"; |
||||
import { _function } from "./function"; |
||||
import { _Date, _date } from "./date"; |
||||
export interface _func extends _array, _string, _number, _function, _date { |
||||
Date: _Date; |
||||
} |
||||
|
@ -0,0 +1,132 @@
|
||||
export interface _var { |
||||
MAX: number; |
||||
MIN: number; |
||||
EVENT_RESPONSE_TIME: number; |
||||
zIndex_layer: number; |
||||
zIndex_popover: number; |
||||
zIndex_popup: number; |
||||
zIndex_masker: number; |
||||
zIndex_tip: number; |
||||
emptyStr: string; |
||||
emptyFn: Function; |
||||
empty: null; |
||||
Key: { |
||||
48: string; |
||||
49: string; |
||||
50: string; |
||||
51: string; |
||||
52: string; |
||||
53: string; |
||||
54: string; |
||||
55: string; |
||||
56: string; |
||||
57: string; |
||||
65: string; |
||||
66: string; |
||||
67: string; |
||||
68: string; |
||||
69: string; |
||||
70: string; |
||||
71: string; |
||||
72: string; |
||||
73: string; |
||||
74: string; |
||||
75: string; |
||||
76: string; |
||||
77: string; |
||||
78: string; |
||||
79: string; |
||||
80: string; |
||||
81: string; |
||||
82: string; |
||||
83: string; |
||||
84: string; |
||||
85: string; |
||||
86: string; |
||||
87: string; |
||||
88: string; |
||||
89: string; |
||||
90: string; |
||||
96: string; |
||||
97: string; |
||||
98: string; |
||||
99: string; |
||||
100: string; |
||||
101: string; |
||||
102: string; |
||||
103: string; |
||||
104: string; |
||||
105: string; |
||||
106: string; |
||||
107: string; |
||||
109: string; |
||||
110: string; |
||||
111: string; |
||||
}; |
||||
KeyCode: { |
||||
BACKSPACE: number; |
||||
COMMA: number; |
||||
DELETE: number; |
||||
DOWN: number; |
||||
END: number; |
||||
ENTER: number; |
||||
ESCAPE: number; |
||||
HOME: number; |
||||
LEFT: number; |
||||
NUMPAD_ADD: number; |
||||
NUMPAD_DECIMAL: number; |
||||
NUMPAD_DIVIDE: number; |
||||
NUMPAD_ENTER: number; |
||||
NUMPAD_MULTIPLY: number; |
||||
NUMPAD_SUBTRACT: number; |
||||
PAGE_DOWN: number; |
||||
PAGE_UP: number; |
||||
PERIOD: number; |
||||
RIGHT: number; |
||||
SPACE: number; |
||||
TAB: number; |
||||
UP: number; |
||||
}; |
||||
Status: { |
||||
SUCCESS: number; |
||||
WRONG: number; |
||||
START: number; |
||||
END: number; |
||||
WAITING: number; |
||||
READY: number; |
||||
RUNNING: number; |
||||
OUTOFBOUNDS: number; |
||||
NULL: number; |
||||
}; |
||||
Direction: { |
||||
Top: string; |
||||
Bottom: string; |
||||
Left: string; |
||||
Right: string; |
||||
Custom: string; |
||||
}; |
||||
Axis: { |
||||
Vertical: string; |
||||
Horizontal: string; |
||||
}; |
||||
Selection: { |
||||
Default: number; |
||||
None: number; |
||||
Single: number; |
||||
Multi: number; |
||||
All: number; |
||||
}; |
||||
HorizontalAlign: { |
||||
Left: string; |
||||
Right: string; |
||||
Center: string; |
||||
Stretch: string; |
||||
}; |
||||
VerticalAlign: { |
||||
Middle: string; |
||||
Top: string; |
||||
Bottom: string; |
||||
Stretch: string; |
||||
}; |
||||
StartOfWeek: number; |
||||
} |
@ -0,0 +1,4 @@
|
||||
import { Layout } from '../../layout'; |
||||
export declare class FloatCenterLayout extends Layout { |
||||
static xtype: string; |
||||
} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,9 @@
|
||||
import { Widget } from '../../core/widget'; |
||||
|
||||
export declare class ListView extends Widget { |
||||
static xtype: string; |
||||
|
||||
restore(): void; |
||||
|
||||
populate<T>(items: T[]): void; |
||||
} |
@ -0,0 +1,8 @@
|
||||
import { Widget } from '../../../core/widget'; |
||||
|
||||
export declare class IconTextValueCombo extends Widget { |
||||
static xtype: string; |
||||
static EVENT_CHANGE: string; |
||||
|
||||
populate<T>(items: T[]): void; |
||||
} |
@ -1,12 +1,5 @@
|
||||
export type _pushArray = (sArray: any[], array: any[]) => void; |
||||
|
||||
export type _pushDistinct = (sArray: any[], obj: any) => void; |
||||
|
||||
export type _pushDistinctArray = (sArray: any[], array: any[]) => void; |
||||
|
||||
type _array = { |
||||
pushArray: _pushArray; |
||||
pushDistinct: _pushDistinct; |
||||
pushDistinctArray: _pushDistinctArray; |
||||
export type _array = { |
||||
pushArray: (sArray: any[], array: any[]) => void; |
||||
pushDistinct: (sArray: any[], obj: any) => void; |
||||
pushDistinctArray: (sArray: any[], array: any[]) => void; |
||||
} |
||||
export default _array; |
@ -1,9 +1,9 @@
|
||||
import _array from "./array"; |
||||
import _string from "./string"; |
||||
import _number from "./number"; |
||||
import _function from "./function"; |
||||
import { _Date } from "./date"; |
||||
import { _array } from "./array"; |
||||
import { _string } from "./string"; |
||||
import { _number } from "./number"; |
||||
import { _function } from "./function"; |
||||
import { _Date, _date } from "./date"; |
||||
|
||||
export interface _func extends _array, _string, _number, _function { |
||||
export interface _func extends _array, _string, _number, _function, _date { |
||||
Date: _Date; |
||||
} |
||||
|
@ -1,40 +1,34 @@
|
||||
export type _number = { |
||||
|
||||
/** |
||||
* 加法函数,用来得到精确的加法结果 |
||||
* @param {Number} num 被加数 |
||||
* @param {Number} arg 加数 |
||||
* @return {Number} 两个数字相加后的结果 |
||||
*/ |
||||
export type _add = (num: number, arg: number) => number; |
||||
/** |
||||
* 加法函数,用来得到精确的加法结果 |
||||
* @param {Number} num 被加数 |
||||
* @param {Number} arg 加数 |
||||
* @return {Number} 两个数字相加后的结果 |
||||
*/ |
||||
add: (num: number, arg: number) => number; |
||||
|
||||
/** |
||||
* 减法函数,用来得到精确的减法结果 |
||||
* @param {Number} num 被减数 |
||||
* @param {Number} arg 减数 |
||||
* @return {Number} 两个数字相减后的结果 |
||||
*/ |
||||
export type _sub = (num: number, arg: number) => number; |
||||
/** |
||||
* 减法函数,用来得到精确的减法结果 |
||||
* @param {Number} num 被减数 |
||||
* @param {Number} arg 减数 |
||||
* @return {Number} 两个数字相减后的结果 |
||||
*/ |
||||
sub: (num: number, arg: number) => number; |
||||
|
||||
/** |
||||
* 乘法函数,用来得到精确的乘法结果 |
||||
* @param {Number} num 被乘数 |
||||
* @param {Number} arg 乘数 |
||||
* @return {Number} 两个数字相乘后的结果 |
||||
*/ |
||||
export type _mul = (num: number, arg: number) => number; |
||||
/** |
||||
* 乘法函数,用来得到精确的乘法结果 |
||||
* @param {Number} num 被乘数 |
||||
* @param {Number} arg 乘数 |
||||
* @return {Number} 两个数字相乘后的结果 |
||||
*/ |
||||
mul: (num: number, arg: number) => number; |
||||
|
||||
/** |
||||
* 除法函数,用来得到精确的除法结果 |
||||
* @param {Number} num 被除数 |
||||
* @param {Number} arg 除数 |
||||
* @return {Number} 两个数字相除后的结果 |
||||
*/ |
||||
export type _div = (num: number, arg: number) => number; |
||||
|
||||
type _number = { |
||||
add: _add; |
||||
sub: _sub; |
||||
mul: _mul; |
||||
div: _div; |
||||
/** |
||||
* 除法函数,用来得到精确的除法结果 |
||||
* @param {Number} num 被除数 |
||||
* @param {Number} arg 除数 |
||||
* @return {Number} 两个数字相除后的结果 |
||||
*/ |
||||
div: (num: number, arg: number) => number; |
||||
} |
||||
export default _number |
@ -1,66 +1,59 @@
|
||||
/** |
||||
* 判断字符串是否已指定的字符串开始 |
||||
* @param str source字符串 |
||||
* @param {String} startTag 指定的开始字符串 |
||||
* @return {Boolean} 如果字符串以指定字符串开始则返回true,否则返回false |
||||
*/ |
||||
export type _startWith = (str: string, startTag: string) => boolean; |
||||
export type _string = { |
||||
|
||||
/** |
||||
* 判断字符串是否已指定的字符串开始 |
||||
* @param str source字符串 |
||||
* @param {String} startTag 指定的开始字符串 |
||||
* @return {Boolean} 如果字符串以指定字符串开始则返回true,否则返回false |
||||
*/ |
||||
startWith: (str: string, startTag: string) => boolean; |
||||
|
||||
/** |
||||
* 判断字符串是否以指定的字符串结束 |
||||
* @param str source字符串 |
||||
* @param {String} endTag 指定的字符串 |
||||
* @return {Boolean} 如果字符串以指定字符串结束则返回true,否则返回false |
||||
*/ |
||||
export type _endWith = (str: string, endTag: string) => boolean; |
||||
/** |
||||
* 判断字符串是否以指定的字符串结束 |
||||
* @param str source字符串 |
||||
* @param {String} endTag 指定的字符串 |
||||
* @return {Boolean} 如果字符串以指定字符串结束则返回true,否则返回false |
||||
*/ |
||||
endWith: (str: string, endTag: string) => boolean; |
||||
|
||||
/** |
||||
* 获取url中指定名字的参数 |
||||
* @param str source字符串 |
||||
* @param {String} name 参数的名字 |
||||
* @return {String} 参数的值 |
||||
*/ |
||||
export type _getQuery = (str: string, name: string) => string|null; |
||||
/** |
||||
* 获取url中指定名字的参数 |
||||
* @param str source字符串 |
||||
* @param {String} name 参数的名字 |
||||
* @return {String} 参数的值 |
||||
*/ |
||||
getQuery: (str: string, name: string) => string|null; |
||||
|
||||
/** |
||||
* 给url加上给定的参数 |
||||
* @param str source字符串 |
||||
* @param {Object} paras 参数对象,是一个键值对对象 |
||||
* @return {String} 添加了给定参数的url |
||||
*/ |
||||
export type _appendQuery = (str: string, paras: {[key: string]: string|number}) => string; |
||||
/** |
||||
* 给url加上给定的参数 |
||||
* @param str source字符串 |
||||
* @param {Object} paras 参数对象,是一个键值对对象 |
||||
* @return {String} 添加了给定参数的url |
||||
*/ |
||||
appendQuery: (str: string, paras: {[key: string]: string|number}) => string; |
||||
|
||||
/** |
||||
* 将所有符合第一个字符串所表示的字符串替换成为第二个字符串 |
||||
* @param str source字符串 |
||||
* @param {String} s1 要替换的字符串的正则表达式 |
||||
* @param {String} s2 替换的结果字符串 |
||||
* @returns {String} 替换后的字符串 |
||||
*/ |
||||
export type _replaceAll = (str: string, s1: string, s2: string) => string; |
||||
/** |
||||
* 将所有符合第一个字符串所表示的字符串替换成为第二个字符串 |
||||
* @param str source字符串 |
||||
* @param {String} s1 要替换的字符串的正则表达式 |
||||
* @param {String} s2 替换的结果字符串 |
||||
* @returns {String} 替换后的字符串 |
||||
*/ |
||||
replaceAll: (str: string, s1: string, s2: string) => string; |
||||
|
||||
/** |
||||
* 总是让字符串以指定的字符开头 |
||||
* @param str source字符串 |
||||
* @param {String} start 指定的字符 |
||||
* @returns {String} 以指定字符开头的字符串 |
||||
*/ |
||||
export type _perfectStart = (str: string, start: string) => string; |
||||
/** |
||||
* 总是让字符串以指定的字符开头 |
||||
* @param str source字符串 |
||||
* @param {String} start 指定的字符 |
||||
* @returns {String} 以指定字符开头的字符串 |
||||
*/ |
||||
perfectStart: (str: string, start: string) => string; |
||||
|
||||
/** |
||||
* 获取字符串中某字符串的所有项位置数组 |
||||
* @param str source字符串 |
||||
* @param {String} sub 子字符串 |
||||
* @return {Number[]} 子字符串在父字符串中出现的所有位置组成的数组 |
||||
*/ |
||||
export type _allIndexOf = (str: string, sub: string) => number[]; |
||||
type _string = { |
||||
startWith: _startWith; |
||||
endWith: _endWith; |
||||
getQuery: _getQuery; |
||||
appendQuery: _appendQuery; |
||||
replaceAll: _replaceAll; |
||||
perfectStart: _perfectStart; |
||||
allIndexOf: _allIndexOf; |
||||
/** |
||||
* 获取字符串中某字符串的所有项位置数组 |
||||
* @param str source字符串 |
||||
* @param {String} sub 子字符串 |
||||
* @return {Number[]} 子字符串在父字符串中出现的所有位置组成的数组 |
||||
*/ |
||||
allIndexOf: (str: string, sub: string) => number[]; |
||||
} |
||||
export default _string |
@ -0,0 +1,132 @@
|
||||
export interface _var { |
||||
MAX: number; |
||||
MIN: number; |
||||
EVENT_RESPONSE_TIME: number; |
||||
zIndex_layer: number; |
||||
zIndex_popover: number; |
||||
zIndex_popup: number; |
||||
zIndex_masker: number; |
||||
zIndex_tip: number; |
||||
emptyStr: string; |
||||
emptyFn: Function; |
||||
empty: null, |
||||
Key: { |
||||
48: string; |
||||
49: string; |
||||
50: string; |
||||
51: string; |
||||
52: string; |
||||
53: string; |
||||
54: string; |
||||
55: string; |
||||
56: string; |
||||
57: string; |
||||
65: string; |
||||
66: string; |
||||
67: string; |
||||
68: string; |
||||
69: string; |
||||
70: string; |
||||
71: string; |
||||
72: string; |
||||
73: string; |
||||
74: string; |
||||
75: string; |
||||
76: string; |
||||
77: string; |
||||
78: string; |
||||
79: string; |
||||
80: string; |
||||
81: string; |
||||
82: string; |
||||
83: string; |
||||
84: string; |
||||
85: string; |
||||
86: string; |
||||
87: string; |
||||
88: string; |
||||
89: string; |
||||
90: string; |
||||
96: string; |
||||
97: string; |
||||
98: string; |
||||
99: string; |
||||
100: string; |
||||
101: string; |
||||
102: string; |
||||
103: string; |
||||
104: string; |
||||
105: string; |
||||
106: string; |
||||
107: string; |
||||
109: string; |
||||
110: string; |
||||
111: string; |
||||
}, |
||||
KeyCode: { |
||||
BACKSPACE: number; |
||||
COMMA: number; |
||||
DELETE: number; |
||||
DOWN: number; |
||||
END: number; |
||||
ENTER: number; |
||||
ESCAPE: number; |
||||
HOME: number; |
||||
LEFT: number; |
||||
NUMPAD_ADD: number; |
||||
NUMPAD_DECIMAL: number; |
||||
NUMPAD_DIVIDE: number; |
||||
NUMPAD_ENTER: number; |
||||
NUMPAD_MULTIPLY: number; |
||||
NUMPAD_SUBTRACT: number; |
||||
PAGE_DOWN: number; |
||||
PAGE_UP: number; |
||||
PERIOD: number; |
||||
RIGHT: number; |
||||
SPACE: number; |
||||
TAB: number; |
||||
UP: number; |
||||
}, |
||||
Status: { |
||||
SUCCESS: number; |
||||
WRONG: number; |
||||
START: number; |
||||
END: number; |
||||
WAITING: number; |
||||
READY: number; |
||||
RUNNING: number; |
||||
OUTOFBOUNDS: number; |
||||
NULL: number; |
||||
}, |
||||
Direction: { |
||||
Top: string; |
||||
Bottom: string; |
||||
Left: string; |
||||
Right: string; |
||||
Custom: string; |
||||
}, |
||||
Axis: { |
||||
Vertical: string; |
||||
Horizontal: string; |
||||
}, |
||||
Selection: { |
||||
Default: number; |
||||
None: number; |
||||
Single: number; |
||||
Multi: number; |
||||
All: number; |
||||
}, |
||||
HorizontalAlign: { |
||||
Left: string; |
||||
Right: string; |
||||
Center: string; |
||||
Stretch: string; |
||||
}, |
||||
VerticalAlign: { |
||||
Middle: string; |
||||
Top: string; |
||||
Bottom: string; |
||||
Stretch: string; |
||||
}, |
||||
StartOfWeek: number; |
||||
} |
@ -0,0 +1,5 @@
|
||||
import { Layout } from '../../layout'; |
||||
|
||||
export declare class FloatCenterLayout extends Layout { |
||||
static xtype: string; |
||||
} |
Loading…
Reference in new issue