-
Notifications
You must be signed in to change notification settings - Fork 17
/
global.d.ts
64 lines (57 loc) · 1.06 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
declare module "*.png";
declare module "*.gif";
declare module "*.jpg";
declare module "*.jpeg";
declare module "*.svg";
declare module "*.css";
declare module "*.less";
declare module "*.scss";
declare module "*.sass";
declare module "*.styl";
declare const wx;
declare type HashMap = {
[key : string]: number | string | any[]
}
/**
* 表示组件支持通过 className 和 style 进行样式定制
*/
declare interface StyledProps {
/**
* 组件自定义类名
*/
className?: string;
/**
* 组件自定义样式
*/
style?: React.CSSProperties;
}
declare interface SelectorOption {
text: string;
value: string;
}
interface Window {
h5PanelSdk: any;
}
declare interface ListResponse<T> {
list: T[];
total: number;
}
declare interface ReducerAction<T> {
type: T;
payload?: any;
}
declare interface TemplatePropertyConfig {
id: string;
name: string;
mode: string;
define: {
type: string;
mapping?: HashMap;
min?: string;
max?: string;
start?: string;
step?: string;
unit?: string;
};
required?: boolean;
}