From 0f0e2f9f430e69418e415a6b0e0e0b23b7edd615 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 15 Apr 2022 16:20:56 +0800 Subject: [PATCH 1/9] docs: simplify demo code, #30853 (#35050) --- components/affix/demo/basic.md | 2 +- components/affix/demo/debug.md | 2 +- components/affix/demo/target.md | 2 +- components/alert/demo/smooth-closed.md | 2 +- components/avatar/demo/group.md | 2 +- components/avatar/demo/toggle-debug.md | 2 +- components/badge/demo/change.md | 2 +- components/badge/demo/no-wrapper.md | 2 +- components/button/demo/loading.md | 2 +- components/calendar/demo/select.md | 2 +- components/card/demo/loading.md | 2 +- components/cascader/demo/multiple.md | 2 +- components/checkbox/demo/check-all.md | 2 +- components/checkbox/demo/controller.md | 2 +- components/collapse/demo/extra.md | 2 +- components/comment/demo/basic.md | 2 +- components/comment/demo/editor.md | 2 +- components/config-provider/demo/direction.md | 2 +- components/config-provider/demo/locale.md | 2 +- components/date-picker/demo/select-in-range.md | 2 +- components/descriptions/demo/responsive.md | 2 +- components/descriptions/demo/size.md | 2 +- components/descriptions/demo/style.md | 2 +- components/drawer/demo/basic-right.md | 2 +- components/drawer/demo/config-provider.md | 2 +- components/drawer/demo/extra.md | 2 +- components/drawer/demo/multi-level-drawer.md | 2 +- components/drawer/demo/no-mask.md | 2 +- components/drawer/demo/placement.md | 2 +- components/drawer/demo/render-in-current.md | 2 +- components/drawer/demo/size.md | 2 +- components/drawer/demo/user-profile.md | 2 +- components/dropdown/demo/loading.md | 2 +- components/empty/demo/config-provider.md | 2 +- components/form/demo/basic.md | 2 +- components/form/demo/col-24-debug.md | 2 +- components/form/demo/complex-form-control.md | 2 +- components/form/demo/control-hooks.md | 2 +- components/form/demo/control-ref.md | 2 +- components/form/demo/customized-form-controls.md | 2 +- components/form/demo/dep-debug.md | 2 +- components/form/demo/dynamic-form-items-complex.md | 2 +- components/form/demo/dynamic-form-items-no-style.md | 2 +- components/form/demo/dynamic-form-items.md | 2 +- components/form/demo/form-context.md | 2 +- components/form/demo/global-state.md | 2 +- components/form/demo/label-debug.md | 2 +- components/form/demo/layout-can-wrap.md | 2 +- components/form/demo/nest-messages.md | 2 +- components/form/demo/ref-item.md | 2 +- components/form/demo/validate-other.md | 2 +- components/form/demo/warning-only.md | 2 +- components/grid/demo/playground.md | 2 +- components/image/demo/preview-group-visible.md | 2 +- components/image/demo/preview-group.md | 2 +- components/input-number/demo/disabled.md | 2 +- components/input-number/demo/keyboard.md | 2 +- components/input-number/demo/out-of-range.md | 2 +- components/input/demo/autosize-textarea.md | 2 +- components/input/demo/focus.md | 2 +- components/input/demo/group.md | 2 +- components/input/demo/textarea-resize.md | 2 +- components/mentions/demo/form.md | 2 +- components/mentions/demo/prefix.md | 2 +- components/mentions/demo/readonly.md | 2 +- components/menu/demo/horizontal.md | 2 +- components/menu/demo/inline-collapsed.md | 2 +- components/menu/demo/style-debug.md | 2 +- components/menu/demo/switch-mode.md | 2 +- components/message/demo/hooks.md | 2 +- components/modal/demo/async.md | 2 +- components/modal/demo/basic.md | 2 +- components/modal/demo/button-props.md | 2 +- components/modal/demo/dark.md | 2 +- components/modal/demo/footer.md | 2 +- components/modal/demo/hooks.md | 2 +- components/modal/demo/modal-render.md | 2 +- components/modal/demo/position.md | 2 +- components/modal/demo/width.md | 2 +- components/notification/demo/hooks.md | 2 +- components/pagination/demo/controlled.md | 2 +- components/popconfirm/demo/async.md | 2 +- components/popconfirm/demo/dynamic-trigger.md | 2 +- components/popconfirm/demo/promise.md | 2 +- components/popover/demo/control.md | 2 +- components/popover/demo/hover-with-click.md | 2 +- components/progress/demo/circle-dynamic.md | 2 +- components/progress/demo/dynamic.md | 2 +- components/progress/demo/gradient-line.md | 2 +- components/radio/demo/disabled.md | 2 +- components/radio/demo/radiogroup-more.md | 2 +- components/radio/demo/radiogroup-options.md | 2 +- components/radio/demo/radiogroup-with-name.md | 2 +- components/radio/demo/radiogroup.md | 2 +- components/select/demo/coordinate.md | 2 +- components/select/demo/custom-dropdown-menu.md | 2 +- components/select/demo/responsive.md | 2 +- components/select/demo/select-users.md | 2 +- components/skeleton/demo/children.md | 2 +- components/skeleton/demo/element.md | 2 +- components/skeleton/demo/list.md | 2 +- components/slider/demo/basic.md | 2 +- components/slider/demo/reverse.md | 2 +- components/space/demo/gap-in-line.md | 2 +- components/space/demo/wrap.md | 2 +- components/steps/demo/clickable.md | 2 +- components/steps/demo/nav.md | 2 +- components/steps/demo/progress-debug.md | 2 +- components/steps/demo/step-next.md | 2 +- components/steps/demo/steps-in-steps.md | 2 +- components/switch/demo/disabled.md | 2 +- components/table/demo/ajax.md | 2 +- components/table/demo/custom-filter-panel.md | 2 +- components/table/demo/dynamic-settings.md | 2 +- components/table/demo/pagination.md | 2 +- components/table/demo/reset-filter.md | 2 +- components/table/demo/resizable-column.md | 2 +- components/table/demo/row-selection-and-operation.md | 2 +- components/table/demo/row-selection-custom-debug.md | 2 +- components/table/demo/row-selection-custom.md | 2 +- components/table/demo/row-selection.md | 2 +- components/table/demo/sticky.md | 2 +- components/tabs/demo/basic.md | 2 +- components/tabs/demo/centered.md | 2 +- components/tabs/demo/custom-add-trigger.md | 2 +- components/tabs/demo/editable-card.md | 2 +- components/tabs/demo/extra.md | 2 +- components/tabs/demo/nest.md | 2 +- components/tabs/demo/position.md | 2 +- components/tabs/demo/size.md | 2 +- components/tag/demo/controlled.md | 2 +- components/time-picker/demo/value.md | 2 +- components/transfer/demo/advanced.md | 2 +- components/transfer/demo/basic.md | 2 +- components/transfer/demo/custom-item.md | 2 +- components/transfer/demo/custom-select-all-labels.md | 2 +- components/transfer/demo/large-data.md | 2 +- components/transfer/demo/oneWay.md | 2 +- components/transfer/demo/search.md | 2 +- components/transfer/demo/table-transfer.md | 2 +- components/transfer/demo/tree-transfer.md | 2 +- components/tree-select/demo/async.md | 2 +- components/tree-select/demo/basic.md | 2 +- components/tree-select/demo/checkable.md | 2 +- components/tree-select/demo/multiple.md | 2 +- components/tree-select/demo/placement.md | 2 +- components/tree-select/demo/suffix.md | 2 +- components/tree-select/demo/treeData.md | 2 +- components/tree-select/demo/treeLine.md | 2 +- components/tree/demo/basic-controlled.md | 2 +- components/tree/demo/basic.md | 2 +- components/tree/demo/big-data.md | 2 +- components/tree/demo/directory.md | 2 +- components/tree/demo/drag-debug.md | 2 +- components/tree/demo/draggable.md | 2 +- components/tree/demo/dynamic.md | 2 +- components/tree/demo/line.md | 2 +- components/tree/demo/switcher-icon.md | 2 +- components/typography/demo/ellipsis-debug.md | 2 +- components/typography/demo/ellipsis.md | 2 +- components/typography/demo/interactive.md | 2 +- components/typography/demo/suffix.md | 2 +- components/upload/demo/crop-image.md | 2 +- components/upload/demo/upload-manually.md | 2 +- 164 files changed, 164 insertions(+), 164 deletions(-) diff --git a/components/affix/demo/basic.md b/components/affix/demo/basic.md index 93dcd5ae63..a33d0d5f8a 100644 --- a/components/affix/demo/basic.md +++ b/components/affix/demo/basic.md @@ -38,5 +38,5 @@ const Demo: React.FC = () => { ); }; -export default () => ; +export default Demo; ``` diff --git a/components/affix/demo/debug.md b/components/affix/demo/debug.md index f8a97b4435..886d8b525a 100644 --- a/components/affix/demo/debug.md +++ b/components/affix/demo/debug.md @@ -35,5 +35,5 @@ const Demo: React.FC = () => { ); }; -export default () => ; +export default Demo; ``` diff --git a/components/affix/demo/target.md b/components/affix/demo/target.md index 0fad871175..ba33e30e22 100644 --- a/components/affix/demo/target.md +++ b/components/affix/demo/target.md @@ -30,7 +30,7 @@ const Demo: React.FC = () => { ); }; -export default () => ; +export default Demo; ```