@fle-ui/next 1.0.0-alpha.1 → 1.0.0-alpha.2
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/dist/fle-ui.js +713 -1118
- package/es/index.js +380 -538
- package/lib/affix/index.d.ts +9 -7
- package/lib/alert/index.d.ts +9 -9
- package/lib/anchor/index.d.ts +9 -12
- package/lib/auto-complete/index.d.ts +10 -13
- package/lib/avatar/index.d.ts +11 -13
- package/lib/back-top/index.d.ts +6 -5
- package/lib/badge/index.d.ts +12 -11
- package/lib/breadcrumb/index.d.ts +11 -17
- package/lib/button/index.d.ts +7 -6
- package/lib/calendar/index.d.ts +4 -4
- package/lib/card/index.d.ts +11 -11
- package/lib/carousel/index.d.ts +8 -11
- package/lib/cascader/index.d.ts +6 -5
- package/lib/checkbox/index.d.ts +9 -12
- package/lib/collapse/index.d.ts +9 -9
- package/lib/comment/index.d.ts +6 -5
- package/lib/config-provider/index.d.ts +4 -4
- package/lib/date-picker/index.d.ts +3 -3
- package/lib/descriptions/index.d.ts +9 -12
- package/lib/divider/index.d.ts +6 -5
- package/lib/drawer/index.d.ts +6 -5
- package/lib/dropdown/index.d.ts +9 -9
- package/lib/empty/index.d.ts +9 -9
- package/lib/form/index.d.ts +4 -9
- package/lib/grid/hooks/useBreakpoint.d.ts +2 -2
- package/lib/grid/index.d.ts +10 -10
- package/lib/image/index.d.ts +9 -9
- package/lib/index.d.ts +115 -124
- package/lib/index.js +389 -752
- package/lib/input/index.d.ts +15 -24
- package/lib/inputNumber/index.d.ts +7 -9
- package/lib/layout/index.d.ts +12 -12
- package/lib/list/index.d.ts +14 -17
- package/lib/mentions/index.d.ts +10 -13
- package/lib/menu/index.d.ts +15 -24
- package/lib/message/index.d.ts +7 -6
- package/lib/modal/index.d.ts +13 -17
- package/lib/notification/index.d.ts +4 -8
- package/lib/page-header/index.d.ts +6 -5
- package/lib/pagination/index.d.ts +9 -10
- package/lib/popconfirm/index.d.ts +6 -7
- package/lib/popover/index.d.ts +6 -7
- package/lib/progress/index.d.ts +6 -7
- package/lib/radio/index.d.ts +11 -14
- package/lib/rate/index.d.ts +6 -7
- package/lib/result/index.d.ts +6 -5
- package/lib/select/index.d.ts +11 -14
- package/lib/slider/index.d.ts +8 -11
- package/lib/space/index.d.ts +6 -5
- package/lib/spin/index.d.ts +6 -5
- package/lib/statistic/index.d.ts +9 -12
- package/lib/steps/index.d.ts +10 -10
- package/lib/switch/index.d.ts +6 -7
- package/lib/table/index.d.ts +19 -19
- package/lib/tabs/index.d.ts +9 -12
- package/lib/tag/index.d.ts +9 -12
- package/lib/time-picker/index.d.ts +9 -12
- package/lib/timeline/index.d.ts +9 -9
- package/lib/tooltip/index.d.ts +5 -7
- package/lib/transfer/index.d.ts +6 -7
- package/lib/typography/index.d.ts +13 -13
- package/lib/upload/index.d.ts +9 -12
- package/package.json +24 -21
- package/.editorconfig +0 -16
- package/components/affix/affix.md +0 -75
- package/components/affix/demos/basic.tsx +0 -29
- package/components/affix/demos/on-change.tsx +0 -17
- package/components/affix/demos/target.tsx +0 -22
- package/components/affix/index.tsx +0 -15
- package/components/alert/alert.md +0 -101
- package/components/alert/components/alert.tsx +0 -13
- package/components/alert/components/errorBoundary.tsx +0 -13
- package/components/alert/demos/action.tsx +0 -66
- package/components/alert/demos/banner.tsx +0 -27
- package/components/alert/demos/basic.tsx +0 -13
- package/components/alert/demos/closable.tsx +0 -32
- package/components/alert/demos/close-text.tsx +0 -13
- package/components/alert/demos/description.tsx +0 -36
- package/components/alert/demos/error-boundary.tsx +0 -33
- package/components/alert/demos/icon.tsx +0 -45
- package/components/alert/demos/loop-banner.tsx +0 -26
- package/components/alert/demos/smooth-closed.tsx +0 -29
- package/components/alert/demos/style.tsx +0 -20
- package/components/alert/index.tsx +0 -13
- package/components/anchor/anchor.md +0 -66
- package/components/anchor/components/anchor.tsx +0 -15
- package/components/anchor/components/link.tsx +0 -12
- package/components/anchor/demos/basic.tsx +0 -22
- package/components/anchor/demos/click.tsx +0 -32
- package/components/anchor/demos/light.tsx +0 -23
- package/components/anchor/demos/listen.tsx +0 -26
- package/components/anchor/demos/offset.tsx +0 -29
- package/components/anchor/demos/static.tsx +0 -22
- package/components/anchor/index.tsx +0 -16
- package/components/auto-complete/autoComplete.md +0 -120
- package/components/auto-complete/components/autoComplete.tsx +0 -17
- package/components/auto-complete/components/option.tsx +0 -17
- package/components/auto-complete/demos/basic.tsx +0 -54
- package/components/auto-complete/demos/confirm.tsx +0 -74
- package/components/auto-complete/demos/custom.tsx +0 -38
- package/components/auto-complete/demos/customInput.tsx +0 -51
- package/components/auto-complete/demos/insensitive.tsx +0 -27
- package/components/auto-complete/demos/unconfirm.tsx +0 -68
- package/components/auto-complete/index.tsx +0 -21
- package/components/avatar/avatar.md +0 -76
- package/components/avatar/demos/badge.tsx +0 -28
- package/components/avatar/demos/basic.tsx +0 -29
- package/components/avatar/demos/dynamic.tsx +0 -57
- package/components/avatar/demos/group.tsx +0 -69
- package/components/avatar/demos/responsive.tsx +0 -19
- package/components/avatar/demos/type.tsx +0 -31
- package/components/avatar/index.less +0 -0
- package/components/avatar/index.tsx +0 -27
- package/components/back-top/backTop.md +0 -48
- package/components/back-top/demos/basic.tsx +0 -20
- package/components/back-top/demos/custom.tsx +0 -35
- package/components/back-top/index.tsx +0 -11
- package/components/badge/badge.md +0 -89
- package/components/badge/components/badge.tsx +0 -13
- package/components/badge/components/ribbon.tsx +0 -15
- package/components/badge/demos/basic.tsx +0 -26
- package/components/badge/demos/change.tsx +0 -68
- package/components/badge/demos/colorful.tsx +0 -51
- package/components/badge/demos/dot.tsx +0 -23
- package/components/badge/demos/link.tsx +0 -19
- package/components/badge/demos/no-wrapper.tsx +0 -30
- package/components/badge/demos/offset.tsx +0 -19
- package/components/badge/demos/overflow.tsx +0 -28
- package/components/badge/demos/ribbbon.tsx +0 -57
- package/components/badge/demos/size.tsx +0 -22
- package/components/badge/demos/status.tsx +0 -31
- package/components/badge/index.tsx +0 -23
- package/components/breadcrumb/breadcrumb.md +0 -157
- package/components/breadcrumb/components/breadcrumb.tsx +0 -12
- package/components/breadcrumb/components/item.tsx +0 -17
- package/components/breadcrumb/components/separator.tsx +0 -20
- package/components/breadcrumb/demos/basic.tsx +0 -24
- package/components/breadcrumb/demos/overlay.tsx +0 -55
- package/components/breadcrumb/demos/router-4/index.less +0 -19
- package/components/breadcrumb/demos/router-4/index.tsx +0 -79
- package/components/breadcrumb/demos/separator-component.tsx +0 -23
- package/components/breadcrumb/demos/separator.tsx +0 -20
- package/components/breadcrumb/demos/withIcon.tsx +0 -25
- package/components/breadcrumb/index.tsx +0 -24
- package/components/button/button.md +0 -121
- package/components/button/demos/basic.tsx +0 -21
- package/components/button/demos/block.tsx +0 -26
- package/components/button/demos/danger.tsx +0 -28
- package/components/button/demos/disabled.tsx +0 -65
- package/components/button/demos/ghost.tsx +0 -26
- package/components/button/demos/icon.tsx +0 -83
- package/components/button/demos/loading.tsx +0 -67
- package/components/button/demos/multiple.tsx +0 -31
- package/components/button/demos/size.tsx +0 -70
- package/components/button/index.less +0 -1
- package/components/button/index.tsx +0 -15
- package/components/calendar/calendar.md +0 -100
- package/components/calendar/demos/basic.tsx +0 -16
- package/components/calendar/demos/card.tsx +0 -21
- package/components/calendar/demos/customize-header.tsx +0 -100
- package/components/calendar/demos/notice-calendar.tsx +0 -87
- package/components/calendar/demos/select.tsx +0 -37
- package/components/calendar/index.tsx +0 -7
- package/components/card/card.md +0 -114
- package/components/card/components/card.tsx +0 -13
- package/components/card/components/grid.tsx +0 -13
- package/components/card/components/meta.tsx +0 -13
- package/components/card/demos/basic.tsx +0 -35
- package/components/card/demos/border.tsx +0 -21
- package/components/card/demos/concise.tsx +0 -19
- package/components/card/demos/embedded.tsx +0 -29
- package/components/card/demos/flexible.tsx +0 -27
- package/components/card/demos/grid.tsx +0 -33
- package/components/card/demos/inside.tsx +0 -27
- package/components/card/demos/more.tsx +0 -42
- package/components/card/demos/preload.tsx +0 -56
- package/components/card/demos/tab.tsx +0 -90
- package/components/card/index.tsx +0 -17
- package/components/carousel/carousel.md +0 -65
- package/components/carousel/demos/autoplay.tsx +0 -35
- package/components/carousel/demos/basic.tsx +0 -39
- package/components/carousel/demos/fade.tsx +0 -35
- package/components/carousel/demos/position.tsx +0 -52
- package/components/carousel/index.tsx +0 -21
- package/components/cascader/cascader.md +0 -138
- package/components/cascader/demos/active.tsx +0 -59
- package/components/cascader/demos/basic.tsx +0 -58
- package/components/cascader/demos/change.tsx +0 -51
- package/components/cascader/demos/changed.tsx +0 -79
- package/components/cascader/demos/custom.tsx +0 -49
- package/components/cascader/demos/customName.tsx +0 -58
- package/components/cascader/demos/defaultValue.tsx +0 -58
- package/components/cascader/demos/disabled.tsx +0 -53
- package/components/cascader/demos/dropdown.tsx +0 -65
- package/components/cascader/demos/move.tsx +0 -63
- package/components/cascader/demos/search.tsx +0 -70
- package/components/cascader/demos/size.tsx +0 -64
- package/components/cascader/index.tsx +0 -13
- package/components/checkbox/checkbox.md +0 -85
- package/components/checkbox/components/checkbox.tsx +0 -17
- package/components/checkbox/components/group.tsx +0 -18
- package/components/checkbox/demos/basic.tsx +0 -17
- package/components/checkbox/demos/check-all.tsx +0 -50
- package/components/checkbox/demos/controller.tsx +0 -54
- package/components/checkbox/demos/disabled.tsx +0 -19
- package/components/checkbox/demos/group.tsx +0 -52
- package/components/checkbox/demos/layout.tsx +0 -38
- package/components/checkbox/index.tsx +0 -18
- package/components/collapse/collapse.md +0 -85
- package/components/collapse/components/collapse.tsx +0 -12
- package/components/collapse/components/panel.tsx +0 -15
- package/components/collapse/demos/accordion.tsx +0 -32
- package/components/collapse/demos/arrow.tsx +0 -36
- package/components/collapse/demos/collapsible.tsx +0 -36
- package/components/collapse/demos/custom.tsx +0 -52
- package/components/collapse/demos/extra.tsx +0 -69
- package/components/collapse/demos/ghost.tsx +0 -31
- package/components/collapse/demos/nesting.tsx +0 -40
- package/components/collapse/demos/panel.tsx +0 -36
- package/components/collapse/demos/simple.tsx +0 -33
- package/components/collapse/index.tsx +0 -15
- package/components/comment/comment.md +0 -51
- package/components/comment/demos/basic.tsx +0 -77
- package/components/comment/demos/matchList.tsx +0 -74
- package/components/comment/index.tsx +0 -12
- package/components/config-provider/configProvider.md +0 -176
- package/components/config-provider/demos/direction.tsx +0 -558
- package/components/config-provider/demos/global.tsx +0 -680
- package/components/config-provider/demos/international.tsx +0 -154
- package/components/config-provider/demos/size.tsx +0 -105
- package/components/config-provider/index.tsx +0 -5
- package/components/date-picker/date-picker.md +0 -246
- package/components/date-picker/demos/basic.tsx +0 -26
- package/components/date-picker/demos/bordered.tsx +0 -26
- package/components/date-picker/demos/date-render.tsx +0 -46
- package/components/date-picker/demos/disabled-date.tsx +0 -75
- package/components/date-picker/demos/disabled.tsx +0 -41
- package/components/date-picker/demos/extra-footer.tsx +0 -30
- package/components/date-picker/demos/format.tsx +0 -51
- package/components/date-picker/demos/presetted-ranges.tsx +0 -40
- package/components/date-picker/demos/range-picker.tsx +0 -24
- package/components/date-picker/demos/select-in-range.tsx +0 -43
- package/components/date-picker/demos/size.jsx +0 -39
- package/components/date-picker/demos/switchable.tsx +0 -37
- package/components/date-picker/demos/time.tsx +0 -34
- package/components/date-picker/index.tsx +0 -5
- package/components/descriptions/components/descriptions.tsx +0 -12
- package/components/descriptions/components/item.tsx +0 -12
- package/components/descriptions/demos/basic.tsx +0 -23
- package/components/descriptions/demos/border.tsx +0 -44
- package/components/descriptions/demos/custom.tsx +0 -67
- package/components/descriptions/demos/responsive.tsx +0 -41
- package/components/descriptions/demos/vertical.tsx +0 -23
- package/components/descriptions/demos/verticalBorder.tsx +0 -45
- package/components/descriptions/descriptions.md +0 -71
- package/components/descriptions/index.tsx +0 -19
- package/components/divider/demos/customize-style.tsx +0 -27
- package/components/divider/demos/horizontal.tsx +0 -33
- package/components/divider/demos/plain.tsx +0 -43
- package/components/divider/demos/vertical.tsx +0 -21
- package/components/divider/demos/with-text.tsx +0 -39
- package/components/divider/divider.md +0 -47
- package/components/divider/index.tsx +0 -13
- package/components/drawer/demos/basic-right.tsx +0 -39
- package/components/drawer/demos/extra.tsx +0 -59
- package/components/drawer/demos/form-in-drawer.tsx +0 -140
- package/components/drawer/demos/multi-level-drawer.tsx +0 -56
- package/components/drawer/demos/placement.tsx +0 -55
- package/components/drawer/demos/render-in-current.tsx +0 -40
- package/components/drawer/demos/size.tsx +0 -152
- package/components/drawer/demos/user-profile.tsx +0 -159
- package/components/drawer/drawer.md +0 -136
- package/components/drawer/index.tsx +0 -18
- package/components/dropdown/components/button.tsx +0 -13
- package/components/dropdown/components/dropdown.tsx +0 -13
- package/components/dropdown/demos/arrow.tsx +0 -66
- package/components/dropdown/demos/basic.tsx +0 -52
- package/components/dropdown/demos/contextMenu.tsx +0 -33
- package/components/dropdown/demos/dropdownButton.tsx +0 -70
- package/components/dropdown/demos/event.tsx +0 -30
- package/components/dropdown/demos/item.tsx +0 -46
- package/components/dropdown/demos/overlayVisible.tsx +0 -41
- package/components/dropdown/demos/placement.tsx +0 -69
- package/components/dropdown/demos/subMenu.tsx +0 -37
- package/components/dropdown/demos/trigger.tsx +0 -32
- package/components/dropdown/dropdown.md +0 -115
- package/components/dropdown/index.tsx +0 -14
- package/components/empty/components/empty.tsx +0 -14
- package/components/empty/demos/basic.tsx +0 -13
- package/components/empty/demos/choice.tsx +0 -13
- package/components/empty/demos/custom.tsx +0 -27
- package/components/empty/demos/global.tsx +0 -82
- package/components/empty/demos/noDescription.tsx +0 -13
- package/components/empty/empty.md +0 -93
- package/components/empty/index.tsx +0 -20
- package/components/form/demos/advanced-search/index.less +0 -41
- package/components/form/demos/advanced-search/index.tsx +0 -89
- package/components/form/demos/basic.tsx +0 -59
- package/components/form/demos/complex-form-control.tsx +0 -88
- package/components/form/demos/control-hooks.tsx +0 -99
- package/components/form/demos/control-ref.tsx +0 -106
- package/components/form/demos/customized-form-controls.tsx +0 -108
- package/components/form/demos/dynamic-form-item.tsx +0 -118
- package/components/form/demos/dynamic-form-items-complex.tsx +0 -118
- package/components/form/demos/dynamic-form-items.tsx +0 -67
- package/components/form/demos/dynamic-rule.tsx +0 -81
- package/components/form/demos/form-context.tsx +0 -168
- package/components/form/demos/form-in-modal/index.less +0 -3
- package/components/form/demos/form-in-modal/index.tsx +0 -112
- package/components/form/demos/global-state.tsx +0 -62
- package/components/form/demos/inline-login.tsx +0 -68
- package/components/form/demos/layout.tsx +0 -64
- package/components/form/demos/nest-messages.tsx +0 -75
- package/components/form/demos/normal-login.tsx +0 -60
- package/components/form/demos/register.tsx +0 -293
- package/components/form/demos/required-mark.tsx +0 -59
- package/components/form/demos/size.tsx +0 -98
- package/components/form/demos/time-related-controls.tsx +0 -100
- package/components/form/demos/validate-static.tsx +0 -147
- package/components/form/demos/without-form-create.tsx +0 -71
- package/components/form/form.md +0 -626
- package/components/form/index.tsx +0 -12
- package/components/grid/components/col.tsx +0 -23
- package/components/grid/components/row.tsx +0 -19
- package/components/grid/demos/basic/index.less +0 -87
- package/components/grid/demos/basic/index.tsx +0 -36
- package/components/grid/grid.md +0 -133
- package/components/grid/hooks/useBreakpoint.tsx +0 -3
- package/components/grid/index.tsx +0 -8
- package/components/icon/icon.md +0 -166
- package/components/image/components/image.tsx +0 -12
- package/components/image/components/previewGroup.tsx +0 -11
- package/components/image/demos/basic.tsx +0 -18
- package/components/image/demos/custom.tsx +0 -21
- package/components/image/demos/error.tsx +0 -19
- package/components/image/demos/load.tsx +0 -37
- package/components/image/demos/many.tsx +0 -24
- package/components/image/demos/photo.tsx +0 -32
- package/components/image/image.md +0 -74
- package/components/image/index.tsx +0 -12
- package/components/index.tsx +0 -180
- package/components/input/components/group.tsx +0 -14
- package/components/input/components/input.tsx +0 -12
- package/components/input/components/password.tsx +0 -14
- package/components/input/components/search.tsx +0 -14
- package/components/input/components/textArea.tsx +0 -14
- package/components/input/demos/addon.tsx +0 -51
- package/components/input/demos/allowClear.tsx +0 -34
- package/components/input/demos/autosize-textarea.tsx +0 -37
- package/components/input/demos/basic.tsx +0 -17
- package/components/input/demos/borderless.tsx +0 -13
- package/components/input/demos/focus.tsx +0 -74
- package/components/input/demos/group/index.less +0 -25
- package/components/input/demos/group/index.tsx +0 -191
- package/components/input/demos/password-input.tsx +0 -25
- package/components/input/demos/presuffix.tsx +0 -33
- package/components/input/demos/search-input-loading.tsx +0 -34
- package/components/input/demos/search.tsx +0 -57
- package/components/input/demos/size.tsx +0 -24
- package/components/input/demos/textarea-count.tsx +0 -19
- package/components/input/demos/textarea.tsx +0 -15
- package/components/input/demos/tooltip/index.less +0 -11
- package/components/input/demos/tooltip/index.tsx +0 -22
- package/components/input/demos/tooltip/numericInput.tsx +0 -70
- package/components/input/index.tsx +0 -33
- package/components/input/input.md +0 -153
- package/components/inputNumber/demos/basic.tsx +0 -18
- package/components/inputNumber/demos/decimal.tsx +0 -26
- package/components/inputNumber/demos/disabled.tsx +0 -26
- package/components/inputNumber/demos/formatter.tsx +0 -38
- package/components/inputNumber/demos/keyboard.tsx +0 -27
- package/components/inputNumber/demos/nowrap.tsx +0 -13
- package/components/inputNumber/demos/outwrap.tsx +0 -28
- package/components/inputNumber/demos/tag.jsx +0 -47
- package/components/inputNumber/demos/threeSize.tsx +0 -34
- package/components/inputNumber/index.tsx +0 -22
- package/components/inputNumber/inputNumber.md +0 -103
- package/components/layout/components/layout.tsx +0 -26
- package/components/layout/components/sider.tsx +0 -15
- package/components/layout/demos/basic.tsx +0 -50
- package/components/layout/demos/customTrigger.tsx +0 -66
- package/components/layout/demos/fixed/index.less +0 -13
- package/components/layout/demos/fixed/index.tsx +0 -47
- package/components/layout/demos/fixedSider/index.less +0 -11
- package/components/layout/demos/fixedSider/index.tsx +0 -174
- package/components/layout/demos/responsive.tsx +0 -67
- package/components/layout/demos/side/index.less +0 -9
- package/components/layout/demos/side/index.tsx +0 -78
- package/components/layout/demos/top.tsx +0 -40
- package/components/layout/demos/topSide.tsx +0 -81
- package/components/layout/demos/topSide2.tsx +0 -82
- package/components/layout/index.tsx +0 -25
- package/components/layout/layout.md +0 -308
- package/components/list/components/item.tsx +0 -14
- package/components/list/components/list.tsx +0 -13
- package/components/list/components/meta.tsx +0 -12
- package/components/list/demos/basics.tsx +0 -43
- package/components/list/demos/grid.tsx +0 -37
- package/components/list/demos/infinite.tsx +0 -146
- package/components/list/demos/more.tsx +0 -104
- package/components/list/demos/responsive.tsx +0 -52
- package/components/list/demos/roll.tsx +0 -86
- package/components/list/demos/simple.tsx +0 -53
- package/components/list/demos/verticalRow.tsx +0 -87
- package/components/list/index.tsx +0 -25
- package/components/list/list.md +0 -136
- package/components/mentions/components/mentions.tsx +0 -16
- package/components/mentions/components/option.tsx +0 -12
- package/components/mentions/demos/async.tsx +0 -52
- package/components/mentions/demos/autoSize.tsx +0 -21
- package/components/mentions/demos/basic.tsx +0 -32
- package/components/mentions/demos/disabled.tsx +0 -42
- package/components/mentions/demos/prefix.tsx +0 -37
- package/components/mentions/demos/top.tsx +0 -20
- package/components/mentions/index.tsx +0 -18
- package/components/mentions/mentions.md +0 -88
- package/components/menu/components/divider.tsx +0 -17
- package/components/menu/components/item.tsx +0 -15
- package/components/menu/components/itemGroup.tsx +0 -22
- package/components/menu/components/menu.tsx +0 -17
- package/components/menu/components/subMenu.tsx +0 -15
- package/components/menu/demos/horizontal.tsx +0 -55
- package/components/menu/demos/inline-collapsed.tsx +0 -71
- package/components/menu/demos/inline.tsx +0 -57
- package/components/menu/demos/sider-current.tsx +0 -61
- package/components/menu/demos/theme.tsx +0 -73
- package/components/menu/demos/vertical.tsx +0 -52
- package/components/menu/index.tsx +0 -32
- package/components/menu/menu.md +0 -144
- package/components/message/demos/custom-style.tsx +0 -22
- package/components/message/demos/duration.tsx +0 -19
- package/components/message/demos/hooks.tsx +0 -32
- package/components/message/demos/info.tsx +0 -20
- package/components/message/demos/loading.tsx +0 -19
- package/components/message/demos/other.tsx +0 -31
- package/components/message/demos/thenable.tsx +0 -20
- package/components/message/demos/update.tsx +0 -25
- package/components/message/index.tsx +0 -8
- package/components/message/message.md +0 -163
- package/components/modal/components/modal.tsx +0 -19
- package/components/modal/demos/async.tsx +0 -50
- package/components/modal/demos/basic.tsx +0 -43
- package/components/modal/demos/button-props.tsx +0 -55
- package/components/modal/demos/confirm-router.tsx +0 -37
- package/components/modal/demos/confirm.tsx +0 -94
- package/components/modal/demos/footer.tsx +0 -78
- package/components/modal/demos/hooks.tsx +0 -72
- package/components/modal/demos/info.tsx +0 -54
- package/components/modal/demos/locale.tsx +0 -68
- package/components/modal/demos/manual.tsx +0 -31
- package/components/modal/demos/modal-render.tsx +0 -114
- package/components/modal/demos/position.tsx +0 -61
- package/components/modal/demos/width.tsx +0 -32
- package/components/modal/index.tsx +0 -54
- package/components/modal/modal.md +0 -221
- package/components/modal/style/index.less +0 -21
- package/components/notification/demos/basic.tsx +0 -28
- package/components/notification/demos/custom-icon.tsx +0 -27
- package/components/notification/demos/custom-style.tsx +0 -29
- package/components/notification/demos/duration.tsx +0 -27
- package/components/notification/demos/hooks.tsx +0 -61
- package/components/notification/demos/placement.tsx +0 -55
- package/components/notification/demos/update.tsx +0 -33
- package/components/notification/demos/with-btn.tsx +0 -44
- package/components/notification/demos/with-icon.tsx +0 -35
- package/components/notification/index.tsx +0 -10
- package/components/notification/notification.md +0 -140
- package/components/page-header/demos/basic.tsx +0 -20
- package/components/page-header/demos/breadcrumb.tsx +0 -34
- package/components/page-header/demos/combination.tsx +0 -156
- package/components/page-header/demos/ghost.tsx +0 -46
- package/components/page-header/demos/multiform.tsx +0 -73
- package/components/page-header/demos/responsive.tsx +0 -79
- package/components/page-header/index.tsx +0 -12
- package/components/page-header/page-header.md +0 -121
- package/components/pagination/demos/all.tsx +0 -22
- package/components/pagination/demos/basic.tsx +0 -13
- package/components/pagination/demos/changer.tsx +0 -33
- package/components/pagination/demos/controlled.tsx +0 -19
- package/components/pagination/demos/itemRender.tsx +0 -22
- package/components/pagination/demos/jump.tsx +0 -34
- package/components/pagination/demos/mini.tsx +0 -31
- package/components/pagination/demos/more.tsx +0 -13
- package/components/pagination/demos/simple.tsx +0 -19
- package/components/pagination/demos/total.tsx +0 -35
- package/components/pagination/index.tsx +0 -19
- package/components/pagination/pagination.md +0 -95
- package/components/pagination/style/index.less +0 -25
- package/components/popconfirm/demos/async.tsx +0 -46
- package/components/popconfirm/demos/basic.tsx +0 -32
- package/components/popconfirm/demos/dynamic-trigger.tsx +0 -61
- package/components/popconfirm/demos/icon.tsx +0 -21
- package/components/popconfirm/demos/locale.tsx +0 -17
- package/components/popconfirm/demos/placement.tsx +0 -137
- package/components/popconfirm/demos/promise.tsx +0 -26
- package/components/popconfirm/index.tsx +0 -15
- package/components/popconfirm/popconfirm.md +0 -88
- package/components/popover/demos/arrow-point-at-center.tsx +0 -33
- package/components/popover/demos/basic.tsx +0 -24
- package/components/popover/demos/hover-with-click.tsx +0 -57
- package/components/popover/demos/interalClose.tsx +0 -33
- package/components/popover/demos/placement.tsx +0 -128
- package/components/popover/demos/triggerType.tsx +0 -33
- package/components/popover/index.tsx +0 -16
- package/components/popover/popover.md +0 -79
- package/components/progress/demos/activeShow.tsx +0 -40
- package/components/progress/demos/bar.tsx +0 -21
- package/components/progress/demos/circle.tsx +0 -19
- package/components/progress/demos/circleActive.tsx +0 -41
- package/components/progress/demos/dashboard.tsx +0 -17
- package/components/progress/demos/formatStyle.tsx +0 -21
- package/components/progress/demos/lineGradient.tsx +0 -46
- package/components/progress/demos/moreDashboard.tsx +0 -28
- package/components/progress/demos/round.tsx +0 -14
- package/components/progress/demos/smallBar.tsx +0 -20
- package/components/progress/demos/smallCircle.tsx +0 -19
- package/components/progress/demos/stepProgress.tsx +0 -21
- package/components/progress/index.tsx +0 -17
- package/components/progress/progress.md +0 -114
- package/components/radio/components/button.tsx +0 -18
- package/components/radio/components/group.tsx +0 -18
- package/components/radio/components/radio.tsx +0 -18
- package/components/radio/demos/basic.tsx +0 -13
- package/components/radio/demos/disabled.tsx +0 -32
- package/components/radio/demos/radiobutton-solid.tsx +0 -34
- package/components/radio/demos/radiobutton.tsx +0 -49
- package/components/radio/demos/radiogroup-more.tsx +0 -34
- package/components/radio/demos/radiogroup-options.tsx +0 -78
- package/components/radio/demos/radiogroup-with-name.tsx +0 -20
- package/components/radio/demos/radiogroup.tsx +0 -27
- package/components/radio/demos/size.tsx +0 -34
- package/components/radio/index.tsx +0 -21
- package/components/radio/radio.md +0 -85
- package/components/rate/demos/basic.tsx +0 -13
- package/components/rate/demos/clear.tsx +0 -21
- package/components/rate/demos/custom.tsx +0 -33
- package/components/rate/demos/half.tsx +0 -12
- package/components/rate/demos/onlyread.tsx +0 -13
- package/components/rate/demos/other.tsx +0 -22
- package/components/rate/demos/text.tsx +0 -24
- package/components/rate/index.tsx +0 -12
- package/components/rate/rate.md +0 -77
- package/components/result/demos/custom.tsx +0 -20
- package/components/result/demos/disabled.tsx +0 -20
- package/components/result/demos/error.tsx +0 -49
- package/components/result/demos/info.tsx +0 -23
- package/components/result/demos/nofound.tsx +0 -21
- package/components/result/demos/serviceErr.tsx +0 -21
- package/components/result/demos/success.tsx +0 -26
- package/components/result/demos/warning.tsx +0 -23
- package/components/result/index.tsx +0 -12
- package/components/result/result.md +0 -62
- package/components/select/components/optGroup.tsx +0 -14
- package/components/select/components/option.tsx +0 -15
- package/components/select/components/select.tsx +0 -17
- package/components/select/demos/automatic-tokenization.tsx +0 -37
- package/components/select/demos/basic.tsx +0 -43
- package/components/select/demos/big-data.tsx +0 -51
- package/components/select/demos/bordered.tsx +0 -31
- package/components/select/demos/coordinate.tsx +0 -58
- package/components/select/demos/custom-dropdown-menu.tsx +0 -66
- package/components/select/demos/custom-tag-render.tsx +0 -49
- package/components/select/demos/hide-selected.tsx +0 -39
- package/components/select/demos/label-in-value.tsx +0 -29
- package/components/select/demos/multiple.tsx +0 -52
- package/components/select/demos/optgroup.tsx +0 -29
- package/components/select/demos/option-label-prop.tsx +0 -61
- package/components/select/demos/responsive.tsx +0 -48
- package/components/select/demos/search-box.tsx +0 -89
- package/components/select/demos/search-sort.tsx +0 -37
- package/components/select/demos/search.tsx +0 -48
- package/components/select/demos/select-users.tsx +0 -102
- package/components/select/demos/size.tsx +0 -77
- package/components/select/demos/tags.tsx +0 -36
- package/components/select/index.tsx +0 -23
- package/components/select/select.md +0 -207
- package/components/slider/demos/basic.tsx +0 -26
- package/components/slider/demos/controlShow.tsx +0 -11
- package/components/slider/demos/custom.tsx +0 -19
- package/components/slider/demos/events.tsx +0 -36
- package/components/slider/demos/icon.tsx +0 -28
- package/components/slider/demos/inputBox.tsx +0 -38
- package/components/slider/demos/marks.tsx +0 -38
- package/components/slider/demos/range.tsx +0 -13
- package/components/slider/demos/reverse.tsx +0 -24
- package/components/slider/demos/vertical.tsx +0 -42
- package/components/slider/index.tsx +0 -18
- package/components/slider/slider.md +0 -96
- package/components/space/demos/align.tsx +0 -44
- package/components/space/demos/base.tsx +0 -31
- package/components/space/demos/customize.tsx +0 -26
- package/components/space/demos/size.tsx +0 -30
- package/components/space/demos/split.tsx +0 -19
- package/components/space/demos/vertical.tsx +0 -24
- package/components/space/demos/wrap.tsx +0 -20
- package/components/space/index.tsx +0 -13
- package/components/space/space.md +0 -84
- package/components/spin/demos/basic.tsx +0 -13
- package/components/spin/demos/custom-indicator.tsx +0 -16
- package/components/spin/demos/delayAndDebounce.tsx +0 -38
- package/components/spin/demos/inside/index.less +0 -8
- package/components/spin/demos/inside/index.tsx +0 -18
- package/components/spin/demos/nested.tsx +0 -34
- package/components/spin/demos/size.tsx +0 -20
- package/components/spin/demos/tip.tsx +0 -22
- package/components/spin/index.tsx +0 -13
- package/components/spin/spin.md +0 -58
- package/components/statistic/components/countdown.tsx +0 -16
- package/components/statistic/components/statistic.tsx +0 -13
- package/components/statistic/demos/basic.tsx +0 -28
- package/components/statistic/demos/company.tsx +0 -23
- package/components/statistic/demos/countDown.tsx +0 -52
- package/components/statistic/demos/inCard.tsx +0 -43
- package/components/statistic/index.tsx +0 -16
- package/components/statistic/statistic.md +0 -72
- package/components/steps/components/step.tsx +0 -12
- package/components/steps/components/steps.tsx +0 -12
- package/components/steps/demos/basic.tsx +0 -24
- package/components/steps/demos/click.tsx +0 -38
- package/components/steps/demos/customdot.tsx +0 -34
- package/components/steps/demos/dot.tsx +0 -40
- package/components/steps/demos/err.tsx +0 -19
- package/components/steps/demos/icon.tsx +0 -27
- package/components/steps/demos/linesmall.tsx +0 -19
- package/components/steps/demos/lineway.tsx +0 -20
- package/components/steps/demos/mini.tsx +0 -20
- package/components/steps/demos/nav.tsx +0 -71
- package/components/steps/demos/progress.tsx +0 -24
- package/components/steps/demos/tab.tsx +0 -67
- package/components/steps/index.tsx +0 -13
- package/components/steps/steps.md +0 -126
- package/components/style/index.less +0 -2
- package/components/style/theme.less +0 -36
- package/components/switch/demos/basic.tsx +0 -17
- package/components/switch/demos/disabled.tsx +0 -27
- package/components/switch/demos/loading.tsx +0 -19
- package/components/switch/demos/size.tsx +0 -19
- package/components/switch/demos/text.tsx +0 -26
- package/components/switch/index.tsx +0 -10
- package/components/switch/switch.md +0 -59
- package/components/table/components/column.tsx +0 -16
- package/components/table/components/columnGroup.tsx +0 -18
- package/components/table/components/summary.tsx +0 -14
- package/components/table/components/table.tsx +0 -23
- package/components/table/demos/ajax.jsx +0 -100
- package/components/table/demos/basic.tsx +0 -87
- package/components/table/demos/bordered.jsx +0 -60
- package/components/table/demos/colspan-rowspan.jsx +0 -123
- package/components/table/demos/custom-filter-panel.jsx +0 -169
- package/components/table/demos/drag-sorting/index.jsx +0 -137
- package/components/table/demos/drag-sorting/index.less +0 -7
- package/components/table/demos/drag-sorting-handler/index.jsx +0 -124
- package/components/table/demos/drag-sorting-handler/index.less +0 -12
- package/components/table/demos/dynamic-settings.jsx +0 -279
- package/components/table/demos/edit-cell/index.less +0 -18
- package/components/table/demos/edit-cell/index.tsx +0 -264
- package/components/table/demos/edit-row/index.less +0 -5
- package/components/table/demos/edit-row/index.tsx +0 -199
- package/components/table/demos/ellipsis-custom-tooltip.jsx +0 -103
- package/components/table/demos/ellipsis.jsx +0 -77
- package/components/table/demos/expand.jsx +0 -70
- package/components/table/demos/fixed-columns-header.jsx +0 -92
- package/components/table/demos/fixed-columns.jsx +0 -60
- package/components/table/demos/fixed-header.jsx +0 -46
- package/components/table/demos/grouping-columns.jsx +0 -120
- package/components/table/demos/head.tsx +0 -101
- package/components/table/demos/jsx.tsx +0 -76
- package/components/table/demos/multiple-sorter.tsx +0 -79
- package/components/table/demos/narrow.jsx +0 -49
- package/components/table/demos/nested-table.jsx +0 -98
- package/components/table/demos/pagination.tsx +0 -130
- package/components/table/demos/reset-filter.tsx +0 -130
- package/components/table/demos/responsive.tsx +0 -43
- package/components/table/demos/row-selection-and-operation.tsx +0 -79
- package/components/table/demos/row-selection-custom.tsx +0 -89
- package/components/table/demos/row-selection.tsx +0 -104
- package/components/table/demos/size.jsx +0 -57
- package/components/table/demos/sticky.tsx +0 -110
- package/components/table/demos/summary.tsx +0 -139
- package/components/table/demos/tree-data.jsx +0 -130
- package/components/table/demos/virtual-list.tsx +0 -147
- package/components/table/index.tsx +0 -34
- package/components/table/table.md +0 -484
- package/components/tabs/components/tab-pane.tsx +0 -16
- package/components/tabs/components/tabs.tsx +0 -14
- package/components/tabs/demos/basic.tsx +0 -31
- package/components/tabs/demos/card-top/index.less +0 -57
- package/components/tabs/demos/card-top/index.tsx +0 -38
- package/components/tabs/demos/card.tsx +0 -31
- package/components/tabs/demos/centered.tsx +0 -27
- package/components/tabs/demos/custom-add-trigger.jsx +0 -83
- package/components/tabs/demos/custom-tab-bar/index.jsx +0 -44
- package/components/tabs/demos/custom-tab-bar/index.less +0 -4
- package/components/tabs/demos/custom-tab-bar-node.jsx +0 -148
- package/components/tabs/demos/disabled.tsx +0 -27
- package/components/tabs/demos/editable-card.jsx +0 -95
- package/components/tabs/demos/extra/index.less +0 -8
- package/components/tabs/demos/extra/index.tsx +0 -76
- package/components/tabs/demos/icon.tsx +0 -41
- package/components/tabs/demos/position.jsx +0 -51
- package/components/tabs/demos/size.jsx +0 -58
- package/components/tabs/demos/slide.jsx +0 -48
- package/components/tabs/index.tsx +0 -17
- package/components/tabs/tabs.md +0 -104
- package/components/tag/components/CheckableTag.tsx +0 -13
- package/components/tag/components/tag.tsx +0 -15
- package/components/tag/demos/animation.tsx +0 -104
- package/components/tag/demos/basic.tsx +0 -34
- package/components/tag/demos/choice.tsx +0 -39
- package/components/tag/demos/colourful.tsx +0 -37
- package/components/tag/demos/control.tsx +0 -24
- package/components/tag/demos/dynamic.tsx +0 -132
- package/components/tag/demos/icon.tsx +0 -36
- package/components/tag/demos/preset.tsx +0 -53
- package/components/tag/index.tsx +0 -16
- package/components/tag/tag.md +0 -86
- package/components/time-picker/components/rangePicker.tsx +0 -13
- package/components/time-picker/components/timePicker.tsx +0 -11
- package/components/time-picker/demos/12hours.jsx +0 -28
- package/components/time-picker/demos/addon.jsx +0 -33
- package/components/time-picker/demos/basic.tsx +0 -23
- package/components/time-picker/demos/bordered.jsx +0 -20
- package/components/time-picker/demos/disabled.jsx +0 -14
- package/components/time-picker/demos/hide-column.jsx +0 -16
- package/components/time-picker/demos/interval-options.jsx +0 -13
- package/components/time-picker/demos/range-picker.jsx +0 -13
- package/components/time-picker/demos/size.jsx +0 -20
- package/components/time-picker/demos/value.jsx +0 -19
- package/components/time-picker/index.tsx +0 -17
- package/components/time-picker/time-picker.md +0 -117
- package/components/timeline/components/item.tsx +0 -13
- package/components/timeline/components/timeline.tsx +0 -13
- package/components/timeline/demos/alternate.tsx +0 -34
- package/components/timeline/demos/basic.tsx +0 -20
- package/components/timeline/demos/color.tsx +0 -42
- package/components/timeline/demos/custom.tsx +0 -26
- package/components/timeline/demos/label.tsx +0 -44
- package/components/timeline/demos/pending.tsx +0 -28
- package/components/timeline/demos/right.tsx +0 -26
- package/components/timeline/index.tsx +0 -14
- package/components/timeline/timeline.md +0 -92
- package/components/tooltip/demos/arrow-point-at-center.tsx +0 -22
- package/components/tooltip/demos/basic.tsx +0 -17
- package/components/tooltip/demos/colorful.tsx +0 -48
- package/components/tooltip/demos/placement.tsx +0 -65
- package/components/tooltip/index.tsx +0 -16
- package/components/tooltip/tooltip.md +0 -91
- package/components/transfer/demos/basic.tsx +0 -64
- package/components/transfer/demos/oneway.tsx +0 -84
- package/components/transfer/demos/pages.tsx +0 -64
- package/components/transfer/demos/render.tsx +0 -72
- package/components/transfer/demos/search.tsx +0 -57
- package/components/transfer/demos/table.jsx +0 -150
- package/components/transfer/demos/tree.jsx +0 -91
- package/components/transfer/index.tsx +0 -17
- package/components/transfer/transfer.md +0 -118
- package/components/tree-select/components/tree-node.tsx +0 -15
- package/components/tree-select/components/tree-select.tsx +0 -18
- package/components/tree-select/tree-select.md +0 -101
- package/components/typography/components/link.tsx +0 -15
- package/components/typography/components/paragraph.tsx +0 -19
- package/components/typography/components/text.tsx +0 -15
- package/components/typography/components/title.tsx +0 -15
- package/components/typography/components/typography.tsx +0 -15
- package/components/typography/demos/basic.tsx +0 -105
- package/components/typography/demos/ellipsis-middle.tsx +0 -32
- package/components/typography/demos/ellipsis.tsx +0 -60
- package/components/typography/demos/interactive.tsx +0 -72
- package/components/typography/demos/suffix.tsx +0 -45
- package/components/typography/demos/text.tsx +0 -35
- package/components/typography/demos/title.tsx +0 -23
- package/components/typography/index.tsx +0 -20
- package/components/typography/typography.md +0 -173
- package/components/upload/components/dragger.tsx +0 -16
- package/components/upload/components/upload.tsx +0 -18
- package/components/upload/demos/avatar.jsx +0 -78
- package/components/upload/demos/basic.tsx +0 -37
- package/components/upload/demos/crop-image.jsx +0 -54
- package/components/upload/demos/customize-progress-bar.jsx +0 -45
- package/components/upload/demos/defaultFileList.jsx +0 -51
- package/components/upload/demos/directory.tsx +0 -18
- package/components/upload/demos/drag-sorting.jsx +0 -132
- package/components/upload/demos/drag.tsx +0 -50
- package/components/upload/demos/fileList.jsx +0 -55
- package/components/upload/demos/max-count.jsx +0 -32
- package/components/upload/demos/picture-card.jsx +0 -113
- package/components/upload/demos/picture-style.jsx +0 -50
- package/components/upload/demos/preview-file.jsx +0 -32
- package/components/upload/demos/transform-file.jsx +0 -45
- package/components/upload/demos/upload-custom-action-icon.jsx +0 -59
- package/components/upload/demos/upload-manually.jsx +0 -92
- package/components/upload/demos/upload-png-only.jsx +0 -30
- package/components/upload/demos/upload-with-aliyun-oss.jsx +0 -116
- package/components/upload/index.tsx +0 -19
- package/components/upload/upload.md +0 -207
- package/docs/getting-started.md +0 -9
- package/docs/help.md +0 -8
- package/docs/index.md +0 -20
- package/lib/alert/components/alert.d.ts +0 -5
- package/lib/alert/components/errorBoundary.d.ts +0 -7
- package/lib/anchor/components/anchor.d.ts +0 -7
- package/lib/anchor/components/link.d.ts +0 -5
- package/lib/auto-complete/components/autoComplete.d.ts +0 -7
- package/lib/auto-complete/components/option.d.ts +0 -5
- package/lib/badge/components/badge.d.ts +0 -5
- package/lib/badge/components/ribbon.d.ts +0 -5
- package/lib/breadcrumb/components/breadcrumb.d.ts +0 -5
- package/lib/breadcrumb/components/item.d.ts +0 -8
- package/lib/breadcrumb/components/separator.d.ts +0 -4
- package/lib/card/components/card.d.ts +0 -5
- package/lib/card/components/grid.d.ts +0 -5
- package/lib/card/components/meta.d.ts +0 -5
- package/lib/checkbox/components/checkbox.d.ts +0 -7
- package/lib/checkbox/components/group.d.ts +0 -7
- package/lib/collapse/components/collapse.d.ts +0 -5
- package/lib/collapse/components/panel.d.ts +0 -5
- package/lib/descriptions/components/descriptions.d.ts +0 -5
- package/lib/descriptions/components/item.d.ts +0 -5
- package/lib/dropdown/components/button.d.ts +0 -5
- package/lib/dropdown/components/dropdown.d.ts +0 -5
- package/lib/empty/components/empty.d.ts +0 -5
- package/lib/grid/components/col.d.ts +0 -11
- package/lib/grid/components/row.d.ts +0 -7
- package/lib/image/components/image.d.ts +0 -5
- package/lib/image/components/previewGroup.d.ts +0 -5
- package/lib/input/components/group.d.ts +0 -5
- package/lib/input/components/input.d.ts +0 -7
- package/lib/input/components/password.d.ts +0 -7
- package/lib/input/components/search.d.ts +0 -7
- package/lib/input/components/textArea.d.ts +0 -7
- package/lib/layout/components/layout.d.ts +0 -9
- package/lib/layout/components/sider.d.ts +0 -5
- package/lib/list/components/item.d.ts +0 -5
- package/lib/list/components/list.d.ts +0 -5
- package/lib/list/components/meta.d.ts +0 -5
- package/lib/mentions/components/mentions.d.ts +0 -7
- package/lib/mentions/components/option.d.ts +0 -5
- package/lib/menu/components/divider.d.ts +0 -7
- package/lib/menu/components/item.d.ts +0 -5
- package/lib/menu/components/itemGroup.d.ts +0 -12
- package/lib/menu/components/menu.d.ts +0 -7
- package/lib/menu/components/subMenu.d.ts +0 -5
- package/lib/modal/components/modal.d.ts +0 -9
- package/lib/radio/components/button.d.ts +0 -7
- package/lib/radio/components/group.d.ts +0 -7
- package/lib/radio/components/radio.d.ts +0 -7
- package/lib/select/components/optGroup.d.ts +0 -4
- package/lib/select/components/option.d.ts +0 -5
- package/lib/select/components/select.d.ts +0 -7
- package/lib/statistic/components/countdown.d.ts +0 -5
- package/lib/statistic/components/statistic.d.ts +0 -5
- package/lib/steps/components/step.d.ts +0 -5
- package/lib/steps/components/steps.d.ts +0 -5
- package/lib/table/components/column.d.ts +0 -5
- package/lib/table/components/columnGroup.d.ts +0 -5
- package/lib/table/components/summary.d.ts +0 -4
- package/lib/table/components/table.d.ts +0 -13
- package/lib/tabs/components/tab-pane.d.ts +0 -5
- package/lib/tabs/components/tabs.d.ts +0 -5
- package/lib/tag/components/CheckableTag.d.ts +0 -5
- package/lib/tag/components/tag.d.ts +0 -7
- package/lib/time-picker/components/rangePicker.d.ts +0 -7
- package/lib/time-picker/components/timePicker.d.ts +0 -7
- package/lib/timeline/components/item.d.ts +0 -5
- package/lib/timeline/components/timeline.d.ts +0 -5
- package/lib/tree-select/components/tree-node.d.ts +0 -0
- package/lib/tree-select/components/tree-select.d.ts +0 -7
- package/lib/typography/components/link.d.ts +0 -5
- package/lib/typography/components/paragraph.d.ts +0 -5
- package/lib/typography/components/text.d.ts +0 -5
- package/lib/typography/components/title.d.ts +0 -5
- package/lib/typography/components/typography.d.ts +0 -5
- package/lib/upload/components/dragger.d.ts +0 -5
- package/lib/upload/components/upload.d.ts +0 -7
- package/rollup.config.js +0 -105
@@ -1,484 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Table 表格
|
3
|
-
order: 0
|
4
|
-
legacy: /table
|
5
|
-
group:
|
6
|
-
path: /
|
7
|
-
nav:
|
8
|
-
title: 组件
|
9
|
-
path: /components
|
10
|
-
---
|
11
|
-
|
12
|
-
# Table 表格
|
13
|
-
|
14
|
-
展示行列数据。
|
15
|
-
|
16
|
-
## 设计师专属
|
17
|
-
|
18
|
-
安装 [Kitchen Sketch 插件 💎](https://kitchen.alipay.com/),两步就可以自动生成 Ant Design 表格组件。
|
19
|
-
|
20
|
-
## 何时使用
|
21
|
-
|
22
|
-
- 当有大量结构化的数据需要展现时;
|
23
|
-
- 当需要对数据进行排序、搜索、分页、自定义操作等复杂行为时。
|
24
|
-
|
25
|
-
## 如何使用
|
26
|
-
|
27
|
-
指定表格的数据源 `dataSource` 为一个数组。
|
28
|
-
|
29
|
-
>```bash
|
30
|
-
>const dataSource = [
|
31
|
-
> {
|
32
|
-
> key: '1',
|
33
|
-
> name: '胡彦斌',
|
34
|
-
> age: 32,
|
35
|
-
> address: '西湖区湖底公园1号',
|
36
|
-
> },
|
37
|
-
> {
|
38
|
-
> key: '2',
|
39
|
-
> name: '胡彦祖',
|
40
|
-
> age: 42,
|
41
|
-
> address: '西湖区湖底公园1号',
|
42
|
-
> },
|
43
|
-
>];
|
44
|
-
>
|
45
|
-
>const columns = [
|
46
|
-
> {
|
47
|
-
> title: '姓名',
|
48
|
-
> dataIndex: 'name',
|
49
|
-
> key: 'name',
|
50
|
-
> },
|
51
|
-
> {
|
52
|
-
> title: '年龄',
|
53
|
-
> dataIndex: 'age',
|
54
|
-
> key: 'age',
|
55
|
-
> },
|
56
|
-
> {
|
57
|
-
> title: '住址',
|
58
|
-
> dataIndex: 'address',
|
59
|
-
> key: 'address',
|
60
|
-
> },
|
61
|
-
>];
|
62
|
-
>
|
63
|
-
><Table dataSource={dataSource} columns={columns} />;
|
64
|
-
>```
|
65
|
-
|
66
|
-
## 代码演示
|
67
|
-
|
68
|
-
### 基本用法
|
69
|
-
<code src="./demos/basic.tsx" />
|
70
|
-
|
71
|
-
### JSX 风格的 API
|
72
|
-
<code src="./demos/jsx.tsx" />
|
73
|
-
|
74
|
-
### 可选择
|
75
|
-
<code src="./demos/row-selection.tsx" />
|
76
|
-
|
77
|
-
### 选择和操作
|
78
|
-
<code src="./demos/row-selection-and-operation.tsx" />
|
79
|
-
|
80
|
-
### 自定义选择项
|
81
|
-
<code src="./demos/row-selection-custom.tsx" />
|
82
|
-
|
83
|
-
### 筛选和排序
|
84
|
-
>对某一列数据进行筛选,使用列的 `filters` 属性来指定需要筛选菜单的列,`onFilter` 用于筛选当前数据,`filterMultiple` 用于指定多选和单选。
|
85
|
-
|
86
|
-
>对某一列数据进行排序,通过指定列的 `sorter` 函数即可启动排序按钮。`sorter: function(rowA, rowB) { ... }`, rowA、rowB 为比较的两个行数据。
|
87
|
-
|
88
|
-
>`sortDirections: ['ascend' | 'descend']`改变每列可用的排序方式,切换排序时按数组内容依次切换,设置在 table props 上时对所有列生效。你可以通过设置 `['ascend', 'descend', 'ascend']` 禁止排序恢复到默认状态。
|
89
|
-
>
|
90
|
-
<code src="./demos/head.tsx" />
|
91
|
-
|
92
|
-
### 多列排序
|
93
|
-
<code src="./demos/multiple-sorter.tsx" />
|
94
|
-
|
95
|
-
### 可控的筛选和排序
|
96
|
-
<code src="./demos/reset-filter.tsx" />
|
97
|
-
|
98
|
-
### 自定义筛选菜单
|
99
|
-
<code src="./demos/custom-filter-panel.jsx" />
|
100
|
-
|
101
|
-
### 远程加载数据
|
102
|
-
|
103
|
-
这个例子通过简单的 ajax 读取方式,演示了如何从服务端读取并展现数据,具有筛选、排序等功能以及页面 loading 效果。开发者可以自行接入其他数据处理方式。
|
104
|
-
|
105
|
-
另外,本例也展示了筛选排序功能如何交给服务端实现,列不需要指定具体的 `onFilter` 和 `sorter` 函数,而是在把筛选和排序的参数发到服务端来处理。
|
106
|
-
|
107
|
-
当使用 `rowSelection` 时,请设置 `rowSelection.preserveSelectedRowKeys` 属性以保留 `key`。
|
108
|
-
|
109
|
-
**注意,此示例使用 [模拟接口](https://randomuser.me),展示数据可能不准确,请打开网络面板查看请求。**
|
110
|
-
|
111
|
-
> 🛎️ 想要 3 分钟实现?试试 [ProTable](https://procomponents.ant.design/components/table)!
|
112
|
-
<code src="./demos/ajax.jsx" />
|
113
|
-
|
114
|
-
### 紧凑型
|
115
|
-
<code src="./demos/size.jsx" />
|
116
|
-
|
117
|
-
### 带边框
|
118
|
-
<code src="./demos/bordered.jsx" />
|
119
|
-
|
120
|
-
### 可展开
|
121
|
-
<code src="./demos/expand.jsx" />
|
122
|
-
|
123
|
-
### 表格行/列合并
|
124
|
-
<code src="./demos/colspan-rowspan.jsx" />
|
125
|
-
|
126
|
-
### 树形数据展示
|
127
|
-
<code src="./demos/tree-data.jsx" />
|
128
|
-
|
129
|
-
### 固定表头
|
130
|
-
<code src="./demos/fixed-header.jsx" />
|
131
|
-
|
132
|
-
### 固定列
|
133
|
-
|
134
|
-
对于列数很多的数据,可以固定前后的列,横向滚动查看其它数据,需要和 `scroll.x` 配合使用。
|
135
|
-
|
136
|
-
> 若列头与内容不对齐或出现列重复,请指定**固定列**的宽度 `width`。如果指定 `width` 不生效或出现白色垂直空隙,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有[超长连续字段破坏布局](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)。
|
137
|
-
>
|
138
|
-
> 建议指定 `scroll.x` 为大于表格宽度的固定值或百分比。注意,且非固定列宽度之和不要超过 `scroll.x`。
|
139
|
-
|
140
|
-
**注意:v4 版本固定列通过 sticky 实现,IE 11 会降级成横向滚动。**
|
141
|
-
|
142
|
-
<code src="./demos/fixed-columns.jsx" />
|
143
|
-
|
144
|
-
### 固定头和列
|
145
|
-
|
146
|
-
适合同时展示有大量数据和数据列。
|
147
|
-
|
148
|
-
> 若列头与内容不对齐或出现列重复,请指定**固定列**的宽度 `width`。如果指定 `width` 不生效或出现白色垂直空隙,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有[超长连续字段破坏布局](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)。
|
149
|
-
>
|
150
|
-
> 建议指定 `scroll.x` 为大于表格宽度的固定值或百分比。注意,且非固定列宽度之和不要超过 `scroll.x`。
|
151
|
-
|
152
|
-
<code src="./demos/fixed-columns-header.jsx" />
|
153
|
-
|
154
|
-
### 表头分组
|
155
|
-
<code src="./demos/grouping-columns.jsx" />
|
156
|
-
|
157
|
-
### 可编辑单元格
|
158
|
-
<code src="./demos/edit-cell/index.tsx" />
|
159
|
-
|
160
|
-
### 可编辑行
|
161
|
-
<code src="./demos/edit-row/index.tsx" />
|
162
|
-
|
163
|
-
### 嵌套子表格
|
164
|
-
<code src="./demos/nested-table.jsx" />
|
165
|
-
|
166
|
-
### 拖拽排序
|
167
|
-
<code src="./demos/drag-sorting/index.jsx" />
|
168
|
-
|
169
|
-
### 拖拽手柄列
|
170
|
-
<code src="./demos/drag-sorting-handler/index.jsx" />
|
171
|
-
|
172
|
-
### 单元格自动省略
|
173
|
-
<code src="./demos/ellipsis.jsx" />
|
174
|
-
|
175
|
-
### 自定义单元格省略提示
|
176
|
-
<code src="./demos/ellipsis-custom-tooltip.jsx" />
|
177
|
-
|
178
|
-
### 总结栏
|
179
|
-
<code src="./demos/summary.tsx" />
|
180
|
-
|
181
|
-
### 虚拟列表
|
182
|
-
<code src="./demos/virtual-list.tsx" />
|
183
|
-
|
184
|
-
### 响应式
|
185
|
-
<code src="./demos/responsive.tsx" />
|
186
|
-
|
187
|
-
### 分页设置
|
188
|
-
<code src="./demos/pagination.tsx" />
|
189
|
-
|
190
|
-
### 随页面滚动的固定表头和滚动条
|
191
|
-
<code src="./demos/sticky.tsx" />
|
192
|
-
|
193
|
-
### 动态控制表格属性
|
194
|
-
<code src="./demos/dynamic-settings.jsx" />
|
195
|
-
|
196
|
-
## API
|
197
|
-
|
198
|
-
另外我们封装了 [ProTable](https://procomponents.ant.design/components/table),在 `antd` Table 之上扩展了更多便捷易用的功能,内置搜索、筛选、刷新等常用表格行为,并为多种类型数据展示提供了内置格式化,欢迎尝试使用。
|
199
|
-
|
200
|
-
### Table
|
201
|
-
|
202
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
203
|
-
| --- | --- | --- | --- | --- |
|
204
|
-
| bordered | 是否展示外边框和列边框 | boolean | false | |
|
205
|
-
| columns | 表格列的配置描述,具体项见下表 | [ColumnsType](#Column)\[] | - | |
|
206
|
-
| components | 覆盖默认的 table 元素 | [TableComponents](https://git.io/fANxz) | - | |
|
207
|
-
| dataSource | 数据数组 | object\[] | - | |
|
208
|
-
| expandable | 配置展开属性 | [expandable](#expandable) | - | |
|
209
|
-
| footer | 表格尾部 | function(currentPageData) | - | |
|
210
|
-
| getPopupContainer | 设置表格内各类浮层的渲染节点,如筛选菜单 | (triggerNode) => HTMLElement | () => TableHtmlElement | |
|
211
|
-
| loading | 页面是否加载中 | boolean \| [Spin Props](/components/spin/#API) | false | |
|
212
|
-
| locale | 默认文案设置,目前包括排序、过滤、空数据文案 | object | filterConfirm: `确定` <br> filterReset: `重置` <br> emptyText: `暂无数据` <br> [默认值](https://github.com/ant-design/ant-design/blob/4ad1ccac277782d7ed14f7e5d02d6346aae0db67/components/locale/default.tsx#L19) | |
|
213
|
-
| pagination | 分页器,参考[配置项](#pagination)或 [pagination](/components/pagination/) 文档,设为 false 时不展示和进行分页 | object | - | |
|
214
|
-
| rowClassName | 表格行的类名 | function(record, index): string | - | |
|
215
|
-
| rowKey | 表格行 key 的取值,可以是字符串或一个函数 | string \| function(record): string | `key` | |
|
216
|
-
| rowSelection | 表格行是否可选择,[配置项](#rowSelection) | object | - | |
|
217
|
-
| scroll | 表格是否可滚动,也可以指定滚动区域的宽、高,[配置项](#scroll) | object | - | |
|
218
|
-
| showHeader | 是否显示表头 | boolean | true | |
|
219
|
-
| showSorterTooltip | 表头是否显示下一次排序的 tooltip 提示。当参数类型为对象时,将被设置为 Tooltip 的属性 | boolean \| [Tooltip props](/components/tooltip/) | true | |
|
220
|
-
| size | 表格大小 | `default` \| `middle` \| `small` | default | |
|
221
|
-
| sortDirections | 支持的排序方式,取值为 `ascend` `descend` | Array | \[`ascend`, `descend`] | |
|
222
|
-
| sticky | 设置粘性头部和滚动条 | boolean \| `{offsetHeader?: number, offsetScroll?: number, getContainer?: () => HTMLElement}` | - | 4.6.0 (getContainer: 4.7.0) |
|
223
|
-
| summary | 总结栏 | (currentData) => ReactNode | - | |
|
224
|
-
| tableLayout | 表格元素的 [table-layout](https://developer.mozilla.org/zh-CN/docs/Web/CSS/table-layout) 属性,设为 `fixed` 表示内容不会影响列的布局 | - \| `auto` \| `fixed` | 无<hr />固定表头/列或使用了 `column.ellipsis` 时,默认值为 `fixed` | |
|
225
|
-
| title | 表格标题 | function(currentPageData) | - | |
|
226
|
-
| onChange | 分页、排序、筛选变化时触发 | function(pagination, filters, sorter, extra: { currentDataSource: \[], action: `paginate` \| `sort` \| `filter` }) | - | |
|
227
|
-
| onHeaderRow | 设置头部行属性 | function(columns, index) | - | |
|
228
|
-
| onRow | 设置行属性 | function(record, index) | - | |
|
229
|
-
|
230
|
-
#### onRow 用法
|
231
|
-
|
232
|
-
适用于 `onRow` `onHeaderRow` `onCell` `onHeaderCell`。
|
233
|
-
|
234
|
-
```bash
|
235
|
-
<Table
|
236
|
-
onRow={record => {
|
237
|
-
return {
|
238
|
-
onClick: event => {}, // 点击行
|
239
|
-
onDoubleClick: event => {},
|
240
|
-
onContextMenu: event => {},
|
241
|
-
onMouseEnter: event => {}, // 鼠标移入行
|
242
|
-
onMouseLeave: event => {},
|
243
|
-
};
|
244
|
-
}}
|
245
|
-
onHeaderRow={(columns, index) => {
|
246
|
-
return {
|
247
|
-
onClick: () => {}, // 点击表头行
|
248
|
-
};
|
249
|
-
}}
|
250
|
-
/>
|
251
|
-
```
|
252
|
-
|
253
|
-
### Column
|
254
|
-
|
255
|
-
列描述数据对象,是 columns 中的一项,Column 使用相同的 API。
|
256
|
-
|
257
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
258
|
-
| --- | --- | --- | --- | --- |
|
259
|
-
| align | 设置列的对齐方式 | `left` \| `right` \| `center` | `left` | |
|
260
|
-
| className | 列样式类名 | string | - | |
|
261
|
-
| colSpan | 表头列合并,设置为 0 时,不渲染 | number | - | |
|
262
|
-
| dataIndex | 列数据在数据项中对应的路径,支持通过数组查询嵌套路径 | string \| string\[] | - | |
|
263
|
-
| defaultFilteredValue | 默认筛选值 | string\[] | - | |
|
264
|
-
| defaultSortOrder | 默认排序顺序 | `ascend` \| `descend` | - | |
|
265
|
-
| editable | 是否可编辑 | boolean | false | |
|
266
|
-
| ellipsis | 超过宽度将自动省略,暂不支持和排序筛选一起使用。<br />设置为 `true` 或 `{ showTitle?: boolean }` 时,表格布局将变成 `tableLayout="fixed"`。 | boolean \| { showTitle?: boolean } | false | showTitle: 4.3.0 |
|
267
|
-
| filterDropdown | 可以自定义筛选菜单,此函数只负责渲染图层,需要自行编写各种交互 | ReactNode \| (props: [FilterDropdownProps](https://git.io/fjP5h)) => ReactNode | - | |
|
268
|
-
| filterDropdownVisible | 用于控制自定义筛选菜单是否可见 | boolean | - | |
|
269
|
-
| filtered | 标识数据是否经过过滤,筛选图标会高亮 | boolean | false | |
|
270
|
-
| filteredValue | 筛选的受控属性,外界可用此控制列的筛选状态,值为已筛选的 value 数组 | string\[] | - | |
|
271
|
-
| filterIcon | 自定义 filter 图标。 | ReactNode \| (filtered: boolean) => ReactNode | false | |
|
272
|
-
| filterMultiple | 是否多选 | boolean | true | |
|
273
|
-
| filters | 表头的筛选菜单项 | object\[] | - | |
|
274
|
-
| fixed | (IE 下无效)列是否固定,可选 true (等效于 left) `left` `right` | boolean \| string | false | |
|
275
|
-
| key | React 需要的 key,如果已经设置了唯一的 `dataIndex`,可以忽略这个属性 | string | - | |
|
276
|
-
| render | 生成复杂数据的渲染函数,参数分别为当前行的值,当前行数据,行索引,@return 里面可以设置表格[行/列合并](#components-table-demo-colspan-rowspan) | function(text, record, index) {} | - | |
|
277
|
-
| responsive | 响应式 breakpoint 配置列表。未设置则始终可见。 | [Breakpoint](https://github.com/ant-design/ant-design/blob/015109b42b85c63146371b4e32b883cf97b088e8/components/_util/responsiveObserve.ts#L1)\[] | - | 4.2.0 |
|
278
|
-
| shouldCellUpdate | 自定义单元格渲染时机 | (record, prevRecord) => boolean | - | 4.3.0 |
|
279
|
-
| showSorterTooltip | 表头显示下一次排序的 tooltip 提示, 覆盖 table 中 `showSorterTooltip` | boolean \| [Tooltip props](/components/tooltip/#API) | true | |
|
280
|
-
| sortDirections | 支持的排序方式,覆盖 `Table` 中 `sortDirections`, 取值为 `ascend` `descend` | Array | \[`ascend`, `descend`] | |
|
281
|
-
| sorter | 排序函数,本地排序使用一个函数(参考 [Array.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) 的 compareFunction),需要服务端排序可设为 true | function \| boolean | - | |
|
282
|
-
| sortOrder | 排序的受控属性,外界可用此控制列的排序,可设置为 `ascend` `descend` false | boolean \| string | - | |
|
283
|
-
| title | 列头显示文字(函数用法 `3.10.0` 后支持) | ReactNode \| ({ sortOrder, sortColumn, filters }) => ReactNode | - | |
|
284
|
-
| width | 列宽度([指定了也不生效?](https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241)) | string \| number | - | |
|
285
|
-
| onCell | 设置单元格属性 | function(record, rowIndex) | - | |
|
286
|
-
| onFilter | 本地模式下,确定筛选的运行函数 | function | - | |
|
287
|
-
| onFilterDropdownVisibleChange | 自定义筛选菜单可见变化时调用 | function(visible) {} | - | |
|
288
|
-
| onHeaderCell | 设置头部单元格属性 | function(column) | - | |
|
289
|
-
|
290
|
-
### ColumnGroup
|
291
|
-
|
292
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
293
|
-
| ----- | ------------ | --------- | ------ |
|
294
|
-
| title | 列头显示文字 | ReactNode | - |
|
295
|
-
|
296
|
-
### pagination
|
297
|
-
|
298
|
-
分页的配置项。
|
299
|
-
|
300
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
301
|
-
| --- | --- | --- | --- |
|
302
|
-
| position | 指定分页显示的位置, 取值为`topLeft` \| `topCenter` \| `topRight` \|`bottomLeft` \| `bottomCenter` \| `bottomRight` | Array | \[`bottomRight`] |
|
303
|
-
|
304
|
-
更多配置项,请查看 [`Pagination`](/components/pagination/)。
|
305
|
-
|
306
|
-
### expandable
|
307
|
-
|
308
|
-
展开功能的配置。
|
309
|
-
|
310
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
311
|
-
| --- | --- | --- | --- | --- |
|
312
|
-
| childrenColumnName | 指定树形结构的列名 | string | children | |
|
313
|
-
| columnWidth | 自定义展开列宽度 | string \| number | - | |
|
314
|
-
| defaultExpandAllRows | 初始时,是否展开所有行 | boolean | false | |
|
315
|
-
| defaultExpandedRowKeys | 默认展开的行 | string\[] | - | |
|
316
|
-
| expandedRowClassName | 展开行的 className | function(record, index, indent): string | - | |
|
317
|
-
| expandedRowKeys | 展开的行,控制属性 | string\[] | - | |
|
318
|
-
| expandedRowRender | 额外的展开行 | function(record, index, indent, expanded): ReactNode | - | |
|
319
|
-
| expandIcon | 自定义展开图标,参考[示例](https://codesandbox.io/s/fervent-bird-nuzpr) | function(props): ReactNode | - | |
|
320
|
-
| expandIconColumnIndex | 自定义展开按钮的列顺序,`-1` 时不展示 | number | - | |
|
321
|
-
| expandRowByClick | 通过点击行来展开子行 | boolean | false | |
|
322
|
-
| fixed | 控制展开图标是否固定,可选 true `left` `right` | boolean \| string | false | 4.16.0 |
|
323
|
-
| indentSize | 展示树形数据时,每层缩进的宽度,以 px 为单位 | number | 15 | |
|
324
|
-
| rowExpandable | 设置是否允许行展开 | (record) => boolean | - | |
|
325
|
-
| onExpand | 点击展开图标时触发 | function(expanded, record) | - | |
|
326
|
-
| onExpandedRowsChange | 展开的行变化时触发 | function(expandedRows) | - | |
|
327
|
-
|
328
|
-
- `fixed`
|
329
|
-
- 当设置为 true 或 `left` 且 `expandIconColumnIndex` 未设置或为 0 时,开启固定
|
330
|
-
- 当设置为 true 或 `right` 且 `expandIconColumnIndex` 设置为表格列数时,开启固定
|
331
|
-
|
332
|
-
### rowSelection
|
333
|
-
|
334
|
-
选择功能的配置。
|
335
|
-
|
336
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
337
|
-
| --- | --- | --- | --- | --- |
|
338
|
-
| checkStrictly | checkable 状态下节点选择完全受控(父子数据选中状态不再关联) | boolean | true | 4.4.0 |
|
339
|
-
| columnTitle | 自定义列表选择框标题 | ReactNode | - | |
|
340
|
-
| columnWidth | 自定义列表选择框宽度 | string \| number | `32px` | |
|
341
|
-
| fixed | 把选择框列固定在左边 | boolean | - | |
|
342
|
-
| getCheckboxProps | 选择框的默认属性配置 | function(record) | - | |
|
343
|
-
| hideSelectAll | 隐藏全选勾选框与自定义选择项 | boolean | false | 4.3.0 |
|
344
|
-
| preserveSelectedRowKeys | 当数据被删除时仍然保留选项的 `key` | boolean | - | 4.4.0 |
|
345
|
-
| renderCell | 渲染勾选框,用法与 Column 的 `render` 相同 | function(checked, record, index, originNode) {} | - | 4.1.0 |
|
346
|
-
| selectedRowKeys | 指定选中项的 key 数组,需要和 onChange 进行配合 | string\[] \| number\[] | \[] | |
|
347
|
-
| defaultSelectedRowKeys | 默认选中项的 key 数组 | string\[] \| number\[] | \[] | |
|
348
|
-
| selections | 自定义选择项 [配置项](#selection), 设为 `true` 时使用默认选择项 | object\[] \| boolean | true | |
|
349
|
-
| type | 多选/单选 | `checkbox` \| `radio` | `checkbox` | |
|
350
|
-
| onChange | 选中项发生变化时的回调 | function(selectedRowKeys, selectedRows) | - | |
|
351
|
-
| onSelect | 用户手动选择/取消选择某行的回调 | function(record, selected, selectedRows, nativeEvent) | - | |
|
352
|
-
| onSelectAll | 用户手动选择/取消选择所有行的回调 | function(selected, selectedRows, changeRows) | - | |
|
353
|
-
| onSelectInvert | 用户手动选择反选的回调 | function(selectedRowKeys) | - | |
|
354
|
-
| onSelectNone | 用户清空选择的回调 | function() | - | |
|
355
|
-
|
356
|
-
### scroll
|
357
|
-
|
358
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
359
|
-
| --- | --- | --- | --- |
|
360
|
-
| scrollToFirstRowOnChange | 当分页、排序、筛选变化后是否滚动到表格顶部 | boolean | - |
|
361
|
-
| x | 设置横向滚动,也可用于指定滚动区域的宽,可以设置为像素值,百分比,true 和 ['max-content'](https://developer.mozilla.org/zh-CN/docs/Web/CSS/width#max-content) | string \| number \| true | - |
|
362
|
-
| y | 设置纵向滚动,也可用于指定滚动区域的高,可以设置为像素值 | string \| number | - |
|
363
|
-
|
364
|
-
### selection
|
365
|
-
|
366
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
367
|
-
| -------- | -------------------------- | --------------------------- | ------ |
|
368
|
-
| key | React 需要的 key,建议设置 | string | - |
|
369
|
-
| text | 选择项显示的文字 | ReactNode | - |
|
370
|
-
| onSelect | 选择项点击回调 | function(changeableRowKeys) | - |
|
371
|
-
|
372
|
-
## 在 TypeScript 中使用
|
373
|
-
|
374
|
-
```bash
|
375
|
-
import { Table } from 'antd';
|
376
|
-
import { ColumnsType } from 'antd/es/table';
|
377
|
-
|
378
|
-
interface User {
|
379
|
-
key: number;
|
380
|
-
name: string;
|
381
|
-
}
|
382
|
-
|
383
|
-
const columns: ColumnsType<User> = [
|
384
|
-
{
|
385
|
-
key: 'name',
|
386
|
-
title: 'Name',
|
387
|
-
dataIndex: 'name',
|
388
|
-
},
|
389
|
-
];
|
390
|
-
|
391
|
-
const data: User[] = [
|
392
|
-
{
|
393
|
-
key: 0,
|
394
|
-
name: 'Jack',
|
395
|
-
},
|
396
|
-
];
|
397
|
-
|
398
|
-
export default () => (
|
399
|
-
<>
|
400
|
-
<Table<User> columns={columns} dataSource={data} />
|
401
|
-
/* 使用 JSX 风格的 API */
|
402
|
-
<Table<User> dataSource={data}>
|
403
|
-
<Table.Column<User> key="name" title="Name" dataIndex="name" />
|
404
|
-
</Table>
|
405
|
-
</>
|
406
|
-
);
|
407
|
-
```
|
408
|
-
|
409
|
-
TypeScript 里使用 Table 的 [CodeSandbox 实例](https://codesandbox.io/s/serene-platform-0jo5t)。
|
410
|
-
|
411
|
-
## 注意
|
412
|
-
|
413
|
-
按照 [React 的规范](https://zh-hans.reactjs.org/docs/lists-and-keys.html#keys),所有的数组组件必须绑定 `key`。在 Table 中,`dataSource` 和 `columns` 里的数据值都需要指定 `key` 值。对于 `dataSource` 默认将每列数据的 `key` 属性作为唯一的标识。
|
414
|
-
|
415
|
-

|
416
|
-
|
417
|
-
如果 `dataSource[i].key` 没有提供,你应该使用 `rowKey` 来指定 `dataSource` 的主键,如下所示。若没有指定,控制台会出现以上的提示,表格组件也会出现各类奇怪的错误。
|
418
|
-
|
419
|
-
```bash
|
420
|
-
// 比如你的数据主键是 uid
|
421
|
-
return <Table rowKey="uid" />;
|
422
|
-
// 或
|
423
|
-
return <Table rowKey={record => record.uid} />;
|
424
|
-
```
|
425
|
-
|
426
|
-
## 从 v3 升级到 v4
|
427
|
-
|
428
|
-
Table 移除了在 v3 中废弃的 `onRowClick`、`onRowDoubleClick`、`onRowMouseEnter`、`onRowMouseLeave` 等方法。如果你使用的 api 为文档中列举的 api,那你不用担心会丢失功能。
|
429
|
-
|
430
|
-
此外,比较重大的改动为 `dataIndex` 从支持路径嵌套如 `user.age` 改成了数组路径如 `['user', 'age']`。以解决过去属性名带 `.` 需要额外的数据转化问题。
|
431
|
-
|
432
|
-
## FAQ
|
433
|
-
|
434
|
-
### 如何在没有数据或只有一页数据时隐藏分页栏
|
435
|
-
|
436
|
-
你可以设置 `pagination` 的 `hideOnSinglePage` 属性为 `true`。
|
437
|
-
|
438
|
-
### 表格过滤时会回到第一页?
|
439
|
-
|
440
|
-
前端过滤时通常条目总数会减少,从而导致总页数小于筛选前的当前页数,为了防止当前页面没有数据,我们默认会返回第一页。
|
441
|
-
|
442
|
-
如果你在使用远程分页,很可能需要保持当前页面,你可以参照这个 [受控例子](https://codesandbox.io/s/yuanchengjiazaishuju-ant-design-demo-7y2uf) 控制当前页面不变。
|
443
|
-
|
444
|
-
### 表格分页为何会出现 size 切换器?
|
445
|
-
|
446
|
-
自 `4.1.0` 起,Pagination 在 `total` 大于 50 条时会默认显示 size 切换器以提升用户交互体验。如果你不需要该功能,可以通过设置 `showSizeChanger` 为 `false` 来关闭。
|
447
|
-
|
448
|
-
### 为什么 更新 state 会导致全表渲染?
|
449
|
-
|
450
|
-
由于 `columns` 支持 `render` 方法,因而 Table 无法知道哪些单元会受到影响。你可以通过 `column.shouldCellUpdate` 来控制单元格的渲染。
|
451
|
-
|
452
|
-
### 固定列穿透到最上层该怎么办?
|
453
|
-
|
454
|
-
固定列通过 `z-index` 属性将其悬浮于非固定列之上,这使得有时候你会发现在 Table 上放置遮罩层时固定列会被透过的情况。为遮罩层设置更高的 `z-index` 覆盖住固定列即可。
|
455
|
-
|
456
|
-
<style>
|
457
|
-
#components-table-demo-summary tfoot th,
|
458
|
-
#components-table-demo-summary tfoot td {
|
459
|
-
background: #fafafa;
|
460
|
-
}
|
461
|
-
[data-theme="dark"] #components-table-demo-summary tfoot th,
|
462
|
-
[data-theme="dark"] #components-table-demo-summary tfoot td {
|
463
|
-
background: #1d1d1d;
|
464
|
-
}
|
465
|
-
|
466
|
-
.virtual-table .ant-table-container:before,
|
467
|
-
.virtual-table .ant-table-container:after {
|
468
|
-
display: none;
|
469
|
-
}
|
470
|
-
.virtual-table-cell {
|
471
|
-
box-sizing: border-box;
|
472
|
-
padding: 16px;
|
473
|
-
border-bottom: 1px solid #e8e8e8;
|
474
|
-
background: #FFF;
|
475
|
-
}
|
476
|
-
[data-theme="dark"] .virtual-table-cell {
|
477
|
-
box-sizing: border-box;
|
478
|
-
padding: 16px;
|
479
|
-
border-bottom: 1px solid #303030;
|
480
|
-
background: #141414;
|
481
|
-
}
|
482
|
-
</style>
|
483
|
-
|
484
|
-
|