@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,176 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: ConfigProvider全局化配置
|
3
|
-
order: 0
|
4
|
-
legacy: /config-provider
|
5
|
-
group:
|
6
|
-
path: /
|
7
|
-
nav:
|
8
|
-
title: 组件
|
9
|
-
path: /components
|
10
|
-
---
|
11
|
-
|
12
|
-
为组件提供统一的全局化配置。
|
13
|
-
|
14
|
-
## 使用
|
15
|
-
|
16
|
-
ConfigProvider 使用 React 的 [context](https://facebook.github.io/react/docs/context.html) 特性,只需在应用外围包裹一次即可全局生效。
|
17
|
-
|
18
|
-
```bash
|
19
|
-
import { ConfigProvider } from 'antd';
|
20
|
-
|
21
|
-
// ...
|
22
|
-
|
23
|
-
export default () => (
|
24
|
-
<ConfigProvider direction="rtl">
|
25
|
-
<App />
|
26
|
-
</ConfigProvider>
|
27
|
-
);
|
28
|
-
```
|
29
|
-
|
30
|
-
### Content Security Policy
|
31
|
-
|
32
|
-
部分组件为了支持波纹效果,使用了动态样式。如果开启了 Content Security Policy (CSP),你可以通过 `csp` 属性来进行配置:
|
33
|
-
|
34
|
-
```bash
|
35
|
-
<ConfigProvider csp={{ nonce: 'YourNonceCode' }}>
|
36
|
-
<Button>My Button</Button>
|
37
|
-
</ConfigProvider>
|
38
|
-
```
|
39
|
-
|
40
|
-
## 代码演示
|
41
|
-
|
42
|
-
### 国际化
|
43
|
-
|
44
|
-
<code src="./demos/international.tsx"/>
|
45
|
-
|
46
|
-
### 方向
|
47
|
-
|
48
|
-
<code src="./demos/direction.tsx"/>
|
49
|
-
|
50
|
-
### 组件尺寸
|
51
|
-
|
52
|
-
<code src="./demos/size.tsx"/>
|
53
|
-
|
54
|
-
### 全局样式
|
55
|
-
|
56
|
-
<code src="./demos/global.tsx"/>
|
57
|
-
|
58
|
-
## API
|
59
|
-
|
60
|
-
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
61
|
-
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------- | ------------------- |
|
62
|
-
| autoInsertSpaceInButton | 设置为 `false` 时,移除按钮中 2 个汉字之间的空格 | boolean | true | |
|
63
|
-
| componentSize | 设置 antd 组件大小 | `small` \| `middle` \| `large` | - | |
|
64
|
-
| csp | 设置 [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) 配置 | { nonce: string } | - | |
|
65
|
-
| direction | 设置文本展示方向。 [示例](#components-config-provider-demo-direction) | `ltr` \| `rtl` | `ltr` | |
|
66
|
-
| dropdownMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`,当值小于选择框宽度时会被忽略。`false` 时会关闭虚拟滚动 | boolean \| number | - | 4.3.0 |
|
67
|
-
| form | 设置 Form 组件的通用属性 | { validateMessages?: [ValidateMessages](/components/form/#validateMessages), requiredMark?: boolean \| `optional` } | - | requiredMark: 4.8.0 |
|
68
|
-
| getPopupContainer | 弹出框(Select, Tooltip, Menu 等等)渲染父节点,默认渲染到 body 上。 | function(triggerNode) | () => document.body | |
|
69
|
-
| getTargetContainer | 配置 Affix、Anchor 滚动监听容器。 | () => HTMLElement | () => window | 4.2.0 |
|
70
|
-
| iconPrefixCls | 设置图标统一样式前缀。注意:需要配合 `less` 变量 [@iconfont-css-prefix](https://github.com/ant-design/ant-design/blob/d943b85a523bdf181dabc12c928226f3b4b893de/components/style/themes/default.less#L106) 使用 | string | `anticon` | 4.11.0 |
|
71
|
-
| input | 设置 Input 组件的通用属性 | { autoComplete?: string } | - | 4.2.0 |
|
72
|
-
| locale | 语言包配置,语言包可到 [antd/lib/locale](http://unpkg.com/antd/lib/locale/) 目录下寻找 | object | - | |
|
73
|
-
| pageHeader | 统一设置 PageHeader 的 ghost,参考 [PageHeader](/components/page-header) | { ghost: boolean } | true | |
|
74
|
-
| prefixCls | 设置统一样式前缀。注意:需要配合 `less` 变量 [@ant-prefix](https://github.com/ant-design/ant-design/blob/2c6c789e3a9356f96c47aea0083f5a15538315cf/components/style/themes/default.less#L7) 使用 | string | `ant` | |
|
75
|
-
| renderEmpty | 自定义组件空状态。参考 [空状态](/components/empty/) | function(componentName: string): ReactNode | - | |
|
76
|
-
| space | 设置 Space 的 `size`,参考 [Space](/components/space) | { size: `small` \| `middle` \| `large` \| `number` } | - | 4.1.0 |
|
77
|
-
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | - | 4.3.0 |
|
78
|
-
|
79
|
-
### ConfigProvider.config() `4.13.0+`
|
80
|
-
|
81
|
-
设置 `Modal`、`Message`、`Notification` rootPrefixCls。
|
82
|
-
|
83
|
-
```bash
|
84
|
-
ConfigProvider.config({
|
85
|
-
prefixCls: 'ant', // 4.13.0+
|
86
|
-
iconPrefixCls: 'anticon', // 4.17.0+
|
87
|
-
});
|
88
|
-
```
|
89
|
-
|
90
|
-
## FAQ
|
91
|
-
|
92
|
-
#### 如何增加一个新的语言包?
|
93
|
-
|
94
|
-
参考[《增加语言包》](/docs/react/i18n#%E5%A2%9E%E5%8A%A0%E8%AF%AD%E8%A8%80%E5%8C%85)。
|
95
|
-
|
96
|
-
#### 为什么我使用了 ConfigProvider `locale`,时间类组件的国际化还有问题?
|
97
|
-
|
98
|
-
请检查是否正确设置了 moment 语言包,或者是否有两个版本的 moment 共存。
|
99
|
-
|
100
|
-
```bash
|
101
|
-
import 'moment/locale/zh-cn';
|
102
|
-
moment.locale('zh-cn');
|
103
|
-
```
|
104
|
-
|
105
|
-
#### 配置 `getPopupContainer` 导致 Modal 报错?
|
106
|
-
|
107
|
-
相关 issue:<https://github.com/ant-design/ant-design/issues/19974>
|
108
|
-
|
109
|
-
当如下全局设置 `getPopupContainer` 为触发节点的 parentNode 时,由于 Modal 的用法不存在 `triggerNode`,这样会导致 `triggerNode is undefined` 的报错,需要增加一个[判断条件](https://github.com/afc163/feedback-antd/commit/3e4d1ad1bc1a38460dc3bf3c56517f737fe7d44a)。
|
110
|
-
|
111
|
-
```diff
|
112
|
-
<ConfigProvider
|
113
|
-
- getPopupContainer={triggerNode => triggerNode.parentNode}
|
114
|
-
+ getPopupContainer={node => {
|
115
|
-
+ if (node) {
|
116
|
-
+ return node.parentNode;
|
117
|
-
+ }
|
118
|
-
+ return document.body;
|
119
|
-
+ }}
|
120
|
-
>
|
121
|
-
<App />
|
122
|
-
</ConfigProvider>
|
123
|
-
```
|
124
|
-
|
125
|
-
<style>
|
126
|
-
.site-config-provider-calendar-wrapper {
|
127
|
-
width: 319px;
|
128
|
-
border: 1px solid #d9d9d9;
|
129
|
-
border-radius: 2px;
|
130
|
-
}
|
131
|
-
|
132
|
-
.locale-components {
|
133
|
-
padding-top: 16px;
|
134
|
-
border-top: 1px solid #d9d9d9;
|
135
|
-
}
|
136
|
-
|
137
|
-
.__dumi-default-previewer-demo .example {
|
138
|
-
margin: 16px 0;
|
139
|
-
}
|
140
|
-
|
141
|
-
.__dumi-default-previewer-demo .example > * {
|
142
|
-
margin-right: 8px;
|
143
|
-
}
|
144
|
-
|
145
|
-
.change-locale {
|
146
|
-
margin-bottom: 16px;
|
147
|
-
}
|
148
|
-
|
149
|
-
.button-demo .ant-btn,
|
150
|
-
.button-demo .ant-btn-group {
|
151
|
-
margin-right: 8px;
|
152
|
-
margin-bottom: 12px;
|
153
|
-
}
|
154
|
-
.button-demo .ant-btn-group > .ant-btn,
|
155
|
-
.button-demo .ant-btn-group > span > .ant-btn {
|
156
|
-
margin-right: 0;
|
157
|
-
margin-left: 0;
|
158
|
-
}
|
159
|
-
|
160
|
-
.head-example {
|
161
|
-
display: inline-block;
|
162
|
-
width: 42px;
|
163
|
-
height: 42px;
|
164
|
-
vertical-align: middle;
|
165
|
-
background: #eee;
|
166
|
-
border-radius: 4px;
|
167
|
-
}
|
168
|
-
|
169
|
-
.ant-badge:not(.ant-badge-not-a-wrapper) {
|
170
|
-
margin-right: 20px;
|
171
|
-
}
|
172
|
-
.ant-badge-rtl:not(.ant-badge-not-a-wrapper) {
|
173
|
-
margin-right: 0;
|
174
|
-
margin-left: 20px;
|
175
|
-
}
|
176
|
-
</style>
|
@@ -1,558 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* title: 方向
|
3
|
-
* desc: 这里列出了支持 rtl 方向的组件,您可以在演示中切换方向。
|
4
|
-
*/
|
5
|
-
import React, { useState } from 'react';
|
6
|
-
import { ConfigProvider } from '@fle-ui/next';
|
7
|
-
import {
|
8
|
-
Input,
|
9
|
-
Col,
|
10
|
-
Row,
|
11
|
-
Select,
|
12
|
-
InputNumber,
|
13
|
-
Cascader,
|
14
|
-
Radio,
|
15
|
-
Switch,
|
16
|
-
Tree,
|
17
|
-
// TreeSelect,
|
18
|
-
Modal,
|
19
|
-
Button,
|
20
|
-
Pagination,
|
21
|
-
Steps,
|
22
|
-
Rate,
|
23
|
-
Badge,
|
24
|
-
Divider,
|
25
|
-
} from 'antd';
|
26
|
-
import {
|
27
|
-
SearchOutlined as SearchIcon,
|
28
|
-
SmileOutlined,
|
29
|
-
DownloadOutlined,
|
30
|
-
LeftOutlined,
|
31
|
-
RightOutlined,
|
32
|
-
MinusOutlined,
|
33
|
-
PlusOutlined,
|
34
|
-
} from '@ant-design/icons';
|
35
|
-
|
36
|
-
const InputGroup = Input.Group;
|
37
|
-
const ButtonGroup = Button.Group;
|
38
|
-
const { Option } = Select;
|
39
|
-
const { TreeNode } = Tree;
|
40
|
-
const { Search } = Input;
|
41
|
-
const { Step } = Steps;
|
42
|
-
|
43
|
-
const cascaderOptions = [
|
44
|
-
{
|
45
|
-
value: 'tehran',
|
46
|
-
label: 'تهران',
|
47
|
-
children: [
|
48
|
-
{
|
49
|
-
value: 'tehran-c',
|
50
|
-
label: 'تهران',
|
51
|
-
children: [
|
52
|
-
{
|
53
|
-
value: 'saadat-abad',
|
54
|
-
label: 'سعادت آیاد',
|
55
|
-
},
|
56
|
-
],
|
57
|
-
},
|
58
|
-
],
|
59
|
-
},
|
60
|
-
{
|
61
|
-
value: 'ardabil',
|
62
|
-
label: 'اردبیل',
|
63
|
-
children: [
|
64
|
-
{
|
65
|
-
value: 'ardabil-c',
|
66
|
-
label: 'اردبیل',
|
67
|
-
children: [
|
68
|
-
{
|
69
|
-
value: 'primadar',
|
70
|
-
label: 'پیرمادر',
|
71
|
-
},
|
72
|
-
],
|
73
|
-
},
|
74
|
-
],
|
75
|
-
},
|
76
|
-
{
|
77
|
-
value: 'gilan',
|
78
|
-
label: 'گیلان',
|
79
|
-
children: [
|
80
|
-
{
|
81
|
-
value: 'rasht',
|
82
|
-
label: 'رشت',
|
83
|
-
children: [
|
84
|
-
{
|
85
|
-
value: 'district-3',
|
86
|
-
label: 'منطقه ۳',
|
87
|
-
},
|
88
|
-
],
|
89
|
-
},
|
90
|
-
],
|
91
|
-
},
|
92
|
-
];
|
93
|
-
|
94
|
-
const Page = (props: any) => {
|
95
|
-
const [currentStep, setCurrentStep] = useState(0);
|
96
|
-
const [modalVisible, setModalVisible] = useState(false);
|
97
|
-
const [badgeCount, setBadgeCount] = useState(5);
|
98
|
-
const [showBadge, setShowBadge] = useState(true);
|
99
|
-
|
100
|
-
const selectBefore = (
|
101
|
-
<Select defaultValue="Http://" style={{ width: 90 }}>
|
102
|
-
<Option value="Http://">Http://</Option>
|
103
|
-
<Option value="Https://">Https://</Option>
|
104
|
-
</Select>
|
105
|
-
);
|
106
|
-
|
107
|
-
const selectAfter = (
|
108
|
-
<Select defaultValue=".com" style={{ width: 80 }}>
|
109
|
-
<Option value=".com">.com</Option>
|
110
|
-
<Option value=".jp">.jp</Option>
|
111
|
-
<Option value=".cn">.cn</Option>
|
112
|
-
<Option value=".org">.org</Option>
|
113
|
-
</Select>
|
114
|
-
);
|
115
|
-
|
116
|
-
// ==== Cascader ====
|
117
|
-
const cascaderFilter: any = (inputValue: any, path: any) => {
|
118
|
-
path.some(
|
119
|
-
(option: any) =>
|
120
|
-
option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1,
|
121
|
-
);
|
122
|
-
};
|
123
|
-
|
124
|
-
const onCascaderChange = (value: any) => {
|
125
|
-
console.log(value);
|
126
|
-
};
|
127
|
-
// ==== End Cascader ====
|
128
|
-
|
129
|
-
// ==== Modal ====
|
130
|
-
const showModal = () => {
|
131
|
-
setModalVisible(true);
|
132
|
-
};
|
133
|
-
|
134
|
-
const handleOk = (e: any) => {
|
135
|
-
console.log(e);
|
136
|
-
setModalVisible(false);
|
137
|
-
};
|
138
|
-
|
139
|
-
const handleCancel = (e: any) => {
|
140
|
-
console.log(e);
|
141
|
-
setModalVisible(false);
|
142
|
-
};
|
143
|
-
// ==== End Modal ====
|
144
|
-
|
145
|
-
const onStepsChange = (currentStep: any) => {
|
146
|
-
console.log('onChange:', currentStep);
|
147
|
-
setCurrentStep(currentStep);
|
148
|
-
};
|
149
|
-
|
150
|
-
// ==== Badge ====
|
151
|
-
|
152
|
-
const increaseBadge = () => {
|
153
|
-
setBadgeCount(badgeCount + 1);
|
154
|
-
};
|
155
|
-
|
156
|
-
const declineBadge = () => {
|
157
|
-
setBadgeCount(badgeCount - 1);
|
158
|
-
if (badgeCount < 0) {
|
159
|
-
setBadgeCount(0);
|
160
|
-
}
|
161
|
-
};
|
162
|
-
|
163
|
-
const onChangeBadge = (showBadge: any) => {
|
164
|
-
setShowBadge(showBadge);
|
165
|
-
};
|
166
|
-
// ==== End Badge ====
|
167
|
-
|
168
|
-
return (
|
169
|
-
<div className="direction-components">
|
170
|
-
<Row>
|
171
|
-
<Col span={24}>
|
172
|
-
<Divider orientation="left">Cascader example</Divider>
|
173
|
-
<Cascader
|
174
|
-
suffixIcon={<SearchIcon />}
|
175
|
-
options={cascaderOptions}
|
176
|
-
onChange={onCascaderChange}
|
177
|
-
placeholder="یک مورد انتخاب کنید"
|
178
|
-
popupPlacement={props.popupPlacement}
|
179
|
-
/>
|
180
|
-
With search:
|
181
|
-
<Cascader
|
182
|
-
suffixIcon={<SmileOutlined />}
|
183
|
-
options={cascaderOptions}
|
184
|
-
onChange={onCascaderChange}
|
185
|
-
placeholder="Select an item"
|
186
|
-
popupPlacement={props.popupPlacement}
|
187
|
-
showSearch={cascaderFilter}
|
188
|
-
/>
|
189
|
-
</Col>
|
190
|
-
</Row>
|
191
|
-
<br />
|
192
|
-
<Row>
|
193
|
-
<Col span={12}>
|
194
|
-
<Divider orientation="left">Switch example</Divider>
|
195
|
-
|
196
|
-
<Switch defaultChecked />
|
197
|
-
|
198
|
-
<Switch loading defaultChecked />
|
199
|
-
|
200
|
-
<Switch size="small" loading />
|
201
|
-
</Col>
|
202
|
-
<Col span={12}>
|
203
|
-
<Divider orientation="left">Radio Group example</Divider>
|
204
|
-
|
205
|
-
<Radio.Group defaultValue="c" buttonStyle="solid">
|
206
|
-
<Radio.Button value="a">تهران</Radio.Button>
|
207
|
-
<Radio.Button value="b" disabled>
|
208
|
-
اصفهان
|
209
|
-
</Radio.Button>
|
210
|
-
<Radio.Button value="c">فارس</Radio.Button>
|
211
|
-
<Radio.Button value="d">خوزستان</Radio.Button>
|
212
|
-
</Radio.Group>
|
213
|
-
</Col>
|
214
|
-
</Row>
|
215
|
-
<br />
|
216
|
-
<Row>
|
217
|
-
<Col span={12}>
|
218
|
-
<Divider orientation="left">Button example</Divider>
|
219
|
-
<div className="button-demo">
|
220
|
-
<Button type="primary" icon={<DownloadOutlined />} />
|
221
|
-
<Button type="primary" shape="circle" icon={<DownloadOutlined />} />
|
222
|
-
<Button type="primary" shape="round" icon={<DownloadOutlined />} />
|
223
|
-
<Button type="primary" shape="round" icon={<DownloadOutlined />}>
|
224
|
-
Download
|
225
|
-
</Button>
|
226
|
-
<Button type="primary" icon={<DownloadOutlined />}>
|
227
|
-
Download
|
228
|
-
</Button>
|
229
|
-
<br />
|
230
|
-
<Button.Group>
|
231
|
-
<Button type="primary">
|
232
|
-
<LeftOutlined />
|
233
|
-
Backward
|
234
|
-
</Button>
|
235
|
-
<Button type="primary">
|
236
|
-
Forward
|
237
|
-
<RightOutlined />
|
238
|
-
</Button>
|
239
|
-
</Button.Group>
|
240
|
-
<Button type="primary" loading>
|
241
|
-
Loading
|
242
|
-
</Button>
|
243
|
-
<Button type="primary" size="small" loading>
|
244
|
-
Loading
|
245
|
-
</Button>
|
246
|
-
</div>
|
247
|
-
</Col>
|
248
|
-
<Col span={12}>
|
249
|
-
<Divider orientation="left">Tree example</Divider>
|
250
|
-
<Tree
|
251
|
-
showLine
|
252
|
-
checkable
|
253
|
-
defaultExpandedKeys={['0-0-0', '0-0-1']}
|
254
|
-
defaultSelectedKeys={['0-0-0', '0-0-1']}
|
255
|
-
defaultCheckedKeys={['0-0-0', '0-0-1']}
|
256
|
-
>
|
257
|
-
<TreeNode title="parent 1" key="0-0">
|
258
|
-
<TreeNode title="parent 1-0" key="0-0-0" disabled>
|
259
|
-
<TreeNode title="leaf" key="0-0-0-0" disableCheckbox />
|
260
|
-
<TreeNode title="leaf" key="0-0-0-1" />
|
261
|
-
</TreeNode>
|
262
|
-
<TreeNode title="parent 1-1" key="0-0-1">
|
263
|
-
<TreeNode
|
264
|
-
title={<span style={{ color: '#1890ff' }}>sss</span>}
|
265
|
-
key="0-0-1-0"
|
266
|
-
/>
|
267
|
-
</TreeNode>
|
268
|
-
</TreeNode>
|
269
|
-
</Tree>
|
270
|
-
</Col>
|
271
|
-
</Row>
|
272
|
-
<br />
|
273
|
-
<Row>
|
274
|
-
<Col span={24}>
|
275
|
-
<Divider orientation="left">Input (Input Group) example</Divider>
|
276
|
-
<InputGroup size="large">
|
277
|
-
<Row gutter={8}>
|
278
|
-
<Col span={5}>
|
279
|
-
<Input defaultValue="0571" />
|
280
|
-
</Col>
|
281
|
-
<Col span={8}>
|
282
|
-
<Input defaultValue="26888888" />
|
283
|
-
</Col>
|
284
|
-
</Row>
|
285
|
-
</InputGroup>
|
286
|
-
<br />
|
287
|
-
<InputGroup compact>
|
288
|
-
<Input style={{ width: '20%' }} defaultValue="0571" />
|
289
|
-
<Input style={{ width: '30%' }} defaultValue="26888888" />
|
290
|
-
</InputGroup>
|
291
|
-
<br />
|
292
|
-
<InputGroup compact>
|
293
|
-
<Select defaultValue="Option1">
|
294
|
-
<Option value="Option1">Option1</Option>
|
295
|
-
<Option value="Option2">Option2</Option>
|
296
|
-
</Select>
|
297
|
-
<Input style={{ width: '50%' }} defaultValue="input content" />
|
298
|
-
<InputNumber />
|
299
|
-
</InputGroup>
|
300
|
-
<br />
|
301
|
-
<Search
|
302
|
-
placeholder="input search text"
|
303
|
-
enterButton="Search"
|
304
|
-
size="large"
|
305
|
-
/>
|
306
|
-
<br />
|
307
|
-
<br />
|
308
|
-
<div style={{ marginBottom: 16 }}>
|
309
|
-
<Input
|
310
|
-
addonBefore={selectBefore}
|
311
|
-
addonAfter={selectAfter}
|
312
|
-
defaultValue="mysite"
|
313
|
-
/>
|
314
|
-
</div>
|
315
|
-
<br />
|
316
|
-
<Row>
|
317
|
-
<Col span={12}>
|
318
|
-
<Divider orientation="left">Select example</Divider>
|
319
|
-
<Select
|
320
|
-
mode="multiple"
|
321
|
-
defaultValue="مورچه"
|
322
|
-
style={{ width: 120 }}
|
323
|
-
>
|
324
|
-
<Option value="jack">Jack</Option>
|
325
|
-
<Option value="مورچه">مورچه</Option>
|
326
|
-
<Option value="disabled" disabled>
|
327
|
-
Disabled
|
328
|
-
</Option>
|
329
|
-
<Option value="Yiminghe">yiminghe</Option>
|
330
|
-
</Select>
|
331
|
-
<Select defaultValue="مورچه" style={{ width: 120 }} disabled>
|
332
|
-
<Option value="مورچه">مورچه</Option>
|
333
|
-
</Select>
|
334
|
-
<Select defaultValue="مورچه" style={{ width: 120 }} loading>
|
335
|
-
<Option value="مورچه">مورچه</Option>
|
336
|
-
</Select>
|
337
|
-
<Select
|
338
|
-
showSearch
|
339
|
-
style={{ width: 200 }}
|
340
|
-
placeholder="Select a person"
|
341
|
-
optionFilterProp="children"
|
342
|
-
filterOption={(input: any, option: any) =>
|
343
|
-
option.props.children
|
344
|
-
.toLowerCase()
|
345
|
-
.indexOf(input.toLowerCase()) >= 0
|
346
|
-
}
|
347
|
-
>
|
348
|
-
<Option value="jack">Jack</Option>
|
349
|
-
<Option value="سعید">سعید</Option>
|
350
|
-
<Option value="tom">Tom</Option>
|
351
|
-
</Select>
|
352
|
-
</Col>
|
353
|
-
{/* <Col span={12}>
|
354
|
-
<Divider orientation="left">TreeSelect example</Divider>
|
355
|
-
<div>
|
356
|
-
<TreeSelect
|
357
|
-
showSearch
|
358
|
-
style={{ width: '100%' }}
|
359
|
-
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
360
|
-
placeholder="Please select"
|
361
|
-
allowClear
|
362
|
-
treeDefaultExpandAll
|
363
|
-
>
|
364
|
-
<TreeNode value="parent 1" title="parent 1" key="0-1">
|
365
|
-
<TreeNode value="parent 1-0" title="parent 1-0" key="0-1-1">
|
366
|
-
<TreeNode value="leaf1" title="my leaf" key="random" />
|
367
|
-
<TreeNode value="leaf2" title="your leaf" key="random1" />
|
368
|
-
</TreeNode>
|
369
|
-
<TreeNode
|
370
|
-
value="parent 1-1"
|
371
|
-
title="parent 1-1"
|
372
|
-
key="random2"
|
373
|
-
>
|
374
|
-
<TreeNode
|
375
|
-
value="sss"
|
376
|
-
title={<b style={{ color: '#08c' }}>sss</b>}
|
377
|
-
key="random3"
|
378
|
-
/>
|
379
|
-
</TreeNode>
|
380
|
-
</TreeNode>
|
381
|
-
</TreeSelect>
|
382
|
-
</div>
|
383
|
-
</Col> */}
|
384
|
-
</Row>
|
385
|
-
<br />
|
386
|
-
<Row>
|
387
|
-
<Col span={24}>
|
388
|
-
<Divider orientation="left">Modal example</Divider>
|
389
|
-
<div>
|
390
|
-
<Button type="primary" onClick={showModal}>
|
391
|
-
Open Modal
|
392
|
-
</Button>
|
393
|
-
<Modal
|
394
|
-
title="پنچره ساده"
|
395
|
-
visible={modalVisible}
|
396
|
-
onOk={handleOk}
|
397
|
-
onCancel={handleCancel}
|
398
|
-
>
|
399
|
-
<p>نگاشتههای خود را اینجا قراردهید</p>
|
400
|
-
<p>نگاشتههای خود را اینجا قراردهید</p>
|
401
|
-
<p>نگاشتههای خود را اینجا قراردهید</p>
|
402
|
-
</Modal>
|
403
|
-
</div>
|
404
|
-
</Col>
|
405
|
-
</Row>
|
406
|
-
<br />
|
407
|
-
<Row>
|
408
|
-
<Col span={24}>
|
409
|
-
<Divider orientation="left">Steps example</Divider>
|
410
|
-
<div>
|
411
|
-
<Steps progressDot current={currentStep}>
|
412
|
-
<Step title="Finished" description="This is a description." />
|
413
|
-
<Step
|
414
|
-
title="In Progress"
|
415
|
-
description="This is a description."
|
416
|
-
/>
|
417
|
-
<Step title="Waiting" description="This is a description." />
|
418
|
-
</Steps>
|
419
|
-
<br />
|
420
|
-
<Steps current={currentStep} onChange={onStepsChange}>
|
421
|
-
<Step title="Step 1" description="This is a description." />
|
422
|
-
<Step title="Step 2" description="This is a description." />
|
423
|
-
<Step title="Step 3" description="This is a description." />
|
424
|
-
</Steps>
|
425
|
-
</div>
|
426
|
-
</Col>
|
427
|
-
</Row>
|
428
|
-
<br />
|
429
|
-
<Row>
|
430
|
-
<Col span={12}>
|
431
|
-
<Divider orientation="left">Rate example</Divider>
|
432
|
-
<div>
|
433
|
-
<Rate defaultValue={2.5} />
|
434
|
-
<br />
|
435
|
-
<strong>* Note:</strong> Half star not implemented in RTL
|
436
|
-
direction, it will be supported after{' '}
|
437
|
-
<a href="https://github.com/react-component/rate">rc-rate</a>{' '}
|
438
|
-
implement rtl support.
|
439
|
-
</div>
|
440
|
-
</Col>
|
441
|
-
<Col span={12}>
|
442
|
-
<Divider orientation="left">Badge example</Divider>
|
443
|
-
<div>
|
444
|
-
<div>
|
445
|
-
<Badge count={badgeCount}>
|
446
|
-
<a href="#" className="head-example" />
|
447
|
-
</Badge>
|
448
|
-
<ButtonGroup>
|
449
|
-
<Button onClick={declineBadge}>
|
450
|
-
<MinusOutlined />
|
451
|
-
</Button>
|
452
|
-
<Button onClick={increaseBadge}>
|
453
|
-
<PlusOutlined />
|
454
|
-
</Button>
|
455
|
-
</ButtonGroup>
|
456
|
-
</div>
|
457
|
-
<div style={{ marginTop: 10 }}>
|
458
|
-
<Badge dot={showBadge}>
|
459
|
-
<a href="#" className="head-example" />
|
460
|
-
</Badge>
|
461
|
-
<Switch onChange={onChangeBadge} checked={showBadge} />
|
462
|
-
</div>
|
463
|
-
</div>
|
464
|
-
</Col>
|
465
|
-
</Row>
|
466
|
-
</Col>
|
467
|
-
</Row>
|
468
|
-
|
469
|
-
<br />
|
470
|
-
<br />
|
471
|
-
<Row>
|
472
|
-
<Col span={24}>
|
473
|
-
<Divider orientation="left">Pagination example</Divider>
|
474
|
-
<Pagination showSizeChanger defaultCurrent={3} total={500} />
|
475
|
-
</Col>
|
476
|
-
</Row>
|
477
|
-
<br />
|
478
|
-
<Row>
|
479
|
-
<Col span={24}>
|
480
|
-
<Divider orientation="left">Grid System example</Divider>
|
481
|
-
<div className="grid-demo">
|
482
|
-
<div className="code-box-demo">
|
483
|
-
<p>
|
484
|
-
<strong>* Note:</strong> Every calculation in RTL grid system is
|
485
|
-
from right side (offset, push, etc.)
|
486
|
-
</p>
|
487
|
-
<Row>
|
488
|
-
<Col span={8}>col-8</Col>
|
489
|
-
<Col span={8} offset={8}>
|
490
|
-
col-8
|
491
|
-
</Col>
|
492
|
-
</Row>
|
493
|
-
<Row>
|
494
|
-
<Col span={6} offset={6}>
|
495
|
-
col-6 col-offset-6
|
496
|
-
</Col>
|
497
|
-
<Col span={6} offset={6}>
|
498
|
-
col-6 col-offset-6
|
499
|
-
</Col>
|
500
|
-
</Row>
|
501
|
-
<Row>
|
502
|
-
<Col span={12} offset={6}>
|
503
|
-
col-12 col-offset-6
|
504
|
-
</Col>
|
505
|
-
</Row>
|
506
|
-
<Row>
|
507
|
-
<Col span={18} push={6}>
|
508
|
-
col-18 col-push-6
|
509
|
-
</Col>
|
510
|
-
<Col span={6} pull={18}>
|
511
|
-
col-6 col-pull-18
|
512
|
-
</Col>
|
513
|
-
</Row>
|
514
|
-
</div>
|
515
|
-
</div>
|
516
|
-
</Col>
|
517
|
-
</Row>
|
518
|
-
</div>
|
519
|
-
);
|
520
|
-
};
|
521
|
-
|
522
|
-
const DirectionDemo = () => {
|
523
|
-
const [direction, setDirection] = useState<any>('ltr');
|
524
|
-
const [popupPlacement, setPopupPlacement] = useState<any>('bottomLeft');
|
525
|
-
|
526
|
-
const changeDirection = (e: any) => {
|
527
|
-
const directionValue = e.target.value;
|
528
|
-
setDirection(directionValue);
|
529
|
-
if (directionValue === 'rtl') {
|
530
|
-
setPopupPlacement('bottomRight');
|
531
|
-
} else {
|
532
|
-
setPopupPlacement('bottomLeft');
|
533
|
-
}
|
534
|
-
};
|
535
|
-
|
536
|
-
return (
|
537
|
-
<>
|
538
|
-
<div style={{ marginBottom: 16 }}>
|
539
|
-
<span style={{ marginRight: 16 }}>
|
540
|
-
Change direction of components:{' '}
|
541
|
-
</span>
|
542
|
-
<Radio.Group defaultValue="ltr" onChange={changeDirection}>
|
543
|
-
<Radio.Button key="ltr" value="ltr">
|
544
|
-
LTR
|
545
|
-
</Radio.Button>
|
546
|
-
<Radio.Button key="rtl" value="rtl">
|
547
|
-
RTL
|
548
|
-
</Radio.Button>
|
549
|
-
</Radio.Group>
|
550
|
-
</div>
|
551
|
-
<ConfigProvider direction={direction}>
|
552
|
-
<Page className={direction} popupPlacement={popupPlacement} />
|
553
|
-
</ConfigProvider>
|
554
|
-
</>
|
555
|
-
);
|
556
|
-
};
|
557
|
-
|
558
|
-
export default DirectionDemo;
|