fat-design 0.0.1-beta.20250710151221 → 0.0.1-beta.20250809023342
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 +19 -19
- package/index.js +3862 -3798
- package/index.umd.cjs +18 -18
- package/index.umd.js +18 -18
- package/package.json +2 -2
- package/style.css +1 -1
- package/libs/config-16.js +0 -7
- package/libs/config-17.js +0 -7
- package/libs/config-18.js +0 -9
- package/libs/config-19.js +0 -9
- package/libs/theme/theme-blue1.css +0 -59
- package/libs/theme/theme-blue2.css +0 -64
- package/libs/theme/theme-blue3.css +0 -74
- package/libs/theme/theme-blue4.css +0 -54
- package/libs/theme/theme-default.css +0 -61
- package/libs/theme/theme-green.css +0 -97
- package/libs/theme/theme-orange.css +0 -59
- package/libs/theme/theme-pink.css +0 -54
- package/libs/theme/theme-purple.css +0 -54
- package/libs/theme/theme-red.css +0 -56
- package/types/0buildTypes/config-provider/constants.d.ts +0 -3
- package/types/0buildTypes/config-provider/index.d.ts +0 -4
- package/types/0buildTypes/config-provider/v2/consumer.d.ts +0 -3
- package/types/0buildTypes/config-provider/v2/context.d.ts +0 -6
- package/types/0buildTypes/config-provider/v2/error-boundary.d.ts +0 -27
- package/types/0buildTypes/config-provider/v2/functions.d.ts +0 -66
- package/types/0buildTypes/config-provider/v2/index.d.ts +0 -37
- package/types/0buildTypes/config-provider/v2/provider.d.ts +0 -4
- package/types/0buildTypes/config-provider/v2/types.d.ts +0 -22
- package/types/0buildTypes/dependencies.d.ts +0 -2
- package/types/0buildTypes/empty/empty.d.ts +0 -22
- package/types/0buildTypes/empty/index.d.ts +0 -2
- package/types/0buildTypes/filter/filter-types.d.ts +0 -21
- package/types/0buildTypes/filter/filter.d.ts +0 -10
- package/types/0buildTypes/filter/index.d.ts +0 -9
- package/types/0buildTypes/form2/deps.d.ts +0 -10
- package/types/0buildTypes/form2/form-actions.d.ts +0 -36
- package/types/0buildTypes/form2/form-buttons.d.ts +0 -28
- package/types/0buildTypes/form2/form-context.d.ts +0 -4
- package/types/0buildTypes/form2/form-error.d.ts +0 -3
- package/types/0buildTypes/form2/form-item-card.d.ts +0 -4
- package/types/0buildTypes/form2/form-item-comp.d.ts +0 -4
- package/types/0buildTypes/form2/form-item-label.d.ts +0 -4
- package/types/0buildTypes/form2/form-item-preview.d.ts +0 -4
- package/types/0buildTypes/form2/form-item.d.ts +0 -7
- package/types/0buildTypes/form2/form-layout.d.ts +0 -3
- package/types/0buildTypes/form2/form-rules.d.ts +0 -3
- package/types/0buildTypes/form2/form-section.d.ts +0 -25
- package/types/0buildTypes/form2/form-types.d.ts +0 -387
- package/types/0buildTypes/form2/form.d.ts +0 -36
- package/types/0buildTypes/form2/helper/buildParams.d.ts +0 -5
- package/types/0buildTypes/form2/helper/constants.d.ts +0 -24
- package/types/0buildTypes/form2/helper/fixItemProps.d.ts +0 -16
- package/types/0buildTypes/form2/helper/fnInheritProps.d.ts +0 -2
- package/types/0buildTypes/form2/helper/linkageFormState.d.ts +0 -16
- package/types/0buildTypes/form2/helper/useDataSource.d.ts +0 -14
- package/types/0buildTypes/form2/helper/useFormChildren.d.ts +0 -5
- package/types/0buildTypes/form2/helper/useFormItemState.d.ts +0 -3
- package/types/0buildTypes/form2/helper/useGetXProps.d.ts +0 -3
- package/types/0buildTypes/form2/index.d.ts +0 -20
- package/types/0buildTypes/form2/layout/from-float-layout.d.ts +0 -3
- package/types/0buildTypes/hooks/index.d.ts +0 -16
- package/types/0buildTypes/hooks/useCurrentState.d.ts +0 -11
- package/types/0buildTypes/hooks/useOnKeyPressSave.d.ts +0 -12
- package/types/0buildTypes/hooks/usePersistFn.d.ts +0 -3
- package/types/0buildTypes/hooks/usePreciseStore.d.ts +0 -53
- package/types/0buildTypes/hooks/useSize.d.ts +0 -6
- package/types/0buildTypes/hooks/useUniqueId.d.ts +0 -2
- package/types/0buildTypes/hooks/useValueOnChange.d.ts +0 -2
- package/types/0buildTypes/image/Image.d.ts +0 -42
- package/types/0buildTypes/image/Operations.d.ts +0 -25
- package/types/0buildTypes/image/Preview.d.ts +0 -64
- package/types/0buildTypes/image/PreviewGroup.d.ts +0 -32
- package/types/0buildTypes/image/common.d.ts +0 -2
- package/types/0buildTypes/image/context.d.ts +0 -7
- package/types/0buildTypes/image/getFixScaleEleTransPosition.d.ts +0 -17
- package/types/0buildTypes/image/hooks/useImageTransform.d.ts +0 -28
- package/types/0buildTypes/image/hooks/useMouseEvent.d.ts +0 -9
- package/types/0buildTypes/image/hooks/usePreviewItems.d.ts +0 -7
- package/types/0buildTypes/image/hooks/useRegisterImage.d.ts +0 -2
- package/types/0buildTypes/image/hooks/useStatus.d.ts +0 -14
- package/types/0buildTypes/image/hooks/useTouchEvent.d.ts +0 -8
- package/types/0buildTypes/image/index.d.ts +0 -6
- package/types/0buildTypes/image/interface.d.ts +0 -14
- package/types/0buildTypes/image/previewConfig.d.ts +0 -4
- package/types/0buildTypes/image/util.d.ts +0 -1
- package/types/0buildTypes/image/utils/KeyCode.d.ts +0 -23
- package/types/0buildTypes/image/utils/addEventListener.d.ts +0 -4
- package/types/0buildTypes/image/utils/buildIcons.d.ts +0 -2
- package/types/0buildTypes/image/utils/css.d.ts +0 -8
- package/types/0buildTypes/image/utils/isEqual.d.ts +0 -8
- package/types/0buildTypes/image/utils/raf.d.ts +0 -6
- package/types/0buildTypes/image/utils/useEvent.d.ts +0 -1
- package/types/0buildTypes/image/utils/useLayoutEffect.d.ts +0 -4
- package/types/0buildTypes/image/utils/useMergedState.d.ts +0 -12
- package/types/0buildTypes/image/utils/useSafeState.d.ts +0 -14
- package/types/0buildTypes/index.d.ts +0 -4
- package/types/0buildTypes/libs.d.ts +0 -66
- package/types/0buildTypes/nav/group.d.ts +0 -30
- package/types/0buildTypes/nav/index.d.ts +0 -4
- package/types/0buildTypes/nav/item.d.ts +0 -30
- package/types/0buildTypes/nav/nav.d.ts +0 -2
- package/types/0buildTypes/nav/popup-item.d.ts +0 -24
- package/types/0buildTypes/nav/sub-nav.d.ts +0 -30
- package/types/0buildTypes/nav/types.d.ts +0 -375
- package/types/0buildTypes/others.d.ts +0 -10
- package/types/0buildTypes/pages/deps.d.ts +0 -5
- package/types/0buildTypes/pages/detail-page/detail-page-card-form.d.ts +0 -12
- package/types/0buildTypes/pages/detail-page/detail-page-form-item.d.ts +0 -9
- package/types/0buildTypes/pages/detail-page/detail-page-section.d.ts +0 -19
- package/types/0buildTypes/pages/detail-page/detail-page-summary.d.ts +0 -9
- package/types/0buildTypes/pages/detail-page/detail-page.d.ts +0 -14
- package/types/0buildTypes/pages/detail-page/index.d.ts +0 -2
- package/types/0buildTypes/pages/detail-page/types.d.ts +0 -29
- package/types/0buildTypes/pages/page-card/types.d.ts +0 -6
- package/types/0buildTypes/previews/renderFileImage.d.ts +0 -34
- package/types/0buildTypes/query-form/index.d.ts +0 -2
- package/types/0buildTypes/query-form/query-form-items.d.ts +0 -3
- package/types/0buildTypes/query-form/query-form-layout.d.ts +0 -2
- package/types/0buildTypes/query-form/query-form.d.ts +0 -17
- package/types/0buildTypes/query-form/types.d.ts +0 -5
- package/types/0buildTypes/sortable-list/helpers.d.ts +0 -8
- package/types/0buildTypes/sortable-list/hooks.d.ts +0 -24
- package/types/0buildTypes/sortable-list/index.d.ts +0 -14
- package/types/0buildTypes/sortable-list/sortable-editable-table.d.ts +0 -2
- package/types/0buildTypes/sortable-list/sortable-list.d.ts +0 -560
- package/types/0buildTypes/sortable-list/sortable-table.d.ts +0 -2
- package/types/0buildTypes/sortable-list/types.d.ts +0 -15
- package/types/0buildTypes/table-pro/index.d.ts +0 -26
- package/types/0buildTypes/table-pro/table-pro.d.ts +0 -17
- package/types/0buildTypes/table-pro/types.d.ts +0 -93
- package/types/0buildTypes/table-pro/useTablePro.d.ts +0 -10
- package/types/0buildTypes/table-pro/utils/formatQueryRes.d.ts +0 -1
- package/types/0buildTypes/table-pro/widget/column-setting.d.ts +0 -4
- package/types/0buildTypes/table-pro/widget/deps.d.ts +0 -2
- package/types/0buildTypes/table-pro/widget/index.d.ts +0 -25
- package/types/0buildTypes/table-pro/widget/operations.d.ts +0 -5
- package/types/0buildTypes/table-pro/widget/operationsActions.d.ts +0 -2
- package/types/0buildTypes/table-pro/widget/renderFormats.d.ts +0 -17
- package/types/0buildTypes/table-pro/widget/renderMultiFieldCell.d.ts +0 -4
- package/types/0buildTypes/table-pro/widget/renderOperationCell.d.ts +0 -4
- package/types/0buildTypes/table-pro/widget/renderToolbar.d.ts +0 -6
- package/types/0buildTypes/table-pro/widget/table-utils-types.d.ts +0 -40
- package/types/0buildTypes/util/comp.d.ts +0 -16
- package/types/0buildTypes/util/component.d.ts +0 -1
- package/types/0buildTypes/util/constants.d.ts +0 -4
- package/types/0buildTypes/util/dom.d.ts +0 -116
- package/types/0buildTypes/util/env.d.ts +0 -7
- package/types/0buildTypes/util/func-wrapper.d.ts +0 -1
- package/types/0buildTypes/util/func.d.ts +0 -73
- package/types/0buildTypes/util/guid.d.ts +0 -11
- package/types/0buildTypes/util/isStateEquals.d.ts +0 -4
- package/types/0buildTypes/util/localforage.d.ts +0 -11
- package/types/0buildTypes/util/log.d.ts +0 -18
- package/types/0buildTypes/util/pick-res-data.d.ts +0 -28
- package/types/0buildTypes/util/react-dom.d.ts +0 -27
- package/types/0buildTypes/util/shallowEqual.d.ts +0 -3
- package/types/0buildTypes/util/string.d.ts +0 -32
- package/types/0buildTypes/util/toMap.d.ts +0 -7
- package/types/affix/index.d.ts +0 -33
- package/types/animate/index.d.ts +0 -80
- package/types/avatar/index.d.ts +0 -41
- package/types/badge/index.d.ts +0 -38
- package/types/balloon/index.d.ts +0 -254
- package/types/balloon-confirm/index.d.ts +0 -78
- package/types/batch-input/index.d.ts +0 -152
- package/types/box/index.d.ts +0 -18
- package/types/breadcrumb/index.d.ts +0 -60
- package/types/button/index.d.ts +0 -179
- package/types/calendar/index.d.ts +0 -76
- package/types/card/index.d.ts +0 -147
- package/types/cascader/index.d.ts +0 -135
- package/types/cascader-select/index.d.ts +0 -230
- package/types/checkbox/index.d.ts +0 -175
- package/types/collapse/index.d.ts +0 -96
- package/types/config-provider/index.d.ts +0 -3
- package/types/date-picker/index.d.ts +0 -123
- package/types/dialog/index.d.ts +0 -328
- package/types/divider/index.d.ts +0 -21
- package/types/drawer/index.d.ts +0 -121
- package/types/dropdown/index.d.ts +0 -198
- package/types/field/index.d.ts +0 -33
- package/types/filter/index.d.ts +0 -2
- package/types/form/index.d.ts +0 -5
- package/types/grid/index.d.ts +0 -142
- package/types/hooks/index.d.ts +0 -2
- package/types/icon/index.d.ts +0 -29
- package/types/image/index.d.ts +0 -3
- package/types/index.d.ts +0 -67
- package/types/input/index.d.ts +0 -367
- package/types/list/index.d.ts +0 -69
- package/types/loading/index.d.ts +0 -100
- package/types/locale/default.d.ts +0 -143
- package/types/locale/en-us.d.ts +0 -1
- package/types/locale/id-id.d.ts +0 -1
- package/types/locale/it-it.d.ts +0 -1
- package/types/locale/ja-jp.d.ts +0 -1
- package/types/locale/ko-kr.d.ts +0 -1
- package/types/locale/ms-my.d.ts +0 -1
- package/types/locale/pt-pt.d.ts +0 -1
- package/types/locale/th-th.d.ts +0 -1
- package/types/locale/vi-vn.d.ts +0 -1
- package/types/locale/zh-cn.d.ts +0 -1
- package/types/locale/zh-hk.d.ts +0 -1
- package/types/locale/zh-tw.d.ts +0 -1
- package/types/menu/index.d.ts +0 -336
- package/types/menu-button/index.d.ts +0 -100
- package/types/message/index.d.ts +0 -164
- package/types/nav/index.d.ts +0 -313
- package/types/notification/index.d.ts +0 -35
- package/types/number-picker/index.d.ts +0 -161
- package/types/overlay/index.d.ts +0 -363
- package/types/pagination/index.d.ts +0 -115
- package/types/paragraph/index.d.ts +0 -23
- package/types/progress/index.d.ts +0 -53
- package/types/query-form/index.d.ts +0 -3
- package/types/radio/index.d.ts +0 -180
- package/types/range/index.d.ts +0 -120
- package/types/rating/index.d.ts +0 -84
- package/types/responsive-grid/index.d.ts +0 -30
- package/types/search/index.d.ts +0 -219
- package/types/select/index.d.ts +0 -476
- package/types/shell/index.d.ts +0 -53
- package/types/slider/index.d.ts +0 -172
- package/types/split-button/index.d.ts +0 -134
- package/types/step/index.d.ts +0 -108
- package/types/switch/index.d.ts +0 -85
- package/types/tab/index.d.ts +0 -170
- package/types/table/index.d.ts +0 -407
- package/types/table-pro/index.d.ts +0 -3
- package/types/tag/index.d.ts +0 -124
- package/types/time-picker/index.d.ts +0 -193
- package/types/timeline/index.d.ts +0 -95
- package/types/transfer/index.d.ts +0 -199
- package/types/tree/index.d.ts +0 -421
- package/types/tree-select/index.d.ts +0 -251
- package/types/typography/index.d.ts +0 -28
- package/types/upload/index.d.ts +0 -707
- package/types/util.d.ts +0 -50
- package/types/virtual-list/index.d.ts +0 -44
package/types/grid/index.d.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
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
|
-
hidden?: any;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface RowProps extends HTMLAttributesWeak, CommonProps {
|
|
11
|
-
/**
|
|
12
|
-
* 行内容
|
|
13
|
-
*/
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 列间隔
|
|
18
|
-
*/
|
|
19
|
-
gutter?: string | number;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 列在行中宽度溢出后是否换行
|
|
23
|
-
*/
|
|
24
|
-
wrap?: boolean;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* 行在某一断点下宽度是否保持不变(默认行宽度随视口变化而变化)
|
|
28
|
-
*/
|
|
29
|
-
fixed?: boolean;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* 固定行的宽度为某一断点的宽度,不受视口影响而变动
|
|
33
|
-
*/
|
|
34
|
-
fixedWidth?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* (不支持IE9浏览器)多列垂直方向对齐方式
|
|
38
|
-
*/
|
|
39
|
-
align?: 'top' | 'center' | 'bottom' | 'baseline' | 'stretch';
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* (不支持IE9浏览器)行内具有多余空间时的布局方式
|
|
43
|
-
*/
|
|
44
|
-
justify?: 'start' | 'center' | 'end' | 'space-between' | 'space-around';
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 行在不同断点下的显示与隐藏<br><br>**可选值**:<br>true(在所有断点下隐藏)<br>false(在所有断点下显示)<br>'xs'(在 xs 断点下隐藏)<br>['xxs', 'xs', 's', 'm', 'l', 'xl'](在 xxs, xs, s, m, l, xl 断点下隐藏)
|
|
48
|
-
*/
|
|
49
|
-
hidden?: boolean | string | Array<any>;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* 指定以何种元素渲染该节点
|
|
53
|
-
* - 默认为 'div'
|
|
54
|
-
*/
|
|
55
|
-
component?: string | (() => void);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export class Row extends React.Component<RowProps, any> {}
|
|
59
|
-
|
|
60
|
-
interface HTMLAttributesWeak extends React.HTMLAttributes<HTMLElement> {
|
|
61
|
-
hidden?: any;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface ColProps extends HTMLAttributesWeak, CommonProps {
|
|
65
|
-
/**
|
|
66
|
-
* 列内容
|
|
67
|
-
*/
|
|
68
|
-
children?: React.ReactNode;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* 列宽度<br><br>**可选值**:<br>1, 2, 3, ..., 22, 23, 24
|
|
72
|
-
*/
|
|
73
|
-
span?: string | number;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* 固定列宽度,宽度值为20 * 栅格数<br><br>**可选值**:<br>1, 2, 3, ..., 28, 29, 30
|
|
77
|
-
*/
|
|
78
|
-
fixedSpan?: string | number;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* (不支持IE9浏览器)列偏移<br><br>**可选值**:<br>1, 2, 3, ..., 22, 23, 24
|
|
82
|
-
*/
|
|
83
|
-
offset?: string | number;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* (不支持IE9浏览器)固定列偏移,宽度值为20 * 栅格数<br><br>**可选值**:<br>1, 2, 3, ..., 28, 29, 30
|
|
87
|
-
*/
|
|
88
|
-
fixedOffset?: string | number;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* (不支持IE9浏览器)多列垂直方向对齐方式,可覆盖Row的align属性
|
|
92
|
-
*/
|
|
93
|
-
align?: 'top' | 'center' | 'bottom' | 'baseline' | 'stretch';
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 列在不同断点下的显示与隐藏<br><br>**可选值**:<br>true(在所有断点下隐藏)<br>false(在所有断点下显示)<br>'xs'(在 xs 断点下隐藏)<br>['xxs', 'xs', 's', 'm', 'l', 'xl'](在 xxs, xs, s, m, l, xl 断点下隐藏)
|
|
97
|
-
*/
|
|
98
|
-
hidden?: boolean | string | Array<any>;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* >=320px,响应式栅格,可为栅格数(span)或一个包含栅格数(span)和偏移栅格数(offset)对象
|
|
102
|
-
*/
|
|
103
|
-
xxs?: string | number | {};
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* >=480px,响应式栅格,可为栅格数(span)或一个包含栅格数(span)和偏移栅格数(offset)对象
|
|
107
|
-
*/
|
|
108
|
-
xs?: string | number | {};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* >=720px,响应式栅格,可为栅格数(span)或一个包含栅格数(span)和偏移栅格数(offset)对象
|
|
112
|
-
*/
|
|
113
|
-
s?: string | number | {};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* >=990px,响应式栅格,可为栅格数(span)或一个包含栅格数(span)和偏移栅格数(offset)对象
|
|
117
|
-
*/
|
|
118
|
-
m?: string | number | {};
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* >=1200px,响应式栅格,可为栅格数(span)或一个包含栅格数(span)和偏移栅格数(offset)对象
|
|
122
|
-
*/
|
|
123
|
-
l?: string | number | {};
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* >=1500px,响应式栅格,可为栅格数(span)或一个包含栅格数(span)和偏移栅格数(offset)对象
|
|
127
|
-
*/
|
|
128
|
-
xl?: string | number | {};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* 指定以何种元素渲染该节点,默认为 'div'
|
|
132
|
-
*/
|
|
133
|
-
component?: string | (() => void);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export class Col extends React.Component<ColProps, any> {}
|
|
137
|
-
export interface GridProps extends React.HTMLAttributes<HTMLElement>, CommonProps {}
|
|
138
|
-
|
|
139
|
-
export default class Grid extends React.Component<GridProps, any> {
|
|
140
|
-
static Row: typeof Row;
|
|
141
|
-
static Col: typeof Col;
|
|
142
|
-
}
|
package/types/hooks/index.d.ts
DELETED
package/types/icon/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import CommonProps from '../util';
|
|
5
|
-
|
|
6
|
-
export interface IconProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
|
7
|
-
/**
|
|
8
|
-
* 指定显示哪种图标
|
|
9
|
-
*/
|
|
10
|
-
type?: string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 指定图标大小
|
|
14
|
-
*/
|
|
15
|
-
size?: number | 'xxs' | 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' | 'inherit';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface iconOptions {
|
|
19
|
-
/**
|
|
20
|
-
* 如果页面上已经有同 id 的标签,那么不会再加载这个图标库
|
|
21
|
-
*/
|
|
22
|
-
scriptUrl: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export class CustomIcon extends React.Component<IconProps, any> {}
|
|
26
|
-
|
|
27
|
-
export default class Icon extends React.Component<IconProps, any> {
|
|
28
|
-
static createFromIconfontCN(options: iconOptions): typeof CustomIcon;
|
|
29
|
-
}
|
package/types/image/index.d.ts
DELETED
package/types/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export { default as Affix } from './affix';
|
|
2
|
-
export { default as Animate } from './animate';
|
|
3
|
-
export { default as Avatar } from './avatar';
|
|
4
|
-
export { default as Badge } from './badge';
|
|
5
|
-
export { default as Balloon } from './balloon';
|
|
6
|
-
export { default as BalloonConfirm } from './balloon-confirm';
|
|
7
|
-
export { PopConfirm } from './balloon-confirm';
|
|
8
|
-
export { default as BatchInput } from './batch-input';
|
|
9
|
-
export { default as Breadcrumb } from './breadcrumb';
|
|
10
|
-
export { default as Box } from './box';
|
|
11
|
-
export { default as Filter } from './filter';
|
|
12
|
-
export { default as Button } from './button';
|
|
13
|
-
export { default as Calendar } from './calendar';
|
|
14
|
-
export { default as Card } from './card';
|
|
15
|
-
export { default as Cascader } from './cascader';
|
|
16
|
-
export { default as CascaderSelect } from './cascader-select';
|
|
17
|
-
export { default as Checkbox } from './checkbox';
|
|
18
|
-
export { default as Collapse } from './collapse';
|
|
19
|
-
export { default as ConfigProvider } from './config-provider';
|
|
20
|
-
export { default as DatePicker } from './date-picker';
|
|
21
|
-
export { default as Dialog } from './dialog';
|
|
22
|
-
export { default as Divider } from './divider';
|
|
23
|
-
export { default as Drawer } from './drawer';
|
|
24
|
-
export { default as Dropdown } from './dropdown';
|
|
25
|
-
export { default as Form } from './form';
|
|
26
|
-
export { default as Grid } from './grid';
|
|
27
|
-
export { default as Icon } from './icon';
|
|
28
|
-
export { default as Input } from './input';
|
|
29
|
-
export { default as Loading } from './loading';
|
|
30
|
-
export { default as Menu } from './menu';
|
|
31
|
-
export { default as MenuButton } from './menu-button';
|
|
32
|
-
export { default as Message } from './message';
|
|
33
|
-
export { default as Nav } from './nav';
|
|
34
|
-
export { default as Notification } from './notification';
|
|
35
|
-
export { default as NumberPicker } from './number-picker';
|
|
36
|
-
export { default as Overlay } from './overlay';
|
|
37
|
-
export { default as Pagination } from './pagination';
|
|
38
|
-
export { default as Progress } from './progress';
|
|
39
|
-
export { default as Radio } from './radio';
|
|
40
|
-
export { default as Range } from './range';
|
|
41
|
-
export { default as Rating } from './rating';
|
|
42
|
-
export { default as ResponsiveGrid } from './responsive-grid';
|
|
43
|
-
export { default as Search } from './search';
|
|
44
|
-
export { default as Select } from './select';
|
|
45
|
-
export { default as Slider } from './slider';
|
|
46
|
-
export { default as SplitButton } from './split-button';
|
|
47
|
-
export { default as Step } from './step';
|
|
48
|
-
export { default as Switch } from './switch';
|
|
49
|
-
export { default as Tab } from './tab';
|
|
50
|
-
export { default as Table } from './table';
|
|
51
|
-
export { default as TablePro } from './table-pro';
|
|
52
|
-
export { default as Tag } from './tag';
|
|
53
|
-
export { default as Timeline } from './timeline';
|
|
54
|
-
export { default as TimePicker } from './time-picker';
|
|
55
|
-
export { default as Transfer } from './transfer';
|
|
56
|
-
export { default as Tree } from './tree';
|
|
57
|
-
export { default as TreeSelect } from './tree-select';
|
|
58
|
-
export { default as Upload } from './upload';
|
|
59
|
-
export { default as VirtualList } from './virtual-list';
|
|
60
|
-
export { default as Image } from './image';
|
|
61
|
-
export { default as QueryForm } from './query-form';
|
|
62
|
-
export { default as SortableList } from './0buildTypes/sortable-list';
|
|
63
|
-
export { default as hooks } from './0buildTypes/hooks';
|
|
64
|
-
export { default as Empty } from './0buildTypes/empty';
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
export * from './0buildTypes/others';
|
package/types/input/index.d.ts
DELETED
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import CommonProps from '../util';
|
|
5
|
-
|
|
6
|
-
interface HTMLAttributesWeak extends React.InputHTMLAttributes<HTMLElement> {
|
|
7
|
-
defaultValue?: any;
|
|
8
|
-
onChange?: any;
|
|
9
|
-
onKeyDown?: any;
|
|
10
|
-
size?: any;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface TextAreaProps extends HTMLAttributesWeak, CommonProps {
|
|
14
|
-
/**
|
|
15
|
-
* 当前值
|
|
16
|
-
*/
|
|
17
|
-
value?: string | number;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 初始化值
|
|
21
|
-
*/
|
|
22
|
-
defaultValue?: string | number;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 发生改变的时候触发的回调
|
|
26
|
-
*/
|
|
27
|
-
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>, type?: string) => void;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 键盘按下的时候触发的回调
|
|
31
|
-
*/
|
|
32
|
-
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>, opts: {}) => void;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 禁用状态
|
|
36
|
-
*/
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 最大长度
|
|
41
|
-
*/
|
|
42
|
-
maxLength?: number;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* 是否展现最大长度样式
|
|
46
|
-
*/
|
|
47
|
-
hasLimitHint?: boolean;
|
|
48
|
-
showLimitHint?: boolean;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* 当设置了maxLength时,是否截断超出字符串
|
|
52
|
-
*/
|
|
53
|
-
cutString?: boolean;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* 只读
|
|
57
|
-
*/
|
|
58
|
-
readOnly?: boolean;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* onChange返回会自动去除头尾空字符
|
|
62
|
-
*/
|
|
63
|
-
trim?: boolean;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* 输入提示
|
|
67
|
-
*/
|
|
68
|
-
placeholder?: string;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* 获取焦点时候触发的回调
|
|
72
|
-
*/
|
|
73
|
-
onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* 失去焦点时候触发的回调
|
|
77
|
-
*/
|
|
78
|
-
onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 自定义字符串计算长度方式
|
|
82
|
-
*/
|
|
83
|
-
getValueLength?: (value: string) => number;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* 自定义class
|
|
87
|
-
*/
|
|
88
|
-
className?: string;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* 自定义内联样式
|
|
92
|
-
*/
|
|
93
|
-
style?: React.CSSProperties;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 原生type
|
|
97
|
-
*/
|
|
98
|
-
htmlType?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* name
|
|
102
|
-
*/
|
|
103
|
-
name?: string;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* 状态
|
|
107
|
-
*/
|
|
108
|
-
state?: 'error' | 'warning';
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* 是否有边框
|
|
112
|
-
*/
|
|
113
|
-
hasBorder?: boolean;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* 自动高度 true / {minRows: 2, maxRows: 4}
|
|
117
|
-
*/
|
|
118
|
-
autoHeight?: boolean | {};
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* 多行文本框高度 <br />(不要直接用height设置多行文本框的高度, ie9 10会有兼容性问题)
|
|
122
|
-
*/
|
|
123
|
-
rows?: number;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* 是否为预览态
|
|
127
|
-
*/
|
|
128
|
-
isPreview?: boolean;
|
|
129
|
-
|
|
130
|
-
renderPreview?: (value: string | number) => React.ReactNode;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* 开启后会过滤输入法中间字母状态,文字输入完成后才会触发 onChange
|
|
134
|
-
*/
|
|
135
|
-
composition?: boolean;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export class TextArea extends React.Component<TextAreaProps, any> {}
|
|
139
|
-
|
|
140
|
-
export interface GroupProps extends React.HTMLAttributes<HTMLElement>, CommonProps {
|
|
141
|
-
/**
|
|
142
|
-
* 样式前缀
|
|
143
|
-
*/
|
|
144
|
-
prefix?: string;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* 输入框前附加内容
|
|
148
|
-
*/
|
|
149
|
-
addonBefore?: React.ReactNode;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* 输入框前附加内容css
|
|
153
|
-
*/
|
|
154
|
-
addonBeforeClassName?: string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* 输入框后附加内容
|
|
158
|
-
*/
|
|
159
|
-
addonAfter?: React.ReactNode;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* 输入框后额外css
|
|
163
|
-
*/
|
|
164
|
-
addonAfterClassName?: string;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* rtl
|
|
168
|
-
*/
|
|
169
|
-
rtl?: boolean;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export class Group extends React.Component<GroupProps, any> {}
|
|
173
|
-
|
|
174
|
-
export interface InputProps extends HTMLAttributesWeak, CommonProps {
|
|
175
|
-
/**
|
|
176
|
-
* 当前值
|
|
177
|
-
*/
|
|
178
|
-
value?: string | number;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* 初始化值
|
|
182
|
-
*/
|
|
183
|
-
defaultValue?: string | number;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* 发生改变的时候触发的回调
|
|
187
|
-
*/
|
|
188
|
-
onChange?: (value: string, e: React.ChangeEvent<HTMLInputElement>, type?: string) => void;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* 键盘按下的时候触发的回调
|
|
192
|
-
*/
|
|
193
|
-
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>, opts: {}) => void;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* 禁用状态
|
|
197
|
-
*/
|
|
198
|
-
disabled?: boolean;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* 最大长度
|
|
202
|
-
*/
|
|
203
|
-
maxLength?: number;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* 是否展现最大长度样式
|
|
207
|
-
*/
|
|
208
|
-
hasLimitHint?: boolean;
|
|
209
|
-
showLimitHint?: boolean;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* 当设置了maxLength时,是否截断超出字符串
|
|
213
|
-
*/
|
|
214
|
-
cutString?: boolean;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* 只读
|
|
218
|
-
*/
|
|
219
|
-
readOnly?: boolean;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* onChange返回会自动去除头尾空字符
|
|
223
|
-
*/
|
|
224
|
-
trim?: boolean;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* 输入提示
|
|
228
|
-
*/
|
|
229
|
-
placeholder?: string;
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* 获取焦点时候触发的回调
|
|
233
|
-
*/
|
|
234
|
-
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* 失去焦点时候触发的回调
|
|
238
|
-
*/
|
|
239
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* 自定义字符串计算长度方式
|
|
243
|
-
*/
|
|
244
|
-
getValueLength?: (value: string) => number;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* 自定义class
|
|
248
|
-
*/
|
|
249
|
-
className?: string;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* 自定义内联样式
|
|
253
|
-
*/
|
|
254
|
-
style?: React.CSSProperties;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* 原生type
|
|
258
|
-
*/
|
|
259
|
-
htmlType?: string;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* name
|
|
263
|
-
*/
|
|
264
|
-
name?: string;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* 状态
|
|
268
|
-
*/
|
|
269
|
-
state?: 'error' | 'loading' | 'success' | 'warning';
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* label
|
|
273
|
-
*/
|
|
274
|
-
label?: React.ReactNode;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* 是否出现clear按钮
|
|
278
|
-
*/
|
|
279
|
-
hasClear?: boolean;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* 是否有边框
|
|
283
|
-
*/
|
|
284
|
-
hasBorder?: boolean;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* 尺寸
|
|
288
|
-
*/
|
|
289
|
-
size?: 'small' | 'medium' | 'large';
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* 按下回车的回调
|
|
293
|
-
*/
|
|
294
|
-
onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* 水印 (Icon的type类型,和hasClear占用一个地方)
|
|
298
|
-
*/
|
|
299
|
-
hint?: string | React.ReactNode;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* 文字前附加内容
|
|
303
|
-
*/
|
|
304
|
-
innerBefore?: React.ReactNode;
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* 文字后附加内容
|
|
308
|
-
*/
|
|
309
|
-
innerAfter?: React.ReactNode;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* 输入框前附加内容
|
|
313
|
-
*/
|
|
314
|
-
addonBefore?: React.ReactNode;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* 输入框后附加内容
|
|
318
|
-
*/
|
|
319
|
-
addonAfter?: React.ReactNode;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* 输入框前附加文字
|
|
323
|
-
*/
|
|
324
|
-
addonTextBefore?: React.ReactNode;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* 输入框后附加文字
|
|
328
|
-
*/
|
|
329
|
-
addonTextAfter?: React.ReactNode;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* (原生input支持)
|
|
333
|
-
*/
|
|
334
|
-
autoComplete?: string;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* 自动聚焦(原生input支持)
|
|
338
|
-
*/
|
|
339
|
-
autoFocus?: boolean;
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* 是否为预览态
|
|
343
|
-
*/
|
|
344
|
-
isPreview?: boolean;
|
|
345
|
-
|
|
346
|
-
renderPreview?: (value: string | number) => React.ReactNode;
|
|
347
|
-
/**
|
|
348
|
-
* hover展示clear (配合 hasClear=true使用)
|
|
349
|
-
* @version 1.24
|
|
350
|
-
*/
|
|
351
|
-
hoverShowClear?: boolean;
|
|
352
|
-
}
|
|
353
|
-
export interface PasswordProps extends InputProps {
|
|
354
|
-
/**
|
|
355
|
-
* 是否展示切换按钮
|
|
356
|
-
*/
|
|
357
|
-
showToggle?: boolean;
|
|
358
|
-
}
|
|
359
|
-
export class Password extends React.Component<PasswordProps, any> {}
|
|
360
|
-
|
|
361
|
-
export default class Input extends React.Component<InputProps, any> {
|
|
362
|
-
static TextArea: typeof TextArea;
|
|
363
|
-
static Group: typeof Group;
|
|
364
|
-
static Password: typeof Password;
|
|
365
|
-
getInputNode: () => HTMLInputElement;
|
|
366
|
-
}
|
|
367
|
-
|
package/types/list/index.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
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
|
-
}
|