@guiwzh/small-design 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +230 -0
- package/dist/index.css +979 -0
- package/dist/index.d.mts +215 -0
- package/dist/index.d.ts +215 -0
- package/dist/index.js +1193 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1143 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +99 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import React$1, { ReactNode, FC, InputHTMLAttributes, ReactElement, CSSProperties, PropsWithChildren, RefObject } from 'react';
|
|
2
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
4
|
+
import { CSSTransitionProps } from 'react-transition-group/CSSTransition';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
type ButtonSize = 'lg' | 'sm';
|
|
8
|
+
type ButtonType = 'primary' | 'default' | 'danger' | 'link';
|
|
9
|
+
interface BaseButtonProps {
|
|
10
|
+
className?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
size?: ButtonSize;
|
|
13
|
+
btnType?: ButtonType;
|
|
14
|
+
href?: string;
|
|
15
|
+
}
|
|
16
|
+
type NativeButtonProps = React$1.ButtonHTMLAttributes<HTMLElement>;
|
|
17
|
+
type AnchorButtonProps = React$1.AnchorHTMLAttributes<HTMLElement>;
|
|
18
|
+
type ButtonProps = Partial<NativeButtonProps & AnchorButtonProps> & BaseButtonProps;
|
|
19
|
+
declare const Button: React$1.FC<ButtonProps>;
|
|
20
|
+
|
|
21
|
+
type Menumode = "horizontal" | "vertical";
|
|
22
|
+
type SelectCallback = (Index: string, e: React$1.MouseEvent) => void;
|
|
23
|
+
interface MenuProps {
|
|
24
|
+
defaultIndex?: string; /**默认 active 的菜单项的索引值 */
|
|
25
|
+
className?: string;
|
|
26
|
+
mode?: Menumode;
|
|
27
|
+
style?: React$1.CSSProperties;
|
|
28
|
+
onSelect?: SelectCallback;
|
|
29
|
+
children?: React$1.ReactNode;
|
|
30
|
+
defaultOpenSubMenus?: string[]; /**设置子菜单的默认打开 只在纵向模式下生效 */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface SubMenuProps {
|
|
34
|
+
index?: string;
|
|
35
|
+
/**下拉菜单选项的文字 */
|
|
36
|
+
title: string;
|
|
37
|
+
/**下拉菜单选型的扩展类名 */
|
|
38
|
+
className?: string;
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
}
|
|
41
|
+
declare const SubMenu: FC<SubMenuProps>;
|
|
42
|
+
|
|
43
|
+
interface MenuItemProps {
|
|
44
|
+
index?: string;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
className?: string;
|
|
47
|
+
style?: React$1.CSSProperties;
|
|
48
|
+
children?: React$1.ReactNode;
|
|
49
|
+
}
|
|
50
|
+
declare const MenuItem: React$1.FC<MenuItemProps>;
|
|
51
|
+
|
|
52
|
+
type IMenuComponent = FC<MenuProps> & {
|
|
53
|
+
Item: FC<MenuItemProps>;
|
|
54
|
+
SubMenu: FC<SubMenuProps>;
|
|
55
|
+
};
|
|
56
|
+
declare const TransMenu: IMenuComponent;
|
|
57
|
+
|
|
58
|
+
type InputSize = 'lg' | 'sm';
|
|
59
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLElement>, 'size'> {
|
|
60
|
+
/**是否禁用 Input */
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
/**设置 input 大小,支持 lg 或者是 sm */
|
|
63
|
+
size?: InputSize;
|
|
64
|
+
/**添加图标,在右侧悬浮添加一个图标,用于提示 */
|
|
65
|
+
icon?: IconProp;
|
|
66
|
+
/**添加前缀 用于配置一些固定组合 */
|
|
67
|
+
prepend?: string | ReactElement;
|
|
68
|
+
/**添加后缀 用于配置一些固定组合 */
|
|
69
|
+
append?: string | ReactElement;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Input 输入框 通过鼠标或键盘输入内容,是最基础的表单域的包装。
|
|
73
|
+
*
|
|
74
|
+
* ~~~js
|
|
75
|
+
* // 这样引用
|
|
76
|
+
* import { Input } from 'vikingship'
|
|
77
|
+
* ~~~
|
|
78
|
+
*
|
|
79
|
+
* 支持 HTMLInput 的所有基本属性
|
|
80
|
+
*/
|
|
81
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
82
|
+
|
|
83
|
+
interface DataSourceType {
|
|
84
|
+
value: string;
|
|
85
|
+
[key: string]: unknown;
|
|
86
|
+
}
|
|
87
|
+
interface AutoCompletProps extends Omit<InputProps, 'onSelect' | 'onChange' | 'value'> {
|
|
88
|
+
value?: string;
|
|
89
|
+
fetchSuggestions: (string: string) => DataSourceType[] | Promise<DataSourceType[]>;
|
|
90
|
+
onSelect?: (item: DataSourceType) => void;
|
|
91
|
+
onChange?: (str: string) => void;
|
|
92
|
+
onEnterDown?: (item: DataSourceType) => void;
|
|
93
|
+
onError?: (error: unknown) => void;
|
|
94
|
+
renderOption?: (item: DataSourceType) => ReactElement;
|
|
95
|
+
debounceTime?: number;
|
|
96
|
+
expireTime?: number;
|
|
97
|
+
}
|
|
98
|
+
declare const AutoComplete: FC<AutoCompletProps>;
|
|
99
|
+
|
|
100
|
+
type ThemeProps = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'light' | 'dark';
|
|
101
|
+
interface IconProps extends FontAwesomeIconProps {
|
|
102
|
+
/** 支持框架主题 根据主题显示不同的颜色 */
|
|
103
|
+
theme?: ThemeProps;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 提供了一套常用的图标集合 基于 react-fontawesome。
|
|
107
|
+
*
|
|
108
|
+
* 支持 react-fontawesome的所有属性 可以在这里查询 https://github.com/FortAwesome/react-fontawesome#basic
|
|
109
|
+
*
|
|
110
|
+
* 支持 fontawesome 所有 free-solid-icons,可以在这里查看所有图标 https://fontawesome.com/icons?d=gallery&s=solid&m=free
|
|
111
|
+
* ### 引用方法
|
|
112
|
+
*
|
|
113
|
+
* ~~~js
|
|
114
|
+
* import { Icon } from 'vikingship'
|
|
115
|
+
* ~~~
|
|
116
|
+
*/
|
|
117
|
+
declare const Icon: FC<IconProps>;
|
|
118
|
+
|
|
119
|
+
interface UploadFile {
|
|
120
|
+
uid: string;
|
|
121
|
+
size: number;
|
|
122
|
+
name: string;
|
|
123
|
+
status?: "ready" | "error" | "success" | "uploading";
|
|
124
|
+
raw?: File;
|
|
125
|
+
response?: any;
|
|
126
|
+
percent?: number;
|
|
127
|
+
error?: any;
|
|
128
|
+
}
|
|
129
|
+
interface UploadProps {
|
|
130
|
+
action: string;
|
|
131
|
+
beforeUpload?: (file: File) => boolean | Promise<File>;
|
|
132
|
+
onprogress?: (percentage: number, file: UploadFile) => void;
|
|
133
|
+
onSuccess?: (data: any, file: UploadFile) => void;
|
|
134
|
+
onError?: (err: any, file: UploadFile) => void;
|
|
135
|
+
onChange?: (file: UploadFile) => void;
|
|
136
|
+
onRemove?: (file: UploadFile) => void;
|
|
137
|
+
onExceed?: (message: string) => void;
|
|
138
|
+
headers?: Record<string, string>;
|
|
139
|
+
name?: string;
|
|
140
|
+
data?: Record<string, string | Blob>;
|
|
141
|
+
withCredentials?: boolean;
|
|
142
|
+
accept?: string;
|
|
143
|
+
multiple?: boolean;
|
|
144
|
+
children?: ReactNode;
|
|
145
|
+
drag?: boolean;
|
|
146
|
+
maxsize?: number;
|
|
147
|
+
maxnum?: number;
|
|
148
|
+
failednums?: number;
|
|
149
|
+
styleDrag?: React.CSSProperties;
|
|
150
|
+
styleButton?: React.CSSProperties;
|
|
151
|
+
styleUploadList?: React.CSSProperties;
|
|
152
|
+
limit?: number;
|
|
153
|
+
}
|
|
154
|
+
declare const Upload: FC<UploadProps>;
|
|
155
|
+
|
|
156
|
+
interface ProgressProps {
|
|
157
|
+
percent: number;
|
|
158
|
+
strokeHeight?: number;
|
|
159
|
+
showText?: boolean;
|
|
160
|
+
style?: React$1.CSSProperties;
|
|
161
|
+
theme?: ThemeProps;
|
|
162
|
+
}
|
|
163
|
+
declare const Progress: FC<ProgressProps>;
|
|
164
|
+
|
|
165
|
+
interface SignatureProps {
|
|
166
|
+
width?: number;
|
|
167
|
+
height?: number;
|
|
168
|
+
style?: React.CSSProperties;
|
|
169
|
+
onSave?: (dataUrl: string | undefined) => void;
|
|
170
|
+
}
|
|
171
|
+
declare const Signature: FC<SignatureProps>;
|
|
172
|
+
|
|
173
|
+
type AnimationName = 'zoom-in-top' | 'zoom-in-left' | 'zoom-in-bottom' | 'zoom-in-right';
|
|
174
|
+
type TransitionProps = CSSTransitionProps & {
|
|
175
|
+
animation?: AnimationName;
|
|
176
|
+
wrapper?: boolean;
|
|
177
|
+
children?: ReactNode;
|
|
178
|
+
};
|
|
179
|
+
declare const Transition: React$1.FC<TransitionProps>;
|
|
180
|
+
|
|
181
|
+
interface VirtualListProps {
|
|
182
|
+
containerHeight: number;
|
|
183
|
+
itemHeight: number;
|
|
184
|
+
itemCount: number;
|
|
185
|
+
children: JSX.Element;
|
|
186
|
+
}
|
|
187
|
+
declare const VirtualList: FC<VirtualListProps>;
|
|
188
|
+
|
|
189
|
+
interface LazyloadProps {
|
|
190
|
+
className?: string;
|
|
191
|
+
style?: CSSProperties;
|
|
192
|
+
placeholder?: ReactNode;
|
|
193
|
+
offset?: string | number;
|
|
194
|
+
width?: number | string;
|
|
195
|
+
height?: string | number;
|
|
196
|
+
onContentVisible?: () => void;
|
|
197
|
+
children: ReactNode;
|
|
198
|
+
}
|
|
199
|
+
declare const Lazyload: FC<LazyloadProps>;
|
|
200
|
+
|
|
201
|
+
interface KeepAliveLayoutProps extends PropsWithChildren {
|
|
202
|
+
keepPaths: Array<string | RegExp>;
|
|
203
|
+
keepElements?: Record<string, ReactNode>;
|
|
204
|
+
dropByPath?: (path: string) => void;
|
|
205
|
+
}
|
|
206
|
+
type KeepAliveContextType = Omit<Required<KeepAliveLayoutProps>, "children">;
|
|
207
|
+
declare const KeepAliveContext: React$1.Context<KeepAliveContextType>;
|
|
208
|
+
declare function useKeepOutlet(): react_jsx_runtime.JSX.Element;
|
|
209
|
+
declare const KeepAliveLayout: FC<KeepAliveLayoutProps>;
|
|
210
|
+
|
|
211
|
+
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
212
|
+
|
|
213
|
+
declare function useClickOutside(ref: RefObject<HTMLElement>, handler: (event: MouseEvent) => void): void;
|
|
214
|
+
|
|
215
|
+
export { type AutoCompletProps, AutoComplete, Button, type ButtonSize, type ButtonType, type DataSourceType, type IMenuComponent, Icon, type IconProps, Input, type InputProps, KeepAliveContext, KeepAliveLayout, Lazyload as LazyLoad, TransMenu as Menu, MenuItem, type MenuItemProps, type MenuProps, Progress, type ProgressProps, Signature, SubMenu, type SubMenuProps, type ThemeProps, Transition, Upload, type UploadFile, type UploadProps, VirtualList, useClickOutside, useDebounce, useKeepOutlet };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import React$1, { ReactNode, FC, InputHTMLAttributes, ReactElement, CSSProperties, PropsWithChildren, RefObject } from 'react';
|
|
2
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
4
|
+
import { CSSTransitionProps } from 'react-transition-group/CSSTransition';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
type ButtonSize = 'lg' | 'sm';
|
|
8
|
+
type ButtonType = 'primary' | 'default' | 'danger' | 'link';
|
|
9
|
+
interface BaseButtonProps {
|
|
10
|
+
className?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
size?: ButtonSize;
|
|
13
|
+
btnType?: ButtonType;
|
|
14
|
+
href?: string;
|
|
15
|
+
}
|
|
16
|
+
type NativeButtonProps = React$1.ButtonHTMLAttributes<HTMLElement>;
|
|
17
|
+
type AnchorButtonProps = React$1.AnchorHTMLAttributes<HTMLElement>;
|
|
18
|
+
type ButtonProps = Partial<NativeButtonProps & AnchorButtonProps> & BaseButtonProps;
|
|
19
|
+
declare const Button: React$1.FC<ButtonProps>;
|
|
20
|
+
|
|
21
|
+
type Menumode = "horizontal" | "vertical";
|
|
22
|
+
type SelectCallback = (Index: string, e: React$1.MouseEvent) => void;
|
|
23
|
+
interface MenuProps {
|
|
24
|
+
defaultIndex?: string; /**默认 active 的菜单项的索引值 */
|
|
25
|
+
className?: string;
|
|
26
|
+
mode?: Menumode;
|
|
27
|
+
style?: React$1.CSSProperties;
|
|
28
|
+
onSelect?: SelectCallback;
|
|
29
|
+
children?: React$1.ReactNode;
|
|
30
|
+
defaultOpenSubMenus?: string[]; /**设置子菜单的默认打开 只在纵向模式下生效 */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface SubMenuProps {
|
|
34
|
+
index?: string;
|
|
35
|
+
/**下拉菜单选项的文字 */
|
|
36
|
+
title: string;
|
|
37
|
+
/**下拉菜单选型的扩展类名 */
|
|
38
|
+
className?: string;
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
}
|
|
41
|
+
declare const SubMenu: FC<SubMenuProps>;
|
|
42
|
+
|
|
43
|
+
interface MenuItemProps {
|
|
44
|
+
index?: string;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
className?: string;
|
|
47
|
+
style?: React$1.CSSProperties;
|
|
48
|
+
children?: React$1.ReactNode;
|
|
49
|
+
}
|
|
50
|
+
declare const MenuItem: React$1.FC<MenuItemProps>;
|
|
51
|
+
|
|
52
|
+
type IMenuComponent = FC<MenuProps> & {
|
|
53
|
+
Item: FC<MenuItemProps>;
|
|
54
|
+
SubMenu: FC<SubMenuProps>;
|
|
55
|
+
};
|
|
56
|
+
declare const TransMenu: IMenuComponent;
|
|
57
|
+
|
|
58
|
+
type InputSize = 'lg' | 'sm';
|
|
59
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLElement>, 'size'> {
|
|
60
|
+
/**是否禁用 Input */
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
/**设置 input 大小,支持 lg 或者是 sm */
|
|
63
|
+
size?: InputSize;
|
|
64
|
+
/**添加图标,在右侧悬浮添加一个图标,用于提示 */
|
|
65
|
+
icon?: IconProp;
|
|
66
|
+
/**添加前缀 用于配置一些固定组合 */
|
|
67
|
+
prepend?: string | ReactElement;
|
|
68
|
+
/**添加后缀 用于配置一些固定组合 */
|
|
69
|
+
append?: string | ReactElement;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Input 输入框 通过鼠标或键盘输入内容,是最基础的表单域的包装。
|
|
73
|
+
*
|
|
74
|
+
* ~~~js
|
|
75
|
+
* // 这样引用
|
|
76
|
+
* import { Input } from 'vikingship'
|
|
77
|
+
* ~~~
|
|
78
|
+
*
|
|
79
|
+
* 支持 HTMLInput 的所有基本属性
|
|
80
|
+
*/
|
|
81
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
82
|
+
|
|
83
|
+
interface DataSourceType {
|
|
84
|
+
value: string;
|
|
85
|
+
[key: string]: unknown;
|
|
86
|
+
}
|
|
87
|
+
interface AutoCompletProps extends Omit<InputProps, 'onSelect' | 'onChange' | 'value'> {
|
|
88
|
+
value?: string;
|
|
89
|
+
fetchSuggestions: (string: string) => DataSourceType[] | Promise<DataSourceType[]>;
|
|
90
|
+
onSelect?: (item: DataSourceType) => void;
|
|
91
|
+
onChange?: (str: string) => void;
|
|
92
|
+
onEnterDown?: (item: DataSourceType) => void;
|
|
93
|
+
onError?: (error: unknown) => void;
|
|
94
|
+
renderOption?: (item: DataSourceType) => ReactElement;
|
|
95
|
+
debounceTime?: number;
|
|
96
|
+
expireTime?: number;
|
|
97
|
+
}
|
|
98
|
+
declare const AutoComplete: FC<AutoCompletProps>;
|
|
99
|
+
|
|
100
|
+
type ThemeProps = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'light' | 'dark';
|
|
101
|
+
interface IconProps extends FontAwesomeIconProps {
|
|
102
|
+
/** 支持框架主题 根据主题显示不同的颜色 */
|
|
103
|
+
theme?: ThemeProps;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 提供了一套常用的图标集合 基于 react-fontawesome。
|
|
107
|
+
*
|
|
108
|
+
* 支持 react-fontawesome的所有属性 可以在这里查询 https://github.com/FortAwesome/react-fontawesome#basic
|
|
109
|
+
*
|
|
110
|
+
* 支持 fontawesome 所有 free-solid-icons,可以在这里查看所有图标 https://fontawesome.com/icons?d=gallery&s=solid&m=free
|
|
111
|
+
* ### 引用方法
|
|
112
|
+
*
|
|
113
|
+
* ~~~js
|
|
114
|
+
* import { Icon } from 'vikingship'
|
|
115
|
+
* ~~~
|
|
116
|
+
*/
|
|
117
|
+
declare const Icon: FC<IconProps>;
|
|
118
|
+
|
|
119
|
+
interface UploadFile {
|
|
120
|
+
uid: string;
|
|
121
|
+
size: number;
|
|
122
|
+
name: string;
|
|
123
|
+
status?: "ready" | "error" | "success" | "uploading";
|
|
124
|
+
raw?: File;
|
|
125
|
+
response?: any;
|
|
126
|
+
percent?: number;
|
|
127
|
+
error?: any;
|
|
128
|
+
}
|
|
129
|
+
interface UploadProps {
|
|
130
|
+
action: string;
|
|
131
|
+
beforeUpload?: (file: File) => boolean | Promise<File>;
|
|
132
|
+
onprogress?: (percentage: number, file: UploadFile) => void;
|
|
133
|
+
onSuccess?: (data: any, file: UploadFile) => void;
|
|
134
|
+
onError?: (err: any, file: UploadFile) => void;
|
|
135
|
+
onChange?: (file: UploadFile) => void;
|
|
136
|
+
onRemove?: (file: UploadFile) => void;
|
|
137
|
+
onExceed?: (message: string) => void;
|
|
138
|
+
headers?: Record<string, string>;
|
|
139
|
+
name?: string;
|
|
140
|
+
data?: Record<string, string | Blob>;
|
|
141
|
+
withCredentials?: boolean;
|
|
142
|
+
accept?: string;
|
|
143
|
+
multiple?: boolean;
|
|
144
|
+
children?: ReactNode;
|
|
145
|
+
drag?: boolean;
|
|
146
|
+
maxsize?: number;
|
|
147
|
+
maxnum?: number;
|
|
148
|
+
failednums?: number;
|
|
149
|
+
styleDrag?: React.CSSProperties;
|
|
150
|
+
styleButton?: React.CSSProperties;
|
|
151
|
+
styleUploadList?: React.CSSProperties;
|
|
152
|
+
limit?: number;
|
|
153
|
+
}
|
|
154
|
+
declare const Upload: FC<UploadProps>;
|
|
155
|
+
|
|
156
|
+
interface ProgressProps {
|
|
157
|
+
percent: number;
|
|
158
|
+
strokeHeight?: number;
|
|
159
|
+
showText?: boolean;
|
|
160
|
+
style?: React$1.CSSProperties;
|
|
161
|
+
theme?: ThemeProps;
|
|
162
|
+
}
|
|
163
|
+
declare const Progress: FC<ProgressProps>;
|
|
164
|
+
|
|
165
|
+
interface SignatureProps {
|
|
166
|
+
width?: number;
|
|
167
|
+
height?: number;
|
|
168
|
+
style?: React.CSSProperties;
|
|
169
|
+
onSave?: (dataUrl: string | undefined) => void;
|
|
170
|
+
}
|
|
171
|
+
declare const Signature: FC<SignatureProps>;
|
|
172
|
+
|
|
173
|
+
type AnimationName = 'zoom-in-top' | 'zoom-in-left' | 'zoom-in-bottom' | 'zoom-in-right';
|
|
174
|
+
type TransitionProps = CSSTransitionProps & {
|
|
175
|
+
animation?: AnimationName;
|
|
176
|
+
wrapper?: boolean;
|
|
177
|
+
children?: ReactNode;
|
|
178
|
+
};
|
|
179
|
+
declare const Transition: React$1.FC<TransitionProps>;
|
|
180
|
+
|
|
181
|
+
interface VirtualListProps {
|
|
182
|
+
containerHeight: number;
|
|
183
|
+
itemHeight: number;
|
|
184
|
+
itemCount: number;
|
|
185
|
+
children: JSX.Element;
|
|
186
|
+
}
|
|
187
|
+
declare const VirtualList: FC<VirtualListProps>;
|
|
188
|
+
|
|
189
|
+
interface LazyloadProps {
|
|
190
|
+
className?: string;
|
|
191
|
+
style?: CSSProperties;
|
|
192
|
+
placeholder?: ReactNode;
|
|
193
|
+
offset?: string | number;
|
|
194
|
+
width?: number | string;
|
|
195
|
+
height?: string | number;
|
|
196
|
+
onContentVisible?: () => void;
|
|
197
|
+
children: ReactNode;
|
|
198
|
+
}
|
|
199
|
+
declare const Lazyload: FC<LazyloadProps>;
|
|
200
|
+
|
|
201
|
+
interface KeepAliveLayoutProps extends PropsWithChildren {
|
|
202
|
+
keepPaths: Array<string | RegExp>;
|
|
203
|
+
keepElements?: Record<string, ReactNode>;
|
|
204
|
+
dropByPath?: (path: string) => void;
|
|
205
|
+
}
|
|
206
|
+
type KeepAliveContextType = Omit<Required<KeepAliveLayoutProps>, "children">;
|
|
207
|
+
declare const KeepAliveContext: React$1.Context<KeepAliveContextType>;
|
|
208
|
+
declare function useKeepOutlet(): react_jsx_runtime.JSX.Element;
|
|
209
|
+
declare const KeepAliveLayout: FC<KeepAliveLayoutProps>;
|
|
210
|
+
|
|
211
|
+
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
212
|
+
|
|
213
|
+
declare function useClickOutside(ref: RefObject<HTMLElement>, handler: (event: MouseEvent) => void): void;
|
|
214
|
+
|
|
215
|
+
export { type AutoCompletProps, AutoComplete, Button, type ButtonSize, type ButtonType, type DataSourceType, type IMenuComponent, Icon, type IconProps, Input, type InputProps, KeepAliveContext, KeepAliveLayout, Lazyload as LazyLoad, TransMenu as Menu, MenuItem, type MenuItemProps, type MenuProps, Progress, type ProgressProps, Signature, SubMenu, type SubMenuProps, type ThemeProps, Transition, Upload, type UploadFile, type UploadProps, VirtualList, useClickOutside, useDebounce, useKeepOutlet };
|