docs: update docs

This commit is contained in:
tanjinzhou 2019-12-10 17:28:57 +08:00
parent dfbd183429
commit 1f7ae756fc
21 changed files with 50 additions and 51 deletions

View File

@ -362,8 +362,8 @@
1.3.0 brings two new Components, a lot of exciting changes and new features.
- 🔥 Added a new component [Comment](https://vue.ant.design/components/comment/)。
- 🔥 dded a new component [ConfigProvider](https://vue.ant.design/components/config-provider/) for user to customize some global setting.
- 🔥 Added a new component [Comment](https://www.antdv.com/components/comment/)。
- 🔥 dded a new component [ConfigProvider](https://www.antdv.com/components/config-provider/) for user to customize some global setting.
Component Fixes / Enhancements:

View File

@ -23,9 +23,9 @@
- 🐞 修复在引用不同 Vue 变量时,无法弹出内容的问题 [6362bf](https://github.com/vueComponent/ant-design-vue/commit/6362bf9edb441c0c0096beca1d2c8727003dbb15)
- 🌟 `Table` `customRender` 添加第三个 column 参数 [#1513](https://github.com/vueComponent/ant-design-vue/pull/1513)
- 🌟 `InputPassword` 添加 focus、blur 方法 [#1485](https://github.com/vueComponent/ant-design-vue/pull/1485)
- 🐞 修复 `Tooltip` 使用在原生html元素时报错的问题 [#1519](https://github.com/vueComponent/ant-design-vue/issues/1519)
- 🐞 修复 `Tooltip` 使用在原生 html 元素时报错的问题 [#1519](https://github.com/vueComponent/ant-design-vue/issues/1519)
- 🐞 修复 `Menu` 在 edge 浏览器下报错的问题 [#1492](https://github.com/vueComponent/ant-design-vue/issues/1492)
- 🐞 修复 `Select` 的 empty 不居中的问题 [#1445](https://github.com/vueComponent/ant-design-vue/pull/1445)
- 🐞 修复 `Select` 的 empty 不居中的问题 [#1445](https://github.com/vueComponent/ant-design-vue/pull/1445)
- 🐞 修复弹窗类组件内存泄漏问题 [#1483](https://github.com/vueComponent/ant-design-vue/pull/1483)
## 1.4.8
@ -363,8 +363,8 @@
1.3.0 版本带来了两个新组件,还有很多激动人心的变化和新特性。
- 🔥 增加了一个新组件 [Comment](https://vue.ant.design/components/comment-cn/)。
- 🔥 增加了一个新组件 [ConfigProvider](https://vue.ant.design/components/config-provider-cn/) 为组件提供统一的全局化配置。
- 🔥 增加了一个新组件 [Comment](https://www.antdv.com/components/comment-cn/)。
- 🔥 增加了一个新组件 [ConfigProvider](https://www.antdv.com/components/config-provider-cn/) 为组件提供统一的全局化配置。
组件修复/功能增强:

View File

@ -1,11 +1,11 @@
<p align="center">
<a href="https://vue.ant.design/">
<a href="https://www.antdv.com/">
<img width="200" src="https://qn.antdv.com/logo.png">
</a>
</p>
<h1 align="center">
<a href="https://vue.ant.design/" target="_blank">Ant Design Vue</a>
<a href="https://www.antdv.com/" target="_blank">Ant Design Vue</a>
</h1>
<div align="center">
@ -16,7 +16,7 @@ An enterprise-class UI components based on Ant Design and Vue.
</div>
[![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://vue.ant.design/)
[![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://www.antdv.com/)
[English](./README.md) | 简体中文 | [官网国内镜像](http://ant-design-vue.gitee.io/docs/vue/introduce-cn/)
@ -57,9 +57,9 @@ $ yarn add ant-design-vue
## 链接
- [首页](https://vue.ant.design/)
- [首页](https://www.antdv.com/)
- [Vue 官方文档](https://cn.vuejs.org/)
- [Antd React](http://ant.design/)
- [Ant Design Of React](http://ant.design/)
## 生态

View File

@ -1,11 +1,11 @@
<p align="center">
<a href="https://vue.ant.design/">
<a href="https://www.antdv.com/">
<img width="200" src="https://qn.antdv.com/logo.png">
</a>
</p>
<h1 align="center">
<a href="https://vue.ant.design/" target="_blank">Ant Design Vue</a>
<a href="https://www.antdv.com/" target="_blank">Ant Design Vue</a>
</h1>
<div align="center">
@ -16,7 +16,7 @@ An enterprise-class UI components based on Ant Design and Vue.
</div>
[![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://vue.ant.design/)
[![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://www.antdv.com/)
English | [简体中文](./README-zh_CN.md) | [官网国内镜像](http://ant-design-vue.gitee.io/docs/vue/introduce-cn/)
@ -57,9 +57,9 @@ If you are in a bad network environmentyou can try other registries and tools
## Links
- [Home page](https://vue.ant.design/)
- [Home page](https://www.antdv.com/)
- [Vue](https://vuejs.org/)
- [Ant Design React](http://ant.design/)
- [Ant Design Of React](http://ant.design/)
## Ecosystem

View File

@ -118,7 +118,7 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker, WeekPicke
| ranges | preseted ranges for quick selection | { \[range: string]: [moment](http://momentjs.com/)\[] } \| { \[range: string]: () => [moment](http://momentjs.com/)\[] } | - |
| renderExtraFooter | render extra footer in panel by setting a scoped slot | slot="renderExtraFooter" slot-scope="mode" | - |
| showTime | to provide an additional time selection | object\|boolean | [TimePicker Options](/components/time-picker/#API) |
| showTime.defaultValue | to set default time of selected date, [demo](https://ant.design/components/date-picker/#components-date-picker-demo-disabled-date) | [moment](http://momentjs.com/)\[] | \[moment(), moment()] |
| showTime.defaultValue | to set default time of selected date, [demo](https://antdv.com/components/date-picker/#components-date-picker-demo-disabled-date) | [moment](http://momentjs.com/)\[] | \[moment(), moment()] |
| value(v-model) | to set date | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)] | - |
### RangePicker Events

View File

@ -37,7 +37,7 @@ exports[`renders ./components/drawer/demo/user-profile.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">Lily</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Lily</a></h4>
<div class="ant-list-item-meta-description">Progresser AFX</div>
</div>
</div>
@ -49,7 +49,7 @@ exports[`renders ./components/drawer/demo/user-profile.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">Lily</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Lily</a></h4>
<div class="ant-list-item-meta-description">Progresser AFX</div>
</div>
</div>

View File

@ -25,7 +25,7 @@ Use when you need to quickly preview the outline of the object. Such as list ite
<a-list-item slot="renderItem" slot-scope="item, index">
<a slot="actions" @click="showDrawer">View Profile</a>
<a-list-item-meta description="Progresser AFX">
<a slot="title" href="https://vue.ant.design/">{{item.name}}</a>
<a slot="title" href="https://www.antdv.com/">{{item.name}}</a>
<a-avatar
slot="avatar"
src="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png"

View File

@ -8,7 +8,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">Ant Design Title 1</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Ant Design Title 1</a></h4>
<div class="ant-list-item-meta-description">Ant Design, a design language for background applications, is refined by Ant UED Team</div>
</div>
</div>
@ -17,7 +17,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">Ant Design Title 2</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Ant Design Title 2</a></h4>
<div class="ant-list-item-meta-description">Ant Design, a design language for background applications, is refined by Ant UED Team</div>
</div>
</div>
@ -26,7 +26,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">Ant Design Title 3</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Ant Design Title 3</a></h4>
<div class="ant-list-item-meta-description">Ant Design, a design language for background applications, is refined by Ant UED Team</div>
</div>
</div>
@ -35,7 +35,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">Ant Design Title 4</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">Ant Design Title 4</a></h4>
<div class="ant-list-item-meta-description">Ant Design, a design language for background applications, is refined by Ant UED Team</div>
</div>
</div>
@ -352,7 +352,7 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">ant design vue part 0</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">ant design vue part 0</a></h4>
<div class="ant-list-item-meta-description">Ant Design, a design language for background applications, is refined by Ant UED Team.</div>
</div>
</div>
@ -380,7 +380,7 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">ant design vue part 1</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">ant design vue part 1</a></h4>
<div class="ant-list-item-meta-description">Ant Design, a design language for background applications, is refined by Ant UED Team.</div>
</div>
</div>
@ -408,7 +408,7 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
<div class="ant-list-item-meta">
<div class="ant-list-item-meta-avatar"><span class="ant-avatar ant-avatar-circle ant-avatar-image"><img src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></span></div>
<div class="ant-list-item-meta-content">
<h4 class="ant-list-item-meta-title"><a href="https://vue.ant.design/">ant design vue part 2</a></h4>
<h4 class="ant-list-item-meta-title"><a href="https://www.antdv.com/">ant design vue part 2</a></h4>
<div class="ant-list-item-meta-description">Ant Design, a design language for background applications, is refined by Ant UED Team.</div>
</div>
</div>

View File

@ -15,7 +15,7 @@ Basic list.
<a-list-item-meta
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
>
<a slot="title" href="https://vue.ant.design/">{{item.title}}</a>
<a slot="title" href="https://www.antdv.com/">{{item.title}}</a>
<a-avatar
slot="avatar"
src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"

View File

@ -25,7 +25,7 @@ Load more list with `loadMore` property.
<a-list-item-meta
description="Ant Design, a design language for background applications, is refined by Ant UED Team"
>
<a slot="title" href="https://vue.ant.design/">{{item.name.last}}</a>
<a slot="title" href="https://www.antdv.com/">{{item.name.last}}</a>
<a-avatar
slot="avatar"
src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"

View File

@ -1,11 +1,11 @@
<cn>
#### 响应式的栅格列表
响应式的栅格列表。尺寸与 [Layout Grid](https://vue.ant.design/components/grid-cn/#Col) 保持一致。
响应式的栅格列表。尺寸与 [Layout Grid](https://www.antdv.com/components/grid-cn/#Col) 保持一致。
</cn>
<us>
#### Responsive grid list
Responsive grid list. The size property is as same as [Layout Grid](https://vue.ant.design/components/grid/#Col).
Responsive grid list. The size property is as same as [Layout Grid](https://www.antdv.com/components/grid/#Col).
</us>
```tpl

View File

@ -37,7 +37,7 @@ Setting `itemLayout` property with `vertical` to create a vertical list.
const listData = [];
for (let i = 0; i < 23; i++) {
listData.push({
href: 'https://vue.ant.design/',
href: 'https://www.antdv.com/',
title: `ant design vue part ${i}`,
avatar: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png',
description:

View File

@ -10,10 +10,10 @@
| header | List header renderer | string\|slot | - |
| itemLayout | The layout of list, default is `horizontal`, If a vertical list is desired, set the itemLayout property to `vertical` | string | - |
| rowKey | Item's unique key, could be a string or function that returns a string | string\|Function(record):string | `key` |
| loading | Shows a loading indicator while the contents of the list are being fetched | boolean\|[object](https://vue.ant.design/components/spin/#API) | false |
| loading | Shows a loading indicator while the contents of the list are being fetched | boolean\|[object](https://www.antdv.com/components/spin/#API) | false |
| loadMore | Shows a load more content | string\|slot | - |
| locale | i18n text including empty text | object | emptyText: 'No Data' <br> |
| pagination | Pagination [config](https://vue.ant.design/components/pagination/#API), hide it by setting it to false | boolean \| object | false |
| pagination | Pagination [config](https://www.antdv.com/components/pagination/#API), hide it by setting it to false | boolean \| object | false |
| split | Toggles rendering of the split under the list item | boolean | true |
| renderItem | Custom item renderer, slot="renderItem" and slot-scope="item, index" | (item, index) => vNode | | - |
@ -25,7 +25,7 @@ Properties for pagination.
| -------- | ------------------------------------ | --------------------------- | -------- |
| position | specify the position of `Pagination` | 'top' \| 'bottom' \| 'both' | 'bottom' |
More about pagination, please check [`Pagination`](https://vue.ant.design/components/pagination/#API).
More about pagination, please check [`Pagination`](https://www.antdv.com/components/pagination/#API).
### List grid props

View File

@ -9,10 +9,10 @@
| grid | 列表栅格配置 | object | - |
| header | 列表头部 | string\|slot | - |
| itemLayout | 设置 `List.Item` 布局, 设置成 `vertical` 则竖直样式显示, 默认横排 | string | - |
| loading | 当卡片内容还在加载中时,可以用 `loading` 展示一个占位 | boolean\|[object](https://vue.ant.design/components/spin-cn/#API) | false |
| loading | 当卡片内容还在加载中时,可以用 `loading` 展示一个占位 | boolean\|[object](https://www.antdv.com/components/spin-cn/#API) | false |
| loadMore | 加载更多 | string\|slot | - |
| locale | 默认文案设置,目前包括空数据文案 | object | emptyText: '暂无数据' |
| pagination | 对应的 `pagination` [配置](https://vue.ant.design/components/pagination-cn/#API), 设置 `false` 不显示 | boolean\|object | false |
| pagination | 对应的 `pagination` [配置](https://www.antdv.com/components/pagination-cn/#API), 设置 `false` 不显示 | boolean\|object | false |
| size | list 的尺寸 | `default` \| `middle` \| `small` | `default` |
| split | 是否展示分割线 | boolean | true |
| renderItem | 自定义`Item`函数,也可使用 slot="renderItem" 和 slot-scope="item, index" | (item, index) => vNode | | - |
@ -26,7 +26,7 @@
| -------- | ------------------ | --------------------------- | -------- |
| position | 指定分页显示的位置 | 'top' \| 'bottom' \| 'both' | 'bottom' |
更多配置项,请查看 [`Pagination`](https://vue.ant.design/components/pagination-cn/#API)。
更多配置项,请查看 [`Pagination`](https://www.antdv.com/components/pagination-cn/#API)。
### List grid props

View File

@ -24,7 +24,7 @@ exports[`renders ./components/menu/demo/horizontal.md correctly 1`] = `
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="display: none;">
<div aria-haspopup="true" class="ant-menu-submenu-title"><span>···</span><i class="ant-menu-submenu-arrow"></i></div>
</li>
<li role="menuitem" class="ant-menu-item"><a href="https://ant.design" target="_blank" rel="noopener noreferrer">Navigation Four - Link</a></li>
<li role="menuitem" class="ant-menu-item"><a href="https://antdv.com" target="_blank" rel="noopener noreferrer">Navigation Four - Link</a></li>
<li role="menuitem" class="ant-menu-submenu ant-menu-submenu-horizontal ant-menu-overflowed-submenu" style="visibility: hidden; position: absolute; display: none;">
<div aria-haspopup="true" class="ant-menu-submenu-title"><span>···</span><i class="ant-menu-submenu-arrow"></i></div>
</li>

View File

@ -28,7 +28,7 @@ Horizontal top navigation menu.
</a-menu-item-group>
</a-sub-menu>
<a-menu-item key="alipay">
<a href="https://ant.design" target="_blank" rel="noopener noreferrer"
<a href="https://antdv.com" target="_blank" rel="noopener noreferrer"
>Navigation Four - Link</a
>
</a-menu-item>

View File

@ -43,7 +43,7 @@ Use skeleton in list component.
const listData = [];
for (let i = 0; i < 3; i++) {
listData.push({
href: 'https://vue.ant.design/',
href: 'https://www.antdv.com/',
title: `ant design vue part ${i}`,
avatar: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png',
description:

View File

@ -28,7 +28,7 @@ Following the Ant Design specification, we developed a Vue UI library `antd` tha
## Environment Support
- Modern browsers and Internet Explorer 9+ (with [polyfills](https://vue.ant.design/docs/vue/getting-started/#Compatibility))
- Modern browsers and Internet Explorer 9+ (with [polyfills](https://www.antdv.com/docs/vue/getting-started/#Compatibility))
- Server-side Rendering
## Version
@ -111,9 +111,9 @@ import 'ant-design-vue/dist/antd.css'; // or 'ant-design-vue/dist/antd.less'
## Links
- [Home Page](https://vue.ant.design/)
- [Ant Design React](https://ant.design/)
- [Components](https://vue.ant.design/docs/vue/introduce)
- [Home Page](https://www.antdv.com/)
- [Ant Design Of React](https://ant.design/)
- [Components](https://www.antdv.com/docs/vue/introduce)
- [Change Log](/docs/vue/changelog)
- [CodeSandbox template](https://codesandbox.io/s/2wpk21kzvr) for bug reports
- [Customize Theme](/docs/vue/customize-theme)

View File

@ -28,7 +28,7 @@
## 支持环境
- 现代浏览器和 IE9 及以上(需要 [polyfills](https://vue.ant.design/docs/vue/getting-started-cn/#兼容性))。
- 现代浏览器和 IE9 及以上(需要 [polyfills](https://www.antdv.com/docs/vue/getting-started-cn/#兼容性))。
- 支持服务端渲染。
## 版本
@ -113,9 +113,9 @@ import 'ant-design-vue/dist/antd.css'; // or 'ant-design-vue/dist/antd.less'
## 链接
- [首页](https://vue.ant.design/)
- [Ant Design React](https://ant.design/)
- [组件库](https://vue.ant.design/docs/vue/introduce-cn)
- [首页](https://www.antdv.com/)
- [Ant Design Of React](https://ant.design/)
- [组件库](https://www.antdv.com/docs/vue/introduce-cn)
- [更新日志](/docs/vue/changelog-cn)
- [CodeSandbox 模板](https://codesandbox.io/s/2wpk21kzvr) for bug reports
- [定制主题](/docs/vue/customize-theme-cn)

View File

@ -53,7 +53,7 @@
"bugs": {
"url": "https://github.com/vueComponent/ant-design-vue/issues"
},
"homepage": "https://vue.ant.design/",
"homepage": "https://www.antdv.com/",
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"

View File

@ -296,7 +296,6 @@ export default {
)}
<a-col xxl={20} xl={19} lg={19} md={18} sm={24} xs={24}>
<section class="main-container main-container-component">
<GoogleAdsTop key={`GoogleAdsTop_${$route.path}`} />
{!isMobile ? <CarbonAds /> : null}
<GeektimeAds isMobile={isMobile} />
{!isMobile ? (