fat-design 0.0.1-beta.20251016214453 → 0.0.1
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/README.md +285 -285
- package/index.browser.js +1 -1
- package/libs/config-16.js +7 -7
- package/libs/config-17.js +7 -7
- package/libs/config-18.js +9 -9
- package/libs/config-19.js +9 -9
- package/libs/theme/theme-blue1.css +58 -58
- package/libs/theme/theme-blue2.css +63 -63
- package/libs/theme/theme-blue3.css +73 -73
- package/libs/theme/theme-blue4.css +53 -53
- package/libs/theme/theme-default.css +60 -60
- package/libs/theme/theme-green.css +96 -96
- package/libs/theme/theme-green2.css +96 -96
- package/libs/theme/theme-orange.css +58 -58
- package/libs/theme/theme-pink.css +53 -53
- package/libs/theme/theme-purple.css +53 -53
- package/libs/theme/theme-red.css +55 -55
- package/package.json +2 -2
- package/types/0buildTypes/config-provider/constants.d.ts +3 -3
- package/types/0buildTypes/config-provider/index.d.ts +4 -4
- package/types/0buildTypes/config-provider/v2/consumer.d.ts +3 -3
- package/types/0buildTypes/config-provider/v2/context.d.ts +6 -6
- package/types/0buildTypes/config-provider/v2/error-boundary.d.ts +27 -27
- package/types/0buildTypes/config-provider/v2/functions.d.ts +66 -66
- package/types/0buildTypes/config-provider/v2/index.d.ts +36 -36
- package/types/0buildTypes/config-provider/v2/provider.d.ts +4 -4
- package/types/0buildTypes/config-provider/v2/types.d.ts +22 -22
- package/types/0buildTypes/dependencies.d.ts +2 -2
- package/types/0buildTypes/empty/empty.d.ts +22 -22
- package/types/0buildTypes/empty/index.d.ts +2 -2
- package/types/0buildTypes/filter/filter-types.d.ts +21 -21
- package/types/0buildTypes/filter/filter.d.ts +10 -10
- package/types/0buildTypes/filter/index.d.ts +9 -9
- package/types/0buildTypes/form2/deps.d.ts +10 -10
- package/types/0buildTypes/form2/form-actions.d.ts +36 -36
- package/types/0buildTypes/form2/form-buttons.d.ts +28 -28
- package/types/0buildTypes/form2/form-context.d.ts +4 -4
- package/types/0buildTypes/form2/form-error.d.ts +3 -3
- package/types/0buildTypes/form2/form-item-card.d.ts +4 -4
- package/types/0buildTypes/form2/form-item-comp.d.ts +4 -4
- package/types/0buildTypes/form2/form-item-label.d.ts +4 -4
- package/types/0buildTypes/form2/form-item-preview.d.ts +4 -4
- package/types/0buildTypes/form2/form-item.d.ts +7 -7
- package/types/0buildTypes/form2/form-layout.d.ts +3 -3
- package/types/0buildTypes/form2/form-rules.d.ts +3 -3
- package/types/0buildTypes/form2/form-section.d.ts +25 -25
- package/types/0buildTypes/form2/form-types.d.ts +396 -396
- package/types/0buildTypes/form2/form.d.ts +36 -36
- package/types/0buildTypes/form2/helper/buildParams.d.ts +5 -5
- package/types/0buildTypes/form2/helper/constants.d.ts +24 -24
- package/types/0buildTypes/form2/helper/fixItemProps.d.ts +16 -16
- package/types/0buildTypes/form2/helper/fnInheritProps.d.ts +2 -2
- package/types/0buildTypes/form2/helper/linkageFormState.d.ts +16 -16
- package/types/0buildTypes/form2/helper/useDataSource.d.ts +14 -14
- package/types/0buildTypes/form2/helper/useFormChildren.d.ts +5 -5
- package/types/0buildTypes/form2/helper/useFormItemState.d.ts +3 -3
- package/types/0buildTypes/form2/helper/useGetXProps.d.ts +3 -3
- package/types/0buildTypes/form2/index.d.ts +20 -20
- package/types/0buildTypes/form2/layout/from-float-layout.d.ts +3 -3
- package/types/0buildTypes/hooks/index.d.ts +25 -25
- package/types/0buildTypes/hooks/useComparedState.d.ts +2 -2
- package/types/0buildTypes/hooks/useCurrentState.d.ts +11 -11
- package/types/0buildTypes/hooks/useOnKeyPressSave.d.ts +12 -12
- package/types/0buildTypes/hooks/usePersistFn.d.ts +3 -3
- package/types/0buildTypes/hooks/usePreciseStore.d.ts +53 -53
- package/types/0buildTypes/hooks/useSize.d.ts +6 -6
- package/types/0buildTypes/hooks/useUniqueId.d.ts +2 -2
- package/types/0buildTypes/hooks/useValueOnChange.d.ts +2 -2
- package/types/0buildTypes/image/Image.d.ts +42 -42
- package/types/0buildTypes/image/Operations.d.ts +25 -25
- package/types/0buildTypes/image/Preview.d.ts +64 -64
- package/types/0buildTypes/image/PreviewGroup.d.ts +32 -32
- package/types/0buildTypes/image/common.d.ts +2 -2
- package/types/0buildTypes/image/context.d.ts +7 -7
- package/types/0buildTypes/image/getFixScaleEleTransPosition.d.ts +17 -17
- package/types/0buildTypes/image/hooks/useImageTransform.d.ts +28 -28
- package/types/0buildTypes/image/hooks/useMouseEvent.d.ts +9 -9
- package/types/0buildTypes/image/hooks/usePreviewItems.d.ts +7 -7
- package/types/0buildTypes/image/hooks/useRegisterImage.d.ts +2 -2
- package/types/0buildTypes/image/hooks/useStatus.d.ts +14 -14
- package/types/0buildTypes/image/hooks/useTouchEvent.d.ts +8 -8
- package/types/0buildTypes/image/index.d.ts +6 -6
- package/types/0buildTypes/image/interface.d.ts +14 -14
- package/types/0buildTypes/image/previewConfig.d.ts +4 -4
- package/types/0buildTypes/image/util.d.ts +1 -1
- package/types/0buildTypes/image/utils/KeyCode.d.ts +23 -23
- package/types/0buildTypes/image/utils/addEventListener.d.ts +4 -4
- package/types/0buildTypes/image/utils/buildIcons.d.ts +2 -2
- package/types/0buildTypes/image/utils/css.d.ts +8 -8
- package/types/0buildTypes/image/utils/isEqual.d.ts +8 -8
- package/types/0buildTypes/image/utils/raf.d.ts +6 -6
- package/types/0buildTypes/image/utils/useEvent.d.ts +1 -1
- package/types/0buildTypes/image/utils/useLayoutEffect.d.ts +4 -4
- package/types/0buildTypes/image/utils/useMergedState.d.ts +12 -12
- package/types/0buildTypes/image/utils/useSafeState.d.ts +14 -14
- package/types/0buildTypes/index.d.ts +4 -4
- package/types/0buildTypes/libs.d.ts +67 -67
- package/types/0buildTypes/nav/group.d.ts +30 -30
- package/types/0buildTypes/nav/index.d.ts +4 -4
- package/types/0buildTypes/nav/item.d.ts +30 -30
- package/types/0buildTypes/nav/nav.d.ts +2 -2
- package/types/0buildTypes/nav/popup-item.d.ts +24 -24
- package/types/0buildTypes/nav/sub-nav.d.ts +30 -30
- package/types/0buildTypes/nav/types.d.ts +375 -375
- package/types/0buildTypes/others.d.ts +10 -10
- package/types/0buildTypes/pages/deps.d.ts +5 -5
- package/types/0buildTypes/pages/detail-page/detail-page-card-form.d.ts +12 -12
- package/types/0buildTypes/pages/detail-page/detail-page-form-item.d.ts +9 -9
- package/types/0buildTypes/pages/detail-page/detail-page-section.d.ts +19 -19
- package/types/0buildTypes/pages/detail-page/detail-page-summary.d.ts +9 -9
- package/types/0buildTypes/pages/detail-page/detail-page.d.ts +14 -14
- package/types/0buildTypes/pages/detail-page/index.d.ts +2 -2
- package/types/0buildTypes/pages/detail-page/types.d.ts +29 -29
- package/types/0buildTypes/pages/page-card/types.d.ts +6 -6
- package/types/0buildTypes/previews/renderFileImage.d.ts +34 -34
- package/types/0buildTypes/query-form/index.d.ts +2 -2
- package/types/0buildTypes/query-form/query-form-items.d.ts +4 -4
- package/types/0buildTypes/query-form/query-form-layout.d.ts +2 -2
- package/types/0buildTypes/query-form/query-form.d.ts +20 -20
- package/types/0buildTypes/query-form/types.d.ts +12 -12
- package/types/0buildTypes/sortable-list/helpers.d.ts +8 -8
- package/types/0buildTypes/sortable-list/hooks.d.ts +24 -24
- package/types/0buildTypes/sortable-list/index.d.ts +14 -14
- package/types/0buildTypes/sortable-list/sortable-editable-table.d.ts +2 -2
- package/types/0buildTypes/sortable-list/sortable-list.d.ts +560 -560
- package/types/0buildTypes/sortable-list/sortable-table.d.ts +2 -2
- package/types/0buildTypes/sortable-list/types.d.ts +15 -15
- package/types/0buildTypes/table-pro/index.d.ts +26 -26
- package/types/0buildTypes/table-pro/table-pro.d.ts +17 -17
- package/types/0buildTypes/table-pro/types.d.ts +95 -95
- package/types/0buildTypes/table-pro/useTablePro.d.ts +10 -10
- package/types/0buildTypes/table-pro/utils/formatQueryRes.d.ts +1 -1
- package/types/0buildTypes/table-pro/widget/column-setting.d.ts +5 -5
- package/types/0buildTypes/table-pro/widget/deps.d.ts +2 -2
- package/types/0buildTypes/table-pro/widget/index.d.ts +25 -25
- package/types/0buildTypes/table-pro/widget/operations.d.ts +5 -5
- package/types/0buildTypes/table-pro/widget/operationsActions.d.ts +2 -2
- package/types/0buildTypes/table-pro/widget/renderFormats.d.ts +17 -17
- package/types/0buildTypes/table-pro/widget/renderMultiFieldCell.d.ts +4 -4
- package/types/0buildTypes/table-pro/widget/renderOperationCell.d.ts +4 -4
- package/types/0buildTypes/table-pro/widget/renderToolbar.d.ts +6 -6
- package/types/0buildTypes/table-pro/widget/table-utils-types.d.ts +40 -40
- package/types/0buildTypes/util/comp.d.ts +16 -16
- package/types/0buildTypes/util/component.d.ts +1 -1
- package/types/0buildTypes/util/constants.d.ts +4 -4
- package/types/0buildTypes/util/dom.d.ts +116 -116
- package/types/0buildTypes/util/env.d.ts +7 -7
- package/types/0buildTypes/util/func-wrapper.d.ts +1 -1
- package/types/0buildTypes/util/func.d.ts +73 -73
- package/types/0buildTypes/util/guid.d.ts +11 -11
- package/types/0buildTypes/util/isStateEquals.d.ts +4 -4
- package/types/0buildTypes/util/localforage.d.ts +11 -11
- package/types/0buildTypes/util/log.d.ts +18 -18
- package/types/0buildTypes/util/pick-res-data.d.ts +28 -28
- package/types/0buildTypes/util/react-dom.d.ts +27 -27
- package/types/0buildTypes/util/shallowEqual.d.ts +3 -3
- package/types/0buildTypes/util/string.d.ts +32 -32
- package/types/0buildTypes/util/tiny-emitter.d.ts +10 -10
- package/types/0buildTypes/util/toMap.d.ts +7 -7
- package/types/affix/index.d.ts +33 -33
- package/types/animate/index.d.ts +80 -80
- package/types/avatar/index.d.ts +41 -41
- package/types/badge/index.d.ts +38 -38
- package/types/balloon/index.d.ts +254 -254
- package/types/balloon-confirm/index.d.ts +119 -119
- package/types/batch-input/index.d.ts +152 -152
- package/types/box/index.d.ts +25 -25
- package/types/breadcrumb/index.d.ts +60 -60
- package/types/button/index.d.ts +179 -179
- package/types/calendar/index.d.ts +76 -76
- package/types/card/index.d.ts +147 -147
- package/types/cascader/index.d.ts +135 -135
- package/types/cascader-select/index.d.ts +230 -230
- package/types/checkbox/index.d.ts +175 -175
- package/types/collapse/index.d.ts +96 -96
- package/types/comments/index.d.ts +278 -278
- package/types/config-provider/index.d.ts +3 -3
- package/types/date-picker/index.d.ts +123 -123
- package/types/dialog/index.d.ts +328 -328
- package/types/divider/index.d.ts +21 -21
- package/types/drawer/index.d.ts +121 -121
- package/types/dropdown/index.d.ts +198 -198
- package/types/editable-table/index.d.ts +121 -121
- package/types/empty/index.d.ts +78 -78
- package/types/field/index.d.ts +33 -33
- package/types/filter/index.d.ts +2 -2
- package/types/form/index.d.ts +5 -5
- package/types/grid/index.d.ts +142 -142
- package/types/hooks/index.d.ts +2 -2
- package/types/icon/index.d.ts +29 -29
- package/types/image/index.d.ts +3 -3
- package/types/index.d.ts +69 -69
- package/types/input/index.d.ts +458 -458
- package/types/list/index.d.ts +69 -69
- package/types/loading/index.d.ts +100 -100
- package/types/locale/default.d.ts +143 -143
- package/types/locale/en-us.d.ts +1 -1
- package/types/locale/id-id.d.ts +1 -1
- package/types/locale/it-it.d.ts +1 -1
- package/types/locale/ja-jp.d.ts +1 -1
- package/types/locale/ko-kr.d.ts +1 -1
- package/types/locale/ms-my.d.ts +1 -1
- package/types/locale/pt-pt.d.ts +1 -1
- package/types/locale/th-th.d.ts +1 -1
- package/types/locale/vi-vn.d.ts +1 -1
- package/types/locale/zh-cn.d.ts +1 -1
- package/types/locale/zh-hk.d.ts +1 -1
- package/types/locale/zh-tw.d.ts +1 -1
- package/types/menu/index.d.ts +336 -336
- package/types/menu-button/index.d.ts +100 -100
- package/types/message/index.d.ts +165 -165
- package/types/nav/index.d.ts +313 -313
- package/types/notification/index.d.ts +35 -35
- package/types/number-picker/index.d.ts +161 -161
- package/types/overlay/index.d.ts +363 -363
- package/types/pagination/index.d.ts +115 -115
- package/types/paragraph/index.d.ts +23 -23
- package/types/progress/index.d.ts +53 -53
- package/types/query-form/index.d.ts +3 -3
- package/types/radio/index.d.ts +180 -180
- package/types/range/index.d.ts +120 -120
- package/types/rating/index.d.ts +84 -84
- package/types/responsive-grid/index.d.ts +30 -30
- package/types/search/index.d.ts +219 -219
- package/types/select/index.d.ts +479 -479
- package/types/shell/index.d.ts +53 -53
- package/types/slider/index.d.ts +172 -172
- package/types/sortable-list/index.d.ts +165 -165
- package/types/split-button/index.d.ts +134 -134
- package/types/step/index.d.ts +108 -108
- package/types/switch/index.d.ts +85 -85
- package/types/tab/index.d.ts +170 -170
- package/types/table/index.d.ts +407 -407
- package/types/table-pro/index.d.ts +3 -3
- package/types/tag/index.d.ts +142 -142
- package/types/time-picker/index.d.ts +193 -193
- package/types/timeline/index.d.ts +95 -95
- package/types/transfer/index.d.ts +199 -199
- package/types/tree/index.d.ts +421 -421
- package/types/tree-select/index.d.ts +251 -251
- package/types/typography/index.d.ts +28 -28
- package/types/upload/index.d.ts +711 -711
- package/types/util.d.ts +80 -80
- package/types/virtual-list/index.d.ts +44 -44
package/types/list/index.d.ts
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import { ReactNode, Component, ComponentType } from 'react';
|
|
4
|
-
import { LoadingProps } from '../loading';
|
|
5
|
-
import CommonProps from '../util';
|
|
6
|
-
|
|
7
|
-
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
|
8
|
-
title?: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ListProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
|
12
|
-
/**
|
|
13
|
-
* 列表头部
|
|
14
|
-
*/
|
|
15
|
-
header?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* 列表尾部
|
|
18
|
-
*/
|
|
19
|
-
footer?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* 列表尺寸
|
|
22
|
-
*/
|
|
23
|
-
size?: 'medium' | 'small';
|
|
24
|
-
/**
|
|
25
|
-
* 是否显示分割线
|
|
26
|
-
*/
|
|
27
|
-
divider?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* children
|
|
30
|
-
*/
|
|
31
|
-
children?: ReactNode;
|
|
32
|
-
dataSource?: any[];
|
|
33
|
-
/**
|
|
34
|
-
* 当使用 dataSource 时,可以用 renderItem 自定义渲染列表项
|
|
35
|
-
* @param {Any} current 当前遍历的项
|
|
36
|
-
* @param {Number} index 当前遍历的项的索引
|
|
37
|
-
*/
|
|
38
|
-
renderItem?: (current: any, index: number) => any;
|
|
39
|
-
loading?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* 自定义 Loading 组件
|
|
42
|
-
* 请务必透传 props, 使用方式: loadingComponent={props => <Loading {...props}/>}
|
|
43
|
-
*/
|
|
44
|
-
loadingComponent?: (props: LoadingProps) => ReactNode;
|
|
45
|
-
emptyContent?: ReactNode;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface ListItemProps extends HTMLAttributesWeak, CommonProps {
|
|
49
|
-
/**
|
|
50
|
-
* 列表元素的标题
|
|
51
|
-
*/
|
|
52
|
-
title?: ReactNode;
|
|
53
|
-
/**
|
|
54
|
-
* 列表元素的描述内容
|
|
55
|
-
*/
|
|
56
|
-
description?: ReactNode;
|
|
57
|
-
/**
|
|
58
|
-
* 列表元素的头像 / 图标 / 图片内容
|
|
59
|
-
*/
|
|
60
|
-
media?: ReactNode;
|
|
61
|
-
/**
|
|
62
|
-
* 额外内容
|
|
63
|
-
*/
|
|
64
|
-
extra?: ReactNode;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export default class List extends Component<ListProps, any> {
|
|
68
|
-
static Item: ComponentType<ListItemProps>;
|
|
69
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import { ReactNode, Component, ComponentType } from 'react';
|
|
4
|
+
import { LoadingProps } from '../loading';
|
|
5
|
+
import CommonProps from '../util';
|
|
6
|
+
|
|
7
|
+
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
|
8
|
+
title?: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ListProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
|
12
|
+
/**
|
|
13
|
+
* 列表头部
|
|
14
|
+
*/
|
|
15
|
+
header?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* 列表尾部
|
|
18
|
+
*/
|
|
19
|
+
footer?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* 列表尺寸
|
|
22
|
+
*/
|
|
23
|
+
size?: 'medium' | 'small';
|
|
24
|
+
/**
|
|
25
|
+
* 是否显示分割线
|
|
26
|
+
*/
|
|
27
|
+
divider?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* children
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
dataSource?: any[];
|
|
33
|
+
/**
|
|
34
|
+
* 当使用 dataSource 时,可以用 renderItem 自定义渲染列表项
|
|
35
|
+
* @param {Any} current 当前遍历的项
|
|
36
|
+
* @param {Number} index 当前遍历的项的索引
|
|
37
|
+
*/
|
|
38
|
+
renderItem?: (current: any, index: number) => any;
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 自定义 Loading 组件
|
|
42
|
+
* 请务必透传 props, 使用方式: loadingComponent={props => <Loading {...props}/>}
|
|
43
|
+
*/
|
|
44
|
+
loadingComponent?: (props: LoadingProps) => ReactNode;
|
|
45
|
+
emptyContent?: ReactNode;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface ListItemProps extends HTMLAttributesWeak, CommonProps {
|
|
49
|
+
/**
|
|
50
|
+
* 列表元素的标题
|
|
51
|
+
*/
|
|
52
|
+
title?: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* 列表元素的描述内容
|
|
55
|
+
*/
|
|
56
|
+
description?: ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* 列表元素的头像 / 图标 / 图片内容
|
|
59
|
+
*/
|
|
60
|
+
media?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* 额外内容
|
|
63
|
+
*/
|
|
64
|
+
extra?: ReactNode;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export default class List extends Component<ListProps, any> {
|
|
68
|
+
static Item: ComponentType<ListItemProps>;
|
|
69
|
+
}
|
package/types/loading/index.d.ts
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import CommonProps from '../util';
|
|
5
|
-
import {QuickShowConfig, QuickShowRet} from "../dialog";
|
|
6
|
-
|
|
7
|
-
export interface LoadingProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
|
8
|
-
/**
|
|
9
|
-
* 样式前缀
|
|
10
|
-
*/
|
|
11
|
-
prefix?: string;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* 自定义内容
|
|
15
|
-
*/
|
|
16
|
-
tip?: React.ReactNode;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* 自定义内容位置
|
|
20
|
-
*/
|
|
21
|
-
tipAlign?: 'right' | 'bottom';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* loading 状态, 默认 true
|
|
25
|
-
*/
|
|
26
|
-
visible?: boolean;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* 自定义class
|
|
30
|
-
*/
|
|
31
|
-
className?: string;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* 自定义内联样式
|
|
35
|
-
*/
|
|
36
|
-
style?: React.CSSProperties;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* 设置动画尺寸
|
|
40
|
-
*/
|
|
41
|
-
size?: 'large' | 'medium';
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 自定义动画内容
|
|
45
|
-
*/
|
|
46
|
-
indicator?: React.ReactNode;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 动画颜色
|
|
50
|
-
*/
|
|
51
|
-
color?: string;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* 全屏展示
|
|
55
|
-
*/
|
|
56
|
-
fullScreen?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* 是否禁用滚动,仅在 fullScreen 模式下生效
|
|
59
|
-
*/
|
|
60
|
-
disableScroll?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* 子元素
|
|
63
|
-
*/
|
|
64
|
-
children?: React.ReactNode;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* should loader be displayed inline
|
|
68
|
-
*/
|
|
69
|
-
inline?: boolean;
|
|
70
|
-
|
|
71
|
-
safeNode?: any;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* 在Loading组件外包一个div,一般用于loading时的占位
|
|
76
|
-
* demo: <Loading wrapper={true} />
|
|
77
|
-
* demo: <Loading wrapper={{height:'500px'}} />
|
|
78
|
-
*/
|
|
79
|
-
wrapper?: any | boolean;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* 全屏模式下,loading弹层请求关闭时触发的回调函数
|
|
83
|
-
* @en The callback function triggered when the loading layer request is closed in full screen mode
|
|
84
|
-
* @param type - 弹层关闭的来源 - The source of fan layer closure
|
|
85
|
-
* @param e - DOM 事件 - DOM events
|
|
86
|
-
*/
|
|
87
|
-
onVisibleChange?: (type: string, e: React.MouseEvent) => void;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
export interface QuickShowLoadingConfig {
|
|
92
|
-
tip?: any;
|
|
93
|
-
fullScreen?: boolean;
|
|
94
|
-
style?: any
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export default class Loading extends React.Component<LoadingProps, any> {
|
|
98
|
-
static showLoading(config: QuickShowLoadingConfig);
|
|
99
|
-
static hideLoading();
|
|
100
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import CommonProps from '../util';
|
|
5
|
+
import {QuickShowConfig, QuickShowRet} from "../dialog";
|
|
6
|
+
|
|
7
|
+
export interface LoadingProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
|
8
|
+
/**
|
|
9
|
+
* 样式前缀
|
|
10
|
+
*/
|
|
11
|
+
prefix?: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 自定义内容
|
|
15
|
+
*/
|
|
16
|
+
tip?: React.ReactNode;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 自定义内容位置
|
|
20
|
+
*/
|
|
21
|
+
tipAlign?: 'right' | 'bottom';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* loading 状态, 默认 true
|
|
25
|
+
*/
|
|
26
|
+
visible?: boolean;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 自定义class
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 自定义内联样式
|
|
35
|
+
*/
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 设置动画尺寸
|
|
40
|
+
*/
|
|
41
|
+
size?: 'large' | 'medium';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 自定义动画内容
|
|
45
|
+
*/
|
|
46
|
+
indicator?: React.ReactNode;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 动画颜色
|
|
50
|
+
*/
|
|
51
|
+
color?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 全屏展示
|
|
55
|
+
*/
|
|
56
|
+
fullScreen?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 是否禁用滚动,仅在 fullScreen 模式下生效
|
|
59
|
+
*/
|
|
60
|
+
disableScroll?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 子元素
|
|
63
|
+
*/
|
|
64
|
+
children?: React.ReactNode;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* should loader be displayed inline
|
|
68
|
+
*/
|
|
69
|
+
inline?: boolean;
|
|
70
|
+
|
|
71
|
+
safeNode?: any;
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 在Loading组件外包一个div,一般用于loading时的占位
|
|
76
|
+
* demo: <Loading wrapper={true} />
|
|
77
|
+
* demo: <Loading wrapper={{height:'500px'}} />
|
|
78
|
+
*/
|
|
79
|
+
wrapper?: any | boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 全屏模式下,loading弹层请求关闭时触发的回调函数
|
|
83
|
+
* @en The callback function triggered when the loading layer request is closed in full screen mode
|
|
84
|
+
* @param type - 弹层关闭的来源 - The source of fan layer closure
|
|
85
|
+
* @param e - DOM 事件 - DOM events
|
|
86
|
+
*/
|
|
87
|
+
onVisibleChange?: (type: string, e: React.MouseEvent) => void;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
export interface QuickShowLoadingConfig {
|
|
92
|
+
tip?: any;
|
|
93
|
+
fullScreen?: boolean;
|
|
94
|
+
style?: any
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export default class Loading extends React.Component<LoadingProps, any> {
|
|
98
|
+
static showLoading(config: QuickShowLoadingConfig);
|
|
99
|
+
static hideLoading();
|
|
100
|
+
}
|
|
@@ -1,143 +1,143 @@
|
|
|
1
|
-
export interface locale {
|
|
2
|
-
momentLocale: string;
|
|
3
|
-
Timeline: {
|
|
4
|
-
expand: string;
|
|
5
|
-
fold: string;
|
|
6
|
-
};
|
|
7
|
-
Balloon: {
|
|
8
|
-
close: string;
|
|
9
|
-
};
|
|
10
|
-
Card: {
|
|
11
|
-
expand: string;
|
|
12
|
-
fold: string;
|
|
13
|
-
};
|
|
14
|
-
Calendar: {
|
|
15
|
-
today: string;
|
|
16
|
-
now: string;
|
|
17
|
-
ok: string;
|
|
18
|
-
clear: string;
|
|
19
|
-
month: string;
|
|
20
|
-
year: string;
|
|
21
|
-
prevYear: string;
|
|
22
|
-
nextYear: string;
|
|
23
|
-
prevMonth: string;
|
|
24
|
-
nextMonth: string;
|
|
25
|
-
prevDecade: string;
|
|
26
|
-
nextDecade: string;
|
|
27
|
-
yearSelectAriaLabel: string;
|
|
28
|
-
monthSelectAriaLabel: string;
|
|
29
|
-
};
|
|
30
|
-
DatePicker: {
|
|
31
|
-
placeholder: string;
|
|
32
|
-
datetimePlaceholder: string;
|
|
33
|
-
monthPlaceholder: string;
|
|
34
|
-
weekPlaceholder: string;
|
|
35
|
-
yearPlaceholder: string;
|
|
36
|
-
now: string;
|
|
37
|
-
selectTime: string;
|
|
38
|
-
selectDate: string;
|
|
39
|
-
ok: string;
|
|
40
|
-
clear: string;
|
|
41
|
-
startPlaceholder: string;
|
|
42
|
-
endPlaceholder: string;
|
|
43
|
-
hour: string;
|
|
44
|
-
minute: string;
|
|
45
|
-
second: string;
|
|
46
|
-
};
|
|
47
|
-
Dialog: {
|
|
48
|
-
close: string;
|
|
49
|
-
ok: string;
|
|
50
|
-
cancel: string;
|
|
51
|
-
};
|
|
52
|
-
Drawer: {
|
|
53
|
-
close: string;
|
|
54
|
-
};
|
|
55
|
-
Message: {
|
|
56
|
-
closeAriaLabel: string;
|
|
57
|
-
};
|
|
58
|
-
Pagination: {
|
|
59
|
-
prev: string;
|
|
60
|
-
next: string;
|
|
61
|
-
goTo: string;
|
|
62
|
-
page: string;
|
|
63
|
-
go: string;
|
|
64
|
-
total: string;
|
|
65
|
-
labelPrev: string;
|
|
66
|
-
labelNext: string;
|
|
67
|
-
inputAriaLabel: string;
|
|
68
|
-
selectAriaLabel: string;
|
|
69
|
-
pageSize: string;
|
|
70
|
-
};
|
|
71
|
-
Input: {
|
|
72
|
-
clear: string;
|
|
73
|
-
};
|
|
74
|
-
List: {
|
|
75
|
-
empty: string;
|
|
76
|
-
};
|
|
77
|
-
Select: {
|
|
78
|
-
selectPlaceholder: string;
|
|
79
|
-
autoCompletePlaceholder: string;
|
|
80
|
-
notFoundContent: string;
|
|
81
|
-
maxTagPlaceholder: string;
|
|
82
|
-
selectAll: string;
|
|
83
|
-
};
|
|
84
|
-
Table: {
|
|
85
|
-
empty: string;
|
|
86
|
-
ok: string;
|
|
87
|
-
reset: string;
|
|
88
|
-
asc: string;
|
|
89
|
-
desc: string;
|
|
90
|
-
expanded: string;
|
|
91
|
-
folded: string;
|
|
92
|
-
filter: string;
|
|
93
|
-
selectAll: string;
|
|
94
|
-
};
|
|
95
|
-
TimePicker: {
|
|
96
|
-
placeholder: string;
|
|
97
|
-
clear: string;
|
|
98
|
-
hour: string;
|
|
99
|
-
minute: string;
|
|
100
|
-
second: string;
|
|
101
|
-
};
|
|
102
|
-
Transfer: {
|
|
103
|
-
items: string;
|
|
104
|
-
item: string;
|
|
105
|
-
moveAll: string;
|
|
106
|
-
searchPlaceholder: string;
|
|
107
|
-
moveToLeft: string;
|
|
108
|
-
moveToRight: string;
|
|
109
|
-
};
|
|
110
|
-
Upload: {
|
|
111
|
-
card: {
|
|
112
|
-
cancel: string;
|
|
113
|
-
addPhoto: string;
|
|
114
|
-
download: string;
|
|
115
|
-
delete: string;
|
|
116
|
-
};
|
|
117
|
-
drag: {
|
|
118
|
-
text: string;
|
|
119
|
-
hint: string;
|
|
120
|
-
};
|
|
121
|
-
upload: {
|
|
122
|
-
delete: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
Search: {
|
|
126
|
-
buttonText: string;
|
|
127
|
-
};
|
|
128
|
-
Tag: {
|
|
129
|
-
delete: string;
|
|
130
|
-
};
|
|
131
|
-
Rating: {
|
|
132
|
-
description: string;
|
|
133
|
-
};
|
|
134
|
-
Switch: {
|
|
135
|
-
on: string;
|
|
136
|
-
off: string;
|
|
137
|
-
};
|
|
138
|
-
Tab: {
|
|
139
|
-
closeAriaLabel: string;
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export default locale;
|
|
1
|
+
export interface locale {
|
|
2
|
+
momentLocale: string;
|
|
3
|
+
Timeline: {
|
|
4
|
+
expand: string;
|
|
5
|
+
fold: string;
|
|
6
|
+
};
|
|
7
|
+
Balloon: {
|
|
8
|
+
close: string;
|
|
9
|
+
};
|
|
10
|
+
Card: {
|
|
11
|
+
expand: string;
|
|
12
|
+
fold: string;
|
|
13
|
+
};
|
|
14
|
+
Calendar: {
|
|
15
|
+
today: string;
|
|
16
|
+
now: string;
|
|
17
|
+
ok: string;
|
|
18
|
+
clear: string;
|
|
19
|
+
month: string;
|
|
20
|
+
year: string;
|
|
21
|
+
prevYear: string;
|
|
22
|
+
nextYear: string;
|
|
23
|
+
prevMonth: string;
|
|
24
|
+
nextMonth: string;
|
|
25
|
+
prevDecade: string;
|
|
26
|
+
nextDecade: string;
|
|
27
|
+
yearSelectAriaLabel: string;
|
|
28
|
+
monthSelectAriaLabel: string;
|
|
29
|
+
};
|
|
30
|
+
DatePicker: {
|
|
31
|
+
placeholder: string;
|
|
32
|
+
datetimePlaceholder: string;
|
|
33
|
+
monthPlaceholder: string;
|
|
34
|
+
weekPlaceholder: string;
|
|
35
|
+
yearPlaceholder: string;
|
|
36
|
+
now: string;
|
|
37
|
+
selectTime: string;
|
|
38
|
+
selectDate: string;
|
|
39
|
+
ok: string;
|
|
40
|
+
clear: string;
|
|
41
|
+
startPlaceholder: string;
|
|
42
|
+
endPlaceholder: string;
|
|
43
|
+
hour: string;
|
|
44
|
+
minute: string;
|
|
45
|
+
second: string;
|
|
46
|
+
};
|
|
47
|
+
Dialog: {
|
|
48
|
+
close: string;
|
|
49
|
+
ok: string;
|
|
50
|
+
cancel: string;
|
|
51
|
+
};
|
|
52
|
+
Drawer: {
|
|
53
|
+
close: string;
|
|
54
|
+
};
|
|
55
|
+
Message: {
|
|
56
|
+
closeAriaLabel: string;
|
|
57
|
+
};
|
|
58
|
+
Pagination: {
|
|
59
|
+
prev: string;
|
|
60
|
+
next: string;
|
|
61
|
+
goTo: string;
|
|
62
|
+
page: string;
|
|
63
|
+
go: string;
|
|
64
|
+
total: string;
|
|
65
|
+
labelPrev: string;
|
|
66
|
+
labelNext: string;
|
|
67
|
+
inputAriaLabel: string;
|
|
68
|
+
selectAriaLabel: string;
|
|
69
|
+
pageSize: string;
|
|
70
|
+
};
|
|
71
|
+
Input: {
|
|
72
|
+
clear: string;
|
|
73
|
+
};
|
|
74
|
+
List: {
|
|
75
|
+
empty: string;
|
|
76
|
+
};
|
|
77
|
+
Select: {
|
|
78
|
+
selectPlaceholder: string;
|
|
79
|
+
autoCompletePlaceholder: string;
|
|
80
|
+
notFoundContent: string;
|
|
81
|
+
maxTagPlaceholder: string;
|
|
82
|
+
selectAll: string;
|
|
83
|
+
};
|
|
84
|
+
Table: {
|
|
85
|
+
empty: string;
|
|
86
|
+
ok: string;
|
|
87
|
+
reset: string;
|
|
88
|
+
asc: string;
|
|
89
|
+
desc: string;
|
|
90
|
+
expanded: string;
|
|
91
|
+
folded: string;
|
|
92
|
+
filter: string;
|
|
93
|
+
selectAll: string;
|
|
94
|
+
};
|
|
95
|
+
TimePicker: {
|
|
96
|
+
placeholder: string;
|
|
97
|
+
clear: string;
|
|
98
|
+
hour: string;
|
|
99
|
+
minute: string;
|
|
100
|
+
second: string;
|
|
101
|
+
};
|
|
102
|
+
Transfer: {
|
|
103
|
+
items: string;
|
|
104
|
+
item: string;
|
|
105
|
+
moveAll: string;
|
|
106
|
+
searchPlaceholder: string;
|
|
107
|
+
moveToLeft: string;
|
|
108
|
+
moveToRight: string;
|
|
109
|
+
};
|
|
110
|
+
Upload: {
|
|
111
|
+
card: {
|
|
112
|
+
cancel: string;
|
|
113
|
+
addPhoto: string;
|
|
114
|
+
download: string;
|
|
115
|
+
delete: string;
|
|
116
|
+
};
|
|
117
|
+
drag: {
|
|
118
|
+
text: string;
|
|
119
|
+
hint: string;
|
|
120
|
+
};
|
|
121
|
+
upload: {
|
|
122
|
+
delete: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
Search: {
|
|
126
|
+
buttonText: string;
|
|
127
|
+
};
|
|
128
|
+
Tag: {
|
|
129
|
+
delete: string;
|
|
130
|
+
};
|
|
131
|
+
Rating: {
|
|
132
|
+
description: string;
|
|
133
|
+
};
|
|
134
|
+
Switch: {
|
|
135
|
+
on: string;
|
|
136
|
+
off: string;
|
|
137
|
+
};
|
|
138
|
+
Tab: {
|
|
139
|
+
closeAriaLabel: string;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export default locale;
|
package/types/locale/en-us.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/id-id.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/it-it.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/ja-jp.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/ko-kr.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/ms-my.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/pt-pt.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/th-th.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/vi-vn.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/zh-cn.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/zh-hk.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|
package/types/locale/zh-tw.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './default';
|
|
1
|
+
export * from './default';
|