fat-design 0.0.1-beta.20250901115128 → 0.0.1-beta.20250927122721
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 +1 -1
- package/index.browser.js +17 -17
- package/index.js +1004 -996
- package/index.umd.cjs +16 -16
- package/index.umd.js +16 -16
- 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 +97 -0
- 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 -37
- 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 +390 -390
- 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 +16 -16
- 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 +66 -66
- 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 +3 -3
- package/types/0buildTypes/query-form/query-form-layout.d.ts +2 -2
- package/types/0buildTypes/query-form/query-form.d.ts +17 -17
- package/types/0buildTypes/query-form/types.d.ts +5 -5
- 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 -4
- 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 +78 -78
- package/types/batch-input/index.d.ts +152 -152
- package/types/box/index.d.ts +18 -18
- 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/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/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 +67 -67
- package/types/input/index.d.ts +367 -367
- 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 -164
- 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/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 -124
- 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 +50 -50
- package/types/virtual-list/index.d.ts +44 -44
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Item, Group, Divider, MenuProps } from '../menu';
|
|
5
|
-
import CommonProps from '../util';
|
|
6
|
-
import { ButtonProps } from '../button';
|
|
7
|
-
import { PopupProps } from '../overlay';
|
|
8
|
-
|
|
9
|
-
interface HTMLAttributesWeak extends ButtonProps {
|
|
10
|
-
onSelect?: any;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface SplitButtonProps extends HTMLAttributesWeak, CommonProps {
|
|
14
|
-
/**
|
|
15
|
-
* 按钮的类型
|
|
16
|
-
*/
|
|
17
|
-
type?: 'normal' | 'primary' | 'secondary';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 按钮组的尺寸
|
|
21
|
-
*/
|
|
22
|
-
size?: 'small' | 'medium' | 'large';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 主按钮的文案
|
|
26
|
-
*/
|
|
27
|
-
label?: React.ReactNode;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 设置标签类型
|
|
31
|
-
*/
|
|
32
|
-
component?: 'button' | 'a';
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 是否为幽灵按钮
|
|
36
|
-
*/
|
|
37
|
-
ghost?: 'light' | 'dark' | false | true;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 默认激活的菜单项(用法同 Menu 非受控)
|
|
41
|
-
*/
|
|
42
|
-
defaultSelectedKeys?: string[];
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* 激活的菜单项(用法同 Menu 受控)
|
|
46
|
-
*/
|
|
47
|
-
selectedKeys?: string[];
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 菜单的选择模式
|
|
51
|
-
*/
|
|
52
|
-
selectMode?: 'single' | 'multiple';
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* 触发按钮的属性(支持 Button 的所有属性透传)
|
|
56
|
-
*/
|
|
57
|
-
triggerProps?: ButtonProps;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* 弹层菜单的宽度是否与按钮组一致
|
|
61
|
-
*/
|
|
62
|
-
autoWidth?: boolean;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* 弹层是否显示
|
|
66
|
-
*/
|
|
67
|
-
visible?: boolean;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* 弹层默认是否显示
|
|
71
|
-
*/
|
|
72
|
-
defaultVisible?: boolean;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* 弹层显示状态变化时的回调函数
|
|
76
|
-
*/
|
|
77
|
-
onVisibleChange?: (visible: boolean, reason: string) => void;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* 弹层的触发方式
|
|
81
|
-
*/
|
|
82
|
-
popupTriggerType?: 'click' | 'hover';
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* 弹层对齐方式, 详情见Overlay align
|
|
86
|
-
*/
|
|
87
|
-
popupAlign?: string;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* 弹层自定义样式
|
|
91
|
-
*/
|
|
92
|
-
popupStyle?: React.CSSProperties;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* 弹层自定义样式类
|
|
96
|
-
*/
|
|
97
|
-
popupClassName?: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* 透传给弹层的属性
|
|
101
|
-
*/
|
|
102
|
-
popupProps?: PopupProps;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* 点击菜单项后的回调,同 Menu
|
|
106
|
-
*/
|
|
107
|
-
onItemClick?: (key: string, item: any, event: React.MouseEvent<HTMLElement>) => void;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* 选择菜单后的回调,同 Menu
|
|
111
|
-
*/
|
|
112
|
-
onSelect?: (selectedKeys: Array<any>, item: any, extra: any) => void;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* 透传给 Menu 的属性
|
|
116
|
-
*/
|
|
117
|
-
menuProps?: MenuProps;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* 透传给 左侧按钮 的属性
|
|
121
|
-
*/
|
|
122
|
-
leftButtonProps?: ButtonProps;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* 是否跟随滚动
|
|
126
|
-
*/
|
|
127
|
-
followTrigger?: boolean;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export default class SplitButton extends React.Component<SplitButtonProps, any> {
|
|
131
|
-
static Item: typeof Item;
|
|
132
|
-
static Group: typeof Group;
|
|
133
|
-
static Divider: typeof Divider;
|
|
134
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Item, Group, Divider, MenuProps } from '../menu';
|
|
5
|
+
import CommonProps from '../util';
|
|
6
|
+
import { ButtonProps } from '../button';
|
|
7
|
+
import { PopupProps } from '../overlay';
|
|
8
|
+
|
|
9
|
+
interface HTMLAttributesWeak extends ButtonProps {
|
|
10
|
+
onSelect?: any;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface SplitButtonProps extends HTMLAttributesWeak, CommonProps {
|
|
14
|
+
/**
|
|
15
|
+
* 按钮的类型
|
|
16
|
+
*/
|
|
17
|
+
type?: 'normal' | 'primary' | 'secondary';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 按钮组的尺寸
|
|
21
|
+
*/
|
|
22
|
+
size?: 'small' | 'medium' | 'large';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 主按钮的文案
|
|
26
|
+
*/
|
|
27
|
+
label?: React.ReactNode;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 设置标签类型
|
|
31
|
+
*/
|
|
32
|
+
component?: 'button' | 'a';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 是否为幽灵按钮
|
|
36
|
+
*/
|
|
37
|
+
ghost?: 'light' | 'dark' | false | true;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 默认激活的菜单项(用法同 Menu 非受控)
|
|
41
|
+
*/
|
|
42
|
+
defaultSelectedKeys?: string[];
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 激活的菜单项(用法同 Menu 受控)
|
|
46
|
+
*/
|
|
47
|
+
selectedKeys?: string[];
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 菜单的选择模式
|
|
51
|
+
*/
|
|
52
|
+
selectMode?: 'single' | 'multiple';
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* 触发按钮的属性(支持 Button 的所有属性透传)
|
|
56
|
+
*/
|
|
57
|
+
triggerProps?: ButtonProps;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 弹层菜单的宽度是否与按钮组一致
|
|
61
|
+
*/
|
|
62
|
+
autoWidth?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 弹层是否显示
|
|
66
|
+
*/
|
|
67
|
+
visible?: boolean;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* 弹层默认是否显示
|
|
71
|
+
*/
|
|
72
|
+
defaultVisible?: boolean;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 弹层显示状态变化时的回调函数
|
|
76
|
+
*/
|
|
77
|
+
onVisibleChange?: (visible: boolean, reason: string) => void;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* 弹层的触发方式
|
|
81
|
+
*/
|
|
82
|
+
popupTriggerType?: 'click' | 'hover';
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 弹层对齐方式, 详情见Overlay align
|
|
86
|
+
*/
|
|
87
|
+
popupAlign?: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* 弹层自定义样式
|
|
91
|
+
*/
|
|
92
|
+
popupStyle?: React.CSSProperties;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* 弹层自定义样式类
|
|
96
|
+
*/
|
|
97
|
+
popupClassName?: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 透传给弹层的属性
|
|
101
|
+
*/
|
|
102
|
+
popupProps?: PopupProps;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 点击菜单项后的回调,同 Menu
|
|
106
|
+
*/
|
|
107
|
+
onItemClick?: (key: string, item: any, event: React.MouseEvent<HTMLElement>) => void;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* 选择菜单后的回调,同 Menu
|
|
111
|
+
*/
|
|
112
|
+
onSelect?: (selectedKeys: Array<any>, item: any, extra: any) => void;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 透传给 Menu 的属性
|
|
116
|
+
*/
|
|
117
|
+
menuProps?: MenuProps;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* 透传给 左侧按钮 的属性
|
|
121
|
+
*/
|
|
122
|
+
leftButtonProps?: ButtonProps;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* 是否跟随滚动
|
|
126
|
+
*/
|
|
127
|
+
followTrigger?: boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export default class SplitButton extends React.Component<SplitButtonProps, any> {
|
|
131
|
+
static Item: typeof Item;
|
|
132
|
+
static Group: typeof Group;
|
|
133
|
+
static Divider: typeof Divider;
|
|
134
|
+
}
|
package/types/step/index.d.ts
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import CommonProps from '../util';
|
|
5
|
-
|
|
6
|
-
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
|
7
|
-
title?: any;
|
|
8
|
-
onClick?: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ItemProps extends Omit<HTMLAttributesWeak, 'content'>, CommonProps {
|
|
12
|
-
/**
|
|
13
|
-
* 步骤的状态,如不传,会根据外层的 Step 的 current 属性生成,可选值为 `wait`, `process`, `finish`
|
|
14
|
-
*/
|
|
15
|
-
status?: 'wait' | 'process' | 'finish';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 标题
|
|
19
|
-
*/
|
|
20
|
-
title?: React.ReactNode;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* 图标
|
|
24
|
-
*/
|
|
25
|
-
icon?: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 内容,用于垂直状态下的内容填充
|
|
29
|
-
*/
|
|
30
|
-
content?: React.ReactNode;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* StepItem 的自定义渲染, 会覆盖父节点设置的itemRender
|
|
34
|
-
*/
|
|
35
|
-
itemRender?: (index: number, status: string) => React.ReactNode;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 百分比
|
|
39
|
-
*/
|
|
40
|
-
percent?: number;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 是否禁用
|
|
44
|
-
*/
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* 点击步骤时的回调
|
|
49
|
-
*/
|
|
50
|
-
onClick?: (index: number) => void;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* 自定义样式
|
|
54
|
-
*/
|
|
55
|
-
className?: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export type StepShape = 'circle' | 'arrow' | 'dot';
|
|
59
|
-
export type StepDirection = 'hoz' | 'ver';
|
|
60
|
-
export class Item extends React.Component<ItemProps, any> {}
|
|
61
|
-
export interface StepProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
|
62
|
-
/**
|
|
63
|
-
* 当前步骤
|
|
64
|
-
*/
|
|
65
|
-
current?: number;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* 展示方向
|
|
69
|
-
*/
|
|
70
|
-
direction?: StepDirection;
|
|
71
|
-
/**
|
|
72
|
-
* 宽度是否横向拉伸
|
|
73
|
-
*/
|
|
74
|
-
stretch?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* 横向布局时的内容排列
|
|
77
|
-
*/
|
|
78
|
-
labelPlacement?: StepDirection;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 类型
|
|
82
|
-
*/
|
|
83
|
-
shape?: StepShape;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* 是否只读模式
|
|
87
|
-
*/
|
|
88
|
-
readOnly?: boolean;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* 是否开启动效
|
|
92
|
-
*/
|
|
93
|
-
animation?: boolean;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 自定义样式名
|
|
97
|
-
*/
|
|
98
|
-
className?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* StepItem 的自定义渲染
|
|
102
|
-
*/
|
|
103
|
-
itemRender?: (index: number, status: string) => React.ReactNode;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export default class Step extends React.Component<StepProps, any> {
|
|
107
|
-
static Item: typeof Item;
|
|
108
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import CommonProps from '../util';
|
|
5
|
+
|
|
6
|
+
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
|
7
|
+
title?: any;
|
|
8
|
+
onClick?: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ItemProps extends Omit<HTMLAttributesWeak, 'content'>, CommonProps {
|
|
12
|
+
/**
|
|
13
|
+
* 步骤的状态,如不传,会根据外层的 Step 的 current 属性生成,可选值为 `wait`, `process`, `finish`
|
|
14
|
+
*/
|
|
15
|
+
status?: 'wait' | 'process' | 'finish';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 标题
|
|
19
|
+
*/
|
|
20
|
+
title?: React.ReactNode;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 图标
|
|
24
|
+
*/
|
|
25
|
+
icon?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 内容,用于垂直状态下的内容填充
|
|
29
|
+
*/
|
|
30
|
+
content?: React.ReactNode;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* StepItem 的自定义渲染, 会覆盖父节点设置的itemRender
|
|
34
|
+
*/
|
|
35
|
+
itemRender?: (index: number, status: string) => React.ReactNode;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 百分比
|
|
39
|
+
*/
|
|
40
|
+
percent?: number;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 是否禁用
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 点击步骤时的回调
|
|
49
|
+
*/
|
|
50
|
+
onClick?: (index: number) => void;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 自定义样式
|
|
54
|
+
*/
|
|
55
|
+
className?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type StepShape = 'circle' | 'arrow' | 'dot';
|
|
59
|
+
export type StepDirection = 'hoz' | 'ver';
|
|
60
|
+
export class Item extends React.Component<ItemProps, any> {}
|
|
61
|
+
export interface StepProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
|
62
|
+
/**
|
|
63
|
+
* 当前步骤
|
|
64
|
+
*/
|
|
65
|
+
current?: number;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 展示方向
|
|
69
|
+
*/
|
|
70
|
+
direction?: StepDirection;
|
|
71
|
+
/**
|
|
72
|
+
* 宽度是否横向拉伸
|
|
73
|
+
*/
|
|
74
|
+
stretch?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* 横向布局时的内容排列
|
|
77
|
+
*/
|
|
78
|
+
labelPlacement?: StepDirection;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 类型
|
|
82
|
+
*/
|
|
83
|
+
shape?: StepShape;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 是否只读模式
|
|
87
|
+
*/
|
|
88
|
+
readOnly?: boolean;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 是否开启动效
|
|
92
|
+
*/
|
|
93
|
+
animation?: boolean;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 自定义样式名
|
|
97
|
+
*/
|
|
98
|
+
className?: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* StepItem 的自定义渲染
|
|
102
|
+
*/
|
|
103
|
+
itemRender?: (index: number, status: string) => React.ReactNode;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export default class Step extends React.Component<StepProps, any> {
|
|
107
|
+
static Item: typeof Item;
|
|
108
|
+
}
|
package/types/switch/index.d.ts
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import CommonProps from '../util';
|
|
5
|
-
|
|
6
|
-
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
|
7
|
-
onChange?: any;
|
|
8
|
-
onClick?: any;
|
|
9
|
-
onKeyDown?: any;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface SwitchProps extends HTMLAttributesWeak, CommonProps {
|
|
13
|
-
/**
|
|
14
|
-
* 自定义类名
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 自定义内敛样式
|
|
21
|
-
*/
|
|
22
|
-
style?: React.CSSProperties;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 打开时的内容
|
|
26
|
-
*/
|
|
27
|
-
checkedChildren?: React.ReactNode;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 关闭时的内容
|
|
31
|
-
*/
|
|
32
|
-
unCheckedChildren?: React.ReactNode;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 开关状态改变是触发此事件
|
|
36
|
-
*/
|
|
37
|
-
onChange?: (checked: boolean, e: any) => void;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 开关当前的值(针对受控组件)
|
|
41
|
-
*/
|
|
42
|
-
checked?: boolean;
|
|
43
|
-
autoWidth?: boolean;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* 开关默认值 (针对非受控组件)
|
|
47
|
-
*/
|
|
48
|
-
defaultChecked?: boolean;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* 表示开关被禁用
|
|
52
|
-
*/
|
|
53
|
-
disabled?: boolean;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* switch的尺寸
|
|
57
|
-
*/
|
|
58
|
-
size?: 'medium' | 'small';
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* 鼠标点击事件
|
|
62
|
-
*/
|
|
63
|
-
onClick?: React.MouseEventHandler;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* 键盘按键事件
|
|
67
|
-
*/
|
|
68
|
-
onKeyDown?: React.KeyboardEventHandler;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* loading
|
|
72
|
-
*/
|
|
73
|
-
loading?: boolean;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export interface BoolSwitchProps extends SwitchProps {
|
|
78
|
-
value?: boolean;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export class BoolSwitch extends React.Component<BoolSwitchProps, any> {}
|
|
82
|
-
|
|
83
|
-
export default class Switch extends React.Component<SwitchProps, any> {
|
|
84
|
-
static BoolSwitch: typeof BoolSwitch
|
|
85
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import CommonProps from '../util';
|
|
5
|
+
|
|
6
|
+
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
|
7
|
+
onChange?: any;
|
|
8
|
+
onClick?: any;
|
|
9
|
+
onKeyDown?: any;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface SwitchProps extends HTMLAttributesWeak, CommonProps {
|
|
13
|
+
/**
|
|
14
|
+
* 自定义类名
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 自定义内敛样式
|
|
21
|
+
*/
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 打开时的内容
|
|
26
|
+
*/
|
|
27
|
+
checkedChildren?: React.ReactNode;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 关闭时的内容
|
|
31
|
+
*/
|
|
32
|
+
unCheckedChildren?: React.ReactNode;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 开关状态改变是触发此事件
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (checked: boolean, e: any) => void;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 开关当前的值(针对受控组件)
|
|
41
|
+
*/
|
|
42
|
+
checked?: boolean;
|
|
43
|
+
autoWidth?: boolean;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 开关默认值 (针对非受控组件)
|
|
47
|
+
*/
|
|
48
|
+
defaultChecked?: boolean;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 表示开关被禁用
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* switch的尺寸
|
|
57
|
+
*/
|
|
58
|
+
size?: 'medium' | 'small';
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 鼠标点击事件
|
|
62
|
+
*/
|
|
63
|
+
onClick?: React.MouseEventHandler;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 键盘按键事件
|
|
67
|
+
*/
|
|
68
|
+
onKeyDown?: React.KeyboardEventHandler;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* loading
|
|
72
|
+
*/
|
|
73
|
+
loading?: boolean;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
export interface BoolSwitchProps extends SwitchProps {
|
|
78
|
+
value?: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class BoolSwitch extends React.Component<BoolSwitchProps, any> {}
|
|
82
|
+
|
|
83
|
+
export default class Switch extends React.Component<SwitchProps, any> {
|
|
84
|
+
static BoolSwitch: typeof BoolSwitch
|
|
85
|
+
}
|