Skip to content

Commit

Permalink
docs: 🌈 Add Components overview page (ant-design#24491)
Browse files Browse the repository at this point in the history
* docs: Add components overview page

* fix detail

* remove ContributorsList form overview page

* fix components url

* improve code style

* remove extra file

* fix detail

* fix lint

* fix lint

* docs: Finish components overview page

* fix lint

* docs: Update cover

* fix lint

* update cover

* update menu

* improve overview page

* refactor code

* fix order

* update title

* add components count

* fix overview page ssr bug

* move less file

* update title margin

Co-authored-by: arvinxx <arvinx@foxmail.com>
  • Loading branch information
afc163 and arvinxx authored May 31, 2020
1 parent e573ac4 commit 882cec6
Show file tree
Hide file tree
Showing 140 changed files with 456 additions and 161 deletions.
2 changes: 1 addition & 1 deletion README-pt_BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Veja [i18n](https://ant.design/docs/react/i18n).
## 🔗 Links

- [Página inicial](https://ant.design/)
- [Componentes](https://ant.design/components/button)
- [Componentes](https://ant.design/components/overview)
- [Ant Design Pro](http://pro.ant.design/)
- [Ant Design Charts](https://charts.ant.design)
- [Change Log](CHANGELOG.en-US.md)
Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
## 🔗 链接

- [首页](https://ant.design/)
- [组件库](https://ant.design/docs/react/introduce)
- [组件库](https://ant.design/components/overview-cn)
- [Ant Design Pro](http://pro.ant.design/)
- [Ant Design Charts](https://charts.ant.design)
- [更新日志](CHANGELOG.en-US.md)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Dozens of languages supported in `antd`, see [i18n](https://ant.design/docs/reac
## 🔗 Links

- [Home page](https://ant.design/)
- [Components](https://ant.design/components/button/)
- [Components](https://ant.design/components/overview)
- [Ant Design Pro](http://pro.ant.design/)
- [Ant Design Charts](https://charts.ant.design)
- [Change Log](CHANGELOG.en-US.md)
Expand Down
1 change: 1 addition & 0 deletions components/affix/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Navigation
title: Affix
cover: https://gw.alipayobjects.com/zos/alicdn/SQGCQ7gOO/Affix.svg
---

Wrap Affix around another component to make it stick the viewport.
Expand Down
1 change: 1 addition & 0 deletions components/affix/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
subtitle: 固钉
type: 导航
title: Affix
cover: https://gw.alipayobjects.com/zos/alicdn/SQGCQ7gOO/Affix.svg
---

将页面元素钉在可视范围。
Expand Down
1 change: 1 addition & 0 deletions components/alert/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Feedback
title: Alert
cover: https://gw.alipayobjects.com/zos/antfincdn/nuhf3vdRno/Alert.svg
---

Alert component for feedback.
Expand Down
1 change: 1 addition & 0 deletions components/alert/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
subtitle: 警告提示
type: 反馈
title: Alert
cover: https://gw.alipayobjects.com/zos/antfincdn/nuhf3vdRno/Alert.svg
---

警告提示,展现需要关注的信息。
Expand Down
1 change: 1 addition & 0 deletions components/anchor/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Other
cols: 2
title: Anchor
cover: https://gw.alipayobjects.com/zos/alicdn/ep_L42LFy/Anchor.svg
---

Hyperlinks to scroll on one page.
Expand Down
1 change: 1 addition & 0 deletions components/anchor/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: 锚点
cols: 2
type: 其他
title: Anchor
cover: https://gw.alipayobjects.com/zos/alicdn/ep_L42LFy/Anchor.svg
---

用于跳转到页面指定位置。
Expand Down
1 change: 1 addition & 0 deletions components/auto-complete/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Data Entry
cols: 2
title: AutoComplete
cover: https://gw.alipayobjects.com/zos/alicdn/gtGCgVDKv/AutoComplete.svg
---

Autocomplete function of input field.
Expand Down
1 change: 1 addition & 0 deletions components/auto-complete/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: 自动完成
type: 数据录入
cols: 2
title: AutoComplete
cover: https://gw.alipayobjects.com/zos/alicdn/gtGCgVDKv/AutoComplete.svg
---

输入框自动完成功能。
Expand Down
1 change: 1 addition & 0 deletions components/avatar/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Data Display
title: Avatar
cover: https://gw.alipayobjects.com/zos/antfincdn/aBcnbw68hP/Avatar.svg
---

Avatars can be used to represent people or objects. It supports images, `Icon`s, or letters.
Expand Down
1 change: 1 addition & 0 deletions components/avatar/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
subtitle: 头像
type: 数据展示
title: Avatar
cover: https://gw.alipayobjects.com/zos/antfincdn/aBcnbw68hP/Avatar.svg
---

用来代表用户或事物,支持图片、图标或字符展示。
Expand Down
1 change: 1 addition & 0 deletions components/back-top/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Other
title: BackTop
cover: https://gw.alipayobjects.com/zos/alicdn/Ji3PnAAMT/BackTop.svg
---

`BackTop` makes it easy to go back to the top of the page.
Expand Down
1 change: 1 addition & 0 deletions components/back-top/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: 其他
subtitle: 回到顶部
title: BackTop
cover: https://gw.alipayobjects.com/zos/alicdn/Ji3PnAAMT/BackTop.svg
---

返回页面顶部的操作按钮。
Expand Down
1 change: 1 addition & 0 deletions components/badge/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Data Display
title: Badge
cover: https://gw.alipayobjects.com/zos/antfincdn/6%26GF9WHwvY/Badge.svg
---

Small numerical value or status descriptor for UI elements.
Expand Down
1 change: 1 addition & 0 deletions components/badge/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
subtitle: 徽标数
type: 数据展示
title: Badge
cover: https://gw.alipayobjects.com/zos/antfincdn/6%26GF9WHwvY/Badge.svg
---

图标右上角的圆形徽标数字。
Expand Down
1 change: 1 addition & 0 deletions components/breadcrumb/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Navigation
title: Breadcrumb
cover: https://gw.alipayobjects.com/zos/alicdn/9Ltop8JwH/Breadcrumb.svg
---

A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy.
Expand Down
1 change: 1 addition & 0 deletions components/breadcrumb/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
subtitle: 面包屑
type: 导航
title: Breadcrumb
cover: https://gw.alipayobjects.com/zos/alicdn/9Ltop8JwH/Breadcrumb.svg
---

显示当前页面在系统层级结构中的位置,并能向上返回。
Expand Down
1 change: 1 addition & 0 deletions components/button/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: General
title: Button
cover: https://gw.alipayobjects.com/zos/antfincdn/qZWIjVIkQ7/Button.svg
---

To trigger an operation.
Expand Down
1 change: 1 addition & 0 deletions components/button/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: 通用
title: Button
subtitle: 按钮
cover: https://gw.alipayobjects.com/zos/antfincdn/qZWIjVIkQ7/Button.svg
---

按钮用于开始一个即时操作。
Expand Down
1 change: 1 addition & 0 deletions components/calendar/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Data Display
cols: 1
title: Calendar
cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg
---

Container for displaying data in calendar form.
Expand Down
1 change: 1 addition & 0 deletions components/calendar/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type: 数据展示
subtitle: 日历
cols: 1
title: Calendar
cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg
---

按照日历形式展示数据的容器。
Expand Down
1 change: 1 addition & 0 deletions components/card/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Data Display
title: Card
cols: 1
cover: https://gw.alipayobjects.com/zos/antfincdn/NqXt8DJhky/Card.svg
---

Simple rectangular container.
Expand Down
1 change: 1 addition & 0 deletions components/card/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type: 数据展示
title: Card
subtitle: 卡片
cols: 1
cover: https://gw.alipayobjects.com/zos/antfincdn/NqXt8DJhky/Card.svg
---

通用卡片容器。
Expand Down
1 change: 1 addition & 0 deletions components/carousel/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Data Display
title: Carousel
cover: https://gw.alipayobjects.com/zos/antfincdn/%24C9tmj978R/Carousel.svg
---

A carousel component. Scales with its container.
Expand Down
1 change: 1 addition & 0 deletions components/carousel/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: 数据展示
title: Carousel
subtitle: 走马灯
cover: https://gw.alipayobjects.com/zos/antfincdn/%24C9tmj978R/Carousel.svg
---

旋转木马,一组轮播的区域。
Expand Down
1 change: 1 addition & 0 deletions components/cascader/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Data Entry
title: Cascader
cover: https://gw.alipayobjects.com/zos/antfincdn/cOHaAyTQ3u/Cascader.svg
---

Cascade selection box.
Expand Down
1 change: 1 addition & 0 deletions components/cascader/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: 数据录入
title: Cascader
subtitle: 级联选择
cover: https://gw.alipayobjects.com/zos/antfincdn/cOHaAyTQ3u/Cascader.svg
---

级联选择框。
Expand Down
1 change: 1 addition & 0 deletions components/checkbox/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Data Entry
title: Checkbox
cover: https://gw.alipayobjects.com/zos/alicdn/p7QZthygf/Checkbox.svg
---

Checkbox component.
Expand Down
1 change: 1 addition & 0 deletions components/checkbox/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
subtitle: 多选框
type: 数据录入
title: Checkbox
cover: https://gw.alipayobjects.com/zos/alicdn/p7QZthygf/Checkbox.svg
---

多选框。
Expand Down
1 change: 1 addition & 0 deletions components/collapse/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Data Display
title: Collapse
cols: 1
cover: https://gw.alipayobjects.com/zos/alicdn/IxH16B9RD/Collapse.svg
---

A content area which can be collapsed and expanded.
Expand Down
1 change: 1 addition & 0 deletions components/collapse/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type: 数据展示
title: Collapse
subtitle: 折叠面板
cols: 1
cover: https://gw.alipayobjects.com/zos/alicdn/IxH16B9RD/Collapse.svg
---

可以折叠/展开的内容区域。
Expand Down
1 change: 1 addition & 0 deletions components/comment/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Data Display
title: Comment
cols: 1
cover: https://gw.alipayobjects.com/zos/alicdn/uNYjrKkPv/Comment.svg
---

A comment displays user feedback and discussion to website content.
Expand Down
1 change: 1 addition & 0 deletions components/comment/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type: 数据展示
title: Comment
subtitle: 评论
cols: 1
cover: https://gw.alipayobjects.com/zos/alicdn/uNYjrKkPv/Comment.svg
---

对网站内容的反馈、评价和讨论。
Expand Down
1 change: 1 addition & 0 deletions components/config-provider/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Other
cols: 1
title: ConfigProvider
cover: https://gw.alipayobjects.com/zos/alicdn/kegYxl1wj/ConfigProvider.svg
---

`ConfigProvider` provides a uniform configuration support for components.
Expand Down
1 change: 1 addition & 0 deletions components/config-provider/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: 全局化配置
cols: 1
type: 其他
title: ConfigProvider
cover: https://gw.alipayobjects.com/zos/alicdn/kegYxl1wj/ConfigProvider.svg
---

为组件提供统一的全局化配置。
Expand Down
1 change: 1 addition & 0 deletions components/date-picker/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Data Entry
title: DatePicker
cover: https://gw.alipayobjects.com/zos/alicdn/Xr6CsbN_a/DatePicker.svg
---

To select or input a date.
Expand Down
1 change: 1 addition & 0 deletions components/date-picker/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: 数据录入
title: DatePicker
subtitle: 日期选择框
cover: https://gw.alipayobjects.com/zos/alicdn/Xr6CsbN_a/DatePicker.svg
---

输入或选择日期的控件。
Expand Down
1 change: 1 addition & 0 deletions components/descriptions/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Data Display
title: Descriptions
cols: 1
cover: https://gw.alipayobjects.com/zos/alicdn/MjtG9_FOI/Descriptions.svg
---

Display multiple read-only fields in groups.
Expand Down
1 change: 1 addition & 0 deletions components/descriptions/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: 描述列表
type: 数据展示
title: Descriptions
cols: 1
cover: https://gw.alipayobjects.com/zos/alicdn/MjtG9_FOI/Descriptions.svg
---

成组展示多个只读字段。
Expand Down
1 change: 1 addition & 0 deletions components/divider/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Layout
title: Divider
cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg
---

A divider line separates different content.
Expand Down
1 change: 1 addition & 0 deletions components/divider/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: 布局
title: Divider
subtitle: 分割线
cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg
---

区隔内容的分割线。
Expand Down
1 change: 1 addition & 0 deletions components/drawer/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type: Feedback
category: Components
subtitle:
title: Drawer
cover: https://gw.alipayobjects.com/zos/alicdn/7z8NJQhFb/Drawer.svg
---

A panel which slides in from the edge of the screen.
Expand Down
1 change: 1 addition & 0 deletions components/drawer/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type: 反馈
category: Components
subtitle: 抽屉
title: Drawer
cover: https://gw.alipayobjects.com/zos/alicdn/7z8NJQhFb/Drawer.svg
---

屏幕边缘滑出的浮层面板。
Expand Down
1 change: 1 addition & 0 deletions components/dropdown/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
category: Components
type: Navigation
title: Dropdown
cover: https://gw.alipayobjects.com/zos/alicdn/TIIiKrsQT/Dropdown.svg
---

A dropdown list.
Expand Down
1 change: 1 addition & 0 deletions components/dropdown/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
subtitle: 下拉菜单
type: 导航
title: Dropdown
cover: https://gw.alipayobjects.com/zos/alicdn/TIIiKrsQT/Dropdown.svg
---

向下弹出的列表。
Expand Down
1 change: 1 addition & 0 deletions components/empty/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ category: Components
type: Data Display
title: Empty
cols: 1
cover: https://gw.alipayobjects.com/zos/alicdn/HzvSywumz/Empty.svg
---

Empty state placeholder.
Expand Down
1 change: 1 addition & 0 deletions components/empty/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ subtitle: 空状态
type: 数据展示
title: Empty
cols: 1
cover: https://gw.alipayobjects.com/zos/alicdn/HzvSywumz/Empty.svg
---

空状态时的展示占位图。
Expand Down
Loading

0 comments on commit 882cec6

Please sign in to comment.