From 805d4e32955ede2e8ccf80a1c5721463a3a37b77 Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Sat, 16 Feb 2019 16:51:21 +0800
Subject: [PATCH] docs: update url path
---
.github/ISSUE_TEMPLATE.md | 2 +-
...-please-use-new-issue-ant-design-vue---.md | 2 +-
CHANGELOG.en-US.md | 4 +-
CHANGELOG.zh-CN.md | 4 +-
README-zh_CN.md | 12 +--
README.md | 12 +--
components/date-picker/index.en-US.md | 4 +-
components/date-picker/index.zh-CN.md | 4 +-
.../__tests__/__snapshots__/demo.test.js.snap | 4 +-
components/drawer/demo/user-profile.md | 2 +-
components/dropdown/index.en-US.md | 12 +--
components/dropdown/index.zh-CN.md | 12 +--
.../form/demo/customized-form-controls.vue | 8 +-
components/form/index.en-US.md | 4 +-
components/form/index.zh-CN.md | 4 +-
components/input/demo/tooltip.md | 4 +-
components/layout/demo/index.vue | 6 +-
components/layout/index.zh-CN.md | 4 +-
.../__tests__/__snapshots__/demo.test.js.snap | 14 ++--
components/list/demo/basic.md | 2 +-
components/list/demo/loadmore.md | 2 +-
components/list/demo/resposive.md | 4 +-
components/list/demo/vertical.md | 2 +-
components/list/index.en-US.md | 6 +-
components/list/index.zh-CN.md | 6 +-
components/modal/index.en-US.md | 8 +-
components/modal/index.zh-CN.md | 8 +-
components/popconfirm/index.en-US.md | 2 +-
components/popconfirm/index.zh-CN.md | 2 +-
components/popover/index.en-US.md | 2 +-
components/popover/index.zh-CN.md | 2 +-
components/select/demo/coordinate.md | 4 +-
components/skeleton/demo/list.md | 2 +-
components/slider/demo/input-number.md | 4 +-
components/table/index.en-US.md | 6 +-
components/table/index.zh-CN.md | 6 +-
docs/vue/faq.en-US.md | 2 +-
docs/vue/faq.zh-CN.md | 2 +-
docs/vue/getting-started.en-US.md | 2 +-
docs/vue/getting-started.zh-CN.md | 2 +-
docs/vue/i18n.en-US.md | 4 +-
docs/vue/i18n.zh-CN.md | 4 +-
docs/vue/introduce.en-US.md | 14 ++--
docs/vue/introduce.zh-CN.md | 16 ++--
docs/vue/use-with-vue-cli.en-US.md | 6 +-
docs/vue/use-with-vue-cli.zh-CN.md | 6 +-
scripts/gulpfile.js | 5 +-
site/404.html | 80 +++++++++++++++++++
site/components/CarbonAds.vue | 1 +
site/components/footer.vue | 2 +-
site/components/header.vue | 8 +-
site/components/layout.vue | 10 +--
site/routes.js | 12 +--
types/table/table.d.ts | 2 +-
webpack.config.js | 4 +-
webpack.site.config.js | 2 +-
56 files changed, 227 insertions(+), 143 deletions(-)
create mode 100644 site/404.html
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index a14900df5..874e7754d 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -10,7 +10,7 @@ If your issue was not created using the app above, it will be closed immediately
⚠️ ⚠️ ⚠️ 注意:请使用下面的链接来新建 issue: ⚠️ ⚠️ ⚠️
https://vuecomponent.github.io/issue-helper/
- 国内镜像:http://tangjinzhou.gitee.io/issue-helper/
+ 国内镜像:http://ant-design-vue.gitee.io/issue-helper/
不是用上面的链接创建的 issue 会被立即关闭。
-->
diff --git a/.github/ISSUE_TEMPLATE/----please-use-new-issue-ant-design-vue---.md b/.github/ISSUE_TEMPLATE/----please-use-new-issue-ant-design-vue---.md
index 4f920a141..41306aa0d 100644
--- a/.github/ISSUE_TEMPLATE/----please-use-new-issue-ant-design-vue---.md
+++ b/.github/ISSUE_TEMPLATE/----please-use-new-issue-ant-design-vue---.md
@@ -10,4 +10,4 @@ The issue which is not created via https://vuecomponent.github.io/issue-helper/
---
-注意:不是用 https://vuecomponent.github.io/issue-helper/ 或 http://tangjinzhou.gitee.io/issue-helper/ 创建的 issue 会被立即关闭。
+注意:不是用 https://vuecomponent.github.io/issue-helper/ 或 http://ant-design-vue.gitee.io/issue-helper/ 创建的 issue 会被立即关闭。
diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md
index 34a053d4c..32a7b0fa6 100644
--- a/CHANGELOG.en-US.md
+++ b/CHANGELOG.en-US.md
@@ -48,8 +48,8 @@
### Component features and styles are synchronized to antd version 3.11.6.
1.3.0 brings two new Components, a lot of exciting changes and new features.
-- 🔥 Added a new component [Comment](https://vuecomponent.github.io/ant-design-vue/components/comment/)。
-- 🔥 dded a new component [ConfigProvider](https://vuecomponent.github.io/ant-design-vue/components/config-provider/) for user to customize some global setting.
+- 🔥 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.
Component Fixes / Enhancements:
diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md
index c50aaa8c5..52d8e8b84 100644
--- a/CHANGELOG.zh-CN.md
+++ b/CHANGELOG.zh-CN.md
@@ -48,8 +48,8 @@
### 组件功能和样式同步到 antd 3.11.6 版本。
1.3.0 版本带来了两个新组件,还有很多激动人心的变化和新特性。
-- 🔥 增加了一个新组件 [Comment](https://vuecomponent.github.io/ant-design-vue/components/comment-cn/)。
-- 🔥 增加了一个新组件 [ConfigProvider](https://vuecomponent.github.io/ant-design-vue/components/config-provider-cn/) 为组件提供统一的全局化配置。
+- 🔥 增加了一个新组件 [Comment](https://vue.ant.design/components/comment-cn/)。
+- 🔥 增加了一个新组件 [ConfigProvider](https://vue.ant.design/components/config-provider-cn/) 为组件提供统一的全局化配置。
组件修复/功能增强:
diff --git a/README-zh_CN.md b/README-zh_CN.md
index d87059d3b..eb6307d34 100644
--- a/README-zh_CN.md
+++ b/README-zh_CN.md
@@ -1,11 +1,11 @@
-
-
+
+
@@ -24,9 +24,9 @@ An enterprise-class UI components based on Ant Design and Vue.
-[![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://vuecomponent.github.io/ant-design-vue/)
+[![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://vue.ant.design/)
-[English](./README.md) | 简体中文 | [官网国内镜像](http://tangjinzhou.gitee.io/ant-design-vue/docs/vue/introduce-cn/)
+[English](./README.md) | 简体中文 | [官网国内镜像](http://ant-design-vue.gitee.io/docs/vue/introduce-cn/)
Special thanks to the generous sponsorship by:
@@ -66,7 +66,7 @@ $ yarn add ant-design-vue
## 链接
-- [首页](https://vuecomponent.github.io/ant-design-vue/)
+- [首页](https://vue.ant.design/)
- [Vue官方文档](https://cn.vuejs.org/)
- [Antd React](http://ant.design/)
diff --git a/README.md b/README.md
index 986a91208..9698bd87f 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
-
-
+
+
@@ -24,9 +24,9 @@ An enterprise-class UI components based on Ant Design and Vue.
-[![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://vuecomponent.github.io/ant-design-vue/)
+[![](https://cdn-images-1.medium.com/max/2000/1*NIlj0-TdLMbo_hzSBP8tmg.png)](https://vue.ant.design/)
-English | [简体中文](./README-zh_CN.md) | [官网国内镜像](http://tangjinzhou.gitee.io/ant-design-vue/docs/vue/introduce-cn/)
+English | [简体中文](./README-zh_CN.md) | [官网国内镜像](http://ant-design-vue.gitee.io/docs/vue/introduce-cn/)
Special thanks to the generous sponsorship by:
@@ -66,7 +66,7 @@ If you are in a bad network environment,you can try other registries and tools
## Links
-- [Home page](https://vuecomponent.github.io/ant-design-vue/)
+- [Home page](https://vue.ant.design/)
- [Vue](https://vuejs.org/)
- [Ant Design React](http://ant.design/)
diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md
index 290c69eb9..e2db21e3d 100644
--- a/components/date-picker/index.en-US.md
+++ b/components/date-picker/index.en-US.md
@@ -62,7 +62,7 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker, WeekPicke
| disabledTime | to specify the time that cannot be selected | function(date) | - |
| format | to set the date format, refer to [moment.js](http://momentjs.com/) | string | "YYYY-MM-DD" |
| renderExtraFooter | render extra footer in panel by setting a scoped slot | slot="renderExtraFooter" | - |
-| showTime | to provide an additional time selection | object\|boolean | [TimePicker Options](/ant-design-vue/components/time-picker/#API) |
+| showTime | to provide an additional time selection | object\|boolean | [TimePicker Options](/components/time-picker/#API) |
| showTime.defaultValue | to set default time of selected date | [moment](http://momentjs.com/) | moment() |
| showToday | whether to show "Today" button | boolean | true |
| value(v-model) | to set date | [moment](http://momentjs.com/) | - |
@@ -114,7 +114,7 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker, WeekPicke
| format | to set the date format | string | "YYYY-MM-DD HH:mm:ss" |
| 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" | - |
-| showTime | to provide an additional time selection | object\|boolean | [TimePicker Options](/ant-design-vue/components/time-picker/#API) |
+| 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()] |
| value(v-model) | to set date | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)] | - |
diff --git a/components/date-picker/index.zh-CN.md b/components/date-picker/index.zh-CN.md
index a1cd98787..ea2bbcaa1 100644
--- a/components/date-picker/index.zh-CN.md
+++ b/components/date-picker/index.zh-CN.md
@@ -62,7 +62,7 @@ moment.locale('zh-cn');
| disabledTime | 不可选择的时间 | function(date) | 无 |
| format | 设置日期格式,为数组时支持多格式匹配,展示以第一个为准。配置参考 [moment.js](http://momentjs.com/) | string \| string[] | "YYYY-MM-DD" |
| renderExtraFooter | 在面板中添加额外的页脚 | slot="renderExtraFooter" | - |
-| showTime | 增加时间选择功能 | Object\|boolean | [TimePicker Options](/ant-design-vue/components/time-picker-cn/#API) |
+| showTime | 增加时间选择功能 | Object\|boolean | [TimePicker Options](/components/time-picker-cn/#API) |
| showTime.defaultValue | 设置用户选择日期时默认的时分秒 | [moment](http://momentjs.com/) | moment() |
| showToday | 是否展示“今天”按钮 | boolean | true |
| value(v-model) | 日期 | [moment](http://momentjs.com/) | 无 |
@@ -116,7 +116,7 @@ moment.locale('zh-cn');
| format | 展示的日期格式 | string | "YYYY-MM-DD HH:mm:ss" |
| ranges | 预设时间范围快捷选择 | { \[range: string]: [moment](http://momentjs.com/)\[] } \| { \[range: string]: () => [moment](http://momentjs.com/)\[] } | 无 |
| renderExtraFooter | 在面板中添加额外的页脚 | slot="renderExtraFooter" | - |
-| showTime | 增加时间选择功能 | Object\|boolean | [TimePicker Options](/ant-design-vue/components/time-picker-cn/#API) |
+| showTime | 增加时间选择功能 | Object\|boolean | [TimePicker Options](/components/time-picker-cn/#API) |
| showTime.defaultValue | 设置用户选择日期时默认的时分秒 | [moment](http://momentjs.com/)\[] | \[moment(), moment()] |
| value(v-model) | 日期 | [moment](http://momentjs.com/)\[] | 无 |
diff --git a/components/drawer/__tests__/__snapshots__/demo.test.js.snap b/components/drawer/__tests__/__snapshots__/demo.test.js.snap
index d470284fd..dd28153b9 100644
--- a/components/drawer/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/drawer/__tests__/__snapshots__/demo.test.js.snap
@@ -36,7 +36,7 @@ exports[`renders ./components/drawer/demo/user-profile.md correctly 1`] = `
@@ -48,7 +48,7 @@ exports[`renders ./components/drawer/demo/user-profile.md correctly 1`] = `
diff --git a/components/drawer/demo/user-profile.md b/components/drawer/demo/user-profile.md
index 98216f740..b8e519803 100644
--- a/components/drawer/demo/user-profile.md
+++ b/components/drawer/demo/user-profile.md
@@ -27,7 +27,7 @@ Use when you need to quickly preview the outline of the object. Such as list ite
- {{item.name}}
+ {{item.name}}
diff --git a/components/dropdown/index.en-US.md b/components/dropdown/index.en-US.md
index 059bc28cf..ff924abf0 100644
--- a/components/dropdown/index.en-US.md
+++ b/components/dropdown/index.en-US.md
@@ -6,7 +6,7 @@
| -------- | ----------- | ---- | ------- |
| disabled | whether the dropdown menu is disabled | boolean | - |
| getPopupContainer | to set the container of the dropdown menu. The default is to create a `div` element in `body`, you can reset it to the scrolling area and make a relative reposition. [example](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | `() => document.body` |
-| overlay(slot) | the dropdown menu | [Menu](/ant-design-vue/components/menu) | - |
+| overlay(slot) | the dropdown menu | [Menu](/components/menu) | - |
| overlayClassName | Class name of the dropdown root element | string | - |
| overlayStyle | Style of the dropdown root element | object | - |
| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` |
@@ -18,7 +18,7 @@
| --- | --- | --- |
| visibleChange | a callback function takes an argument: `visible`, is executed when the visible state is changed | function(visible) |
-You should use [Menu](/ant-design-vue/components/menu/) as `overlay`. The menu items and dividers are also available by using `Menu.Item` and `Menu.Divider`.
+You should use [Menu](/components/menu/) as `overlay`. The menu items and dividers are also available by using `Menu.Item` and `Menu.Divider`.
> Warning: You must set a unique `key` for `Menu.Item`.
>
@@ -29,11 +29,11 @@ You should use [Menu](/ant-design-vue/components/menu/) as `overlay`. The menu i
| Property | Description | Type | Default |
| -------- | ----------- | ---- | ------- |
| disabled | whether the dropdown menu is disabled | boolean | - |
-| overlay(slot) | the dropdown menu | [Menu](/ant-design-vue/components/menu) | - |
+| overlay(slot) | the dropdown menu | [Menu](/components/menu) | - |
| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` |
-| size | size of the button, the same as [Button](/ant-design-vue/components/button) | string | `default` |
+| size | size of the button, the same as [Button](/components/button) | string | `default` |
| trigger | the trigger mode which executes the drop-down action | Array<`click`\|`hover`\|`contextmenu`> | `['hover']` |
-| type | type of the button, the same as [Button](/ant-design-vue/components/button) | string | `default` |
+| type | type of the button, the same as [Button](/components/button) | string | `default` |
| visible | whether the dropdown menu is visible | boolean | - |
@@ -41,5 +41,5 @@ You should use [Menu](/ant-design-vue/components/menu/) as `overlay`. The menu i
### Dropdown.Button events
| Events Name | Description | Arguments |
| --- | --- | --- |
-| click | a callback function, the same as [Button](/ant-design-vue/components/button), which will be executed when you click the button on the left | Function |
+| click | a callback function, the same as [Button](/components/button), which will be executed when you click the button on the left | Function |
| visibleChange | a callback function takes an argument: `visible`, is executed when the visible state is changed | Function |
diff --git a/components/dropdown/index.zh-CN.md b/components/dropdown/index.zh-CN.md
index ef9ebc5ba..ae2d62e29 100644
--- a/components/dropdown/index.zh-CN.md
+++ b/components/dropdown/index.zh-CN.md
@@ -6,14 +6,14 @@
| --- | --- | --- | --- |
| disabled | 菜单是否禁用 | boolean | - |
| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。 | Function(triggerNode) | `() => document.body` |
-| overlay(slot) | 菜单 | [Menu](/ant-design-vue/components/menu-cn) | - |
+| overlay(slot) | 菜单 | [Menu](/components/menu-cn) | - |
| overlayClassName | 下拉根元素的类名称 | string | - |
| overlayStyle | 下拉根元素的样式 | object | - |
| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` |
| trigger | 触发下拉的行为 | Array<`click`\|`hover`\|`contextmenu`> | `['hover']` |
| visible(v-model) | 菜单是否显示 | boolean | - |
-`overlay` 菜单使用 [Menu](/ant-design-vue/components/menu-cn/),还包括菜单项 `Menu.Item`,分割线 `Menu.Divider`。
+`overlay` 菜单使用 [Menu](/components/menu-cn/),还包括菜单项 `Menu.Item`,分割线 `Menu.Divider`。
> 注意: Menu.Item 必须设置唯一的 key 属性。
>
@@ -30,15 +30,15 @@
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| disabled | 菜单是否禁用 | boolean | - |
-| overlay(slot) | 菜单 | [Menu](/ant-design-vue/components/menu-cn/) | - |
+| overlay(slot) | 菜单 | [Menu](/components/menu-cn/) | - |
| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` |
-| size | 按钮大小,和 [Button](/ant-design-vue/components/button-cn/) 一致 | string | 'default' |
+| size | 按钮大小,和 [Button](/components/button-cn/) 一致 | string | 'default' |
| trigger | 触发下拉的行为 | Array<`click`\|`hover`\|`contextmenu`> | `['hover']` |
-| type | 按钮类型,和 [Button](/ant-design-vue/components/button-cn/) 一致 | string | 'default' |
+| type | 按钮类型,和 [Button](/components/button-cn/) 一致 | string | 'default' |
| visible(v-model) | 菜单是否显示 | boolean | - |
### Dropdown.Button事件
| 事件名称 | 说明 | 回调参数 |
| --- | --- | --- |
-| click | 点击左侧按钮的回调,和 [Button](/ant-design-vue/components/button-cn/) 一致 | Function |
+| click | 点击左侧按钮的回调,和 [Button](/components/button-cn/) 一致 | Function |
| visibleChange | 菜单显示状态改变时调用,参数为 visible | function(visible) |
diff --git a/components/form/demo/customized-form-controls.vue b/components/form/demo/customized-form-controls.vue
index 74e98b498..524ac1e0e 100644
--- a/components/form/demo/customized-form-controls.vue
+++ b/components/form/demo/customized-form-controls.vue
@@ -1,16 +1,16 @@
#### 自定义表单控件
自定义或第三方的表单控件,也可以与 Form 组件一起使用。只要该组件遵循以下的约定:
-> * 提供受控属性 `value` 或其它与 [`valuePropName`](/ant-design-vue/components/form-cn/#getFieldDecorator(id,-options)-参数) 的值同名的属性。
-> * 提供 `onChange` 事件或 [`trigger`](/ant-design-vue/components/form-cn/#getFieldDecorator(id,-options)-参数) 的值同名的事件。
+> * 提供受控属性 `value` 或其它与 [`valuePropName`](/components/form-cn/#getFieldDecorator(id,-options)-参数) 的值同名的属性。
+> * 提供 `onChange` 事件或 [`trigger`](/components/form-cn/#getFieldDecorator(id,-options)-参数) 的值同名的事件。
> * 不能是函数式组件。
#### Customized Form Controls
Customized or third-party form controls can be used in Form, too. Controls must follow these conventions:
-> * It has a controlled property `value` or other name which is equal to the value of [`valuePropName`](/ant-design-vue/components/form/#getFieldDecorator(id,-options)-parameters).
-> * It has event `onChange` or an event which name is equal to the value of [`trigger`](/ant-design-vue/components/form/#getFieldDecorator(id,-options)-parameters).
+> * It has a controlled property `value` or other name which is equal to the value of [`valuePropName`](/components/form/#getFieldDecorator(id,-options)-parameters).
+> * It has event `onChange` or an event which name is equal to the value of [`trigger`](/components/form/#getFieldDecorator(id,-options)-parameters).
> * It must be a class component.
diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md
index 622d5794d..0af4547d0 100644
--- a/components/form/index.en-US.md
+++ b/components/form/index.en-US.md
@@ -172,10 +172,10 @@ Note: If Form.Item has multiple children that had been decorated by `getFieldDec
| hasFeedback | Used with `validateStatus`, this option specifies the validation status icon. Recommended to be used only with `Input`. | boolean | false |
| help | The prompt message. If not provided, the prompt message will be generated by the validation rule. | string\|slot | |
| label | Label text | string\|slot | |
-| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with ` ` | [object](/ant-design-vue/components/grid/#Col) | |
+| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with ` ` | [object](/components/grid/#Col) | |
| required | Whether provided or not, it will be generated by the validation rule. | boolean | false |
| validateStatus | The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating' | string | |
-| wrapperCol | The layout for input controls, same as `labelCol` | [object](/ant-design-vue/components/grid/#Col) | |
+| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | |
### Validation Rules
diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md
index 43f23b859..27a551076 100644
--- a/components/form/index.zh-CN.md
+++ b/components/form/index.zh-CN.md
@@ -170,10 +170,10 @@ validateFields(['field1', 'field2'], options, (errors, values) => {
| hasFeedback | 配合 validateStatus 属性使用,展示校验状态图标,建议只配合 Input 组件使用 | boolean | false |
| help | 提示信息,如不设置,则会根据校验规则自动生成 | string\|slot | |
| label | label 标签的文本 | string\|slot | |
-| labelCol | label 标签布局,同 ` ` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}` 或 `sm: {span: 3, offset: 12}` | [object](/ant-design-vue/components/grid-cn/#Col) | |
+| labelCol | label 标签布局,同 ` ` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}` 或 `sm: {span: 3, offset: 12}` | [object](/components/grid-cn/#Col) | |
| required | 是否必填,如不设置,则会根据校验规则自动生成 | boolean | false |
| validateStatus | 校验状态,如不设置,则会根据校验规则自动生成,可选:'success' 'warning' 'error' 'validating' | string | |
-| wrapperCol | 需要为输入控件设置布局样式时,使用该属性,用法同 labelCol | [object](/ant-design-vue/components/grid-cn/#Col) | |
+| wrapperCol | 需要为输入控件设置布局样式时,使用该属性,用法同 labelCol | [object](/components/grid-cn/#Col) | |
### 校验规则
diff --git a/components/input/demo/tooltip.md b/components/input/demo/tooltip.md
index 75db3ed09..63a9f56e5 100644
--- a/components/input/demo/tooltip.md
+++ b/components/input/demo/tooltip.md
@@ -1,12 +1,12 @@
#### 输入时格式化展示
-结合 [Tooltip](/ant-design-vue/components/tooltip-cn/) 组件,实现一个数值输入框,方便内容超长时的全量展现。
+结合 [Tooltip](/components/tooltip-cn/) 组件,实现一个数值输入框,方便内容超长时的全量展现。
#### Format Tooltip Input
-You can use the Input in conjunction with [Tooltip](/ant-design-vue/components/tooltip/) component to create a Numeric Input, which can provide a good experience for extra-long content display.
+You can use the Input in conjunction with [Tooltip](/components/tooltip/) component to create a Numeric Input, which can provide a good experience for extra-long content display.
```html
diff --git a/components/layout/demo/index.vue b/components/layout/demo/index.vue
index ba671b851..d98da04be 100644
--- a/components/layout/demo/index.vue
+++ b/components/layout/demo/index.vue
@@ -131,9 +131,9 @@ export default {
provide () {
return {
iframeDemo: !this.iframeName ? {
- 'fixed-sider': '/ant-design-vue/iframe/layout/#fixed-sider',
- 'fixed-header': '/ant-design-vue/iframe/layout/#fixed-header',
- 'sider': '/ant-design-vue/iframe/layout/#sider',
+ 'fixed-sider': '/iframe/layout/#fixed-sider',
+ 'fixed-header': '/iframe/layout/#fixed-header',
+ 'sider': '/iframe/layout/#sider',
} : {},
};
},
diff --git a/components/layout/index.zh-CN.md b/components/layout/index.zh-CN.md
index ab1d407ed..1e80d253d 100644
--- a/components/layout/index.zh-CN.md
+++ b/components/layout/index.zh-CN.md
@@ -31,7 +31,7 @@
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
-| breakpoint | 触发响应式布局的[断点](/ant-design-vue/components/grid#API) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - |
+| breakpoint | 触发响应式布局的[断点](/components/grid#API) | Enum { 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' } | - |
| class | 容器 class | string | - |
| collapsed(v-model) | 当前收起状态 | boolean | - |
| collapsedWidth | 收缩宽度,设置为 0 会出现特殊 trigger | number | 80 |
@@ -47,7 +47,7 @@
| 事件名称 | 说明 | 回调参数 |
| --- | --- | --- |
| collapse | 展开-收起时的回调函数,有点击 trigger 以及响应式反馈两种方式可以触发 | (collapsed, type) => {} |
-| breakpoint | 触发响应式布局[断点](/ant-design-vue/components/grid#api)时的回调 | (broken) => {} |
+| breakpoint | 触发响应式布局[断点](/components/grid#api)时的回调 | (broken) => {} |
#### breakpoint width
diff --git a/components/list/__tests__/__snapshots__/demo.test.js.snap b/components/list/__tests__/__snapshots__/demo.test.js.snap
index 8ac60cda0..f827c19fc 100644
--- a/components/list/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/list/__tests__/__snapshots__/demo.test.js.snap
@@ -8,7 +8,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
@@ -17,7 +17,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
@@ -26,7 +26,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
@@ -35,7 +35,7 @@ exports[`renders ./components/list/demo/basic.md correctly 1`] = `
@@ -347,7 +347,7 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
@@ -375,7 +375,7 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
@@ -403,7 +403,7 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = `
diff --git a/components/list/demo/basic.md b/components/list/demo/basic.md
index 42b9ac5af..fe198e67f 100644
--- a/components/list/demo/basic.md
+++ b/components/list/demo/basic.md
@@ -18,7 +18,7 @@ Basic list.
- {{item.title}}
+ {{item.title}}
diff --git a/components/list/demo/loadmore.md b/components/list/demo/loadmore.md
index bd8662294..f3d443974 100644
--- a/components/list/demo/loadmore.md
+++ b/components/list/demo/loadmore.md
@@ -26,7 +26,7 @@ Load more list with `loadMore` property.
- {{item.name.last}}
+ {{item.name.last}}
content
diff --git a/components/list/demo/resposive.md b/components/list/demo/resposive.md
index f38cb8fbc..24bc23f87 100644
--- a/components/list/demo/resposive.md
+++ b/components/list/demo/resposive.md
@@ -1,11 +1,11 @@
#### 响应式的栅格列表
-响应式的栅格列表。尺寸与 [Layout Grid](https://vuecomponent.github.io/ant-design-vue/components/grid-cn/#Col) 保持一致。
+响应式的栅格列表。尺寸与 [Layout Grid](https://vue.ant.design/components/grid-cn/#Col) 保持一致。
#### Responsive grid list
-Responsive grid list. The size property is as same as [Layout Grid](https://vuecomponent.github.io/ant-design-vue/components/grid/#Col).
+Responsive grid list. The size property is as same as [Layout Grid](https://vue.ant.design/components/grid/#Col).
```html
diff --git a/components/list/demo/vertical.md b/components/list/demo/vertical.md
index ec8cadbe5..827c35a58 100644
--- a/components/list/demo/vertical.md
+++ b/components/list/demo/vertical.md
@@ -39,7 +39,7 @@ Setting `itemLayout` property with `vertical` to create a vertical list.
const listData = []
for (let i = 0; i < 23; i++) {
listData.push({
- href: 'https://vuecomponent.github.io/ant-design-vue/',
+ href: 'https://vue.ant.design/',
title: `ant design vue part ${i}`,
avatar: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png',
description: 'Ant Design, a design language for background applications, is refined by Ant UED Team.',
diff --git a/components/list/index.en-US.md b/components/list/index.en-US.md
index e3987df31..2e996f90e 100644
--- a/components/list/index.en-US.md
+++ b/components/list/index.en-US.md
@@ -10,10 +10,10 @@
| grid | The grid type of list. You can set grid to something like {gutter: 16, column: 4} | object | - |
| 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 | - |
-| loading | Shows a loading indicator while the contents of the list are being fetched | boolean\|[object](https://vuecomponent.github.io/ant-design-vue/components/spin/#API) | false |
+| loading | Shows a loading indicator while the contents of the list are being fetched | boolean\|[object](https://vue.ant.design/components/spin/#API) | false |
| loadMore | Shows a load more content | string\|slot | - |
| locale | i18n text including empty text | object | emptyText: 'No Data' |
-| pagination | Pagination [config](https://vuecomponent.github.io/ant-design-vue/components/pagination/#API), hide it by setting it to false | boolean \| object | false |
+| pagination | Pagination [config](https://vue.ant.design/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 | | - |
| rowKey | Specify the key that will be used for uniquely identify each element | item => string\|number | |
@@ -26,7 +26,7 @@ Properties for pagination.
| -------- | ----------- | ---- | ------- |
| position | specify the position of `Pagination` | 'top' \| 'bottom' \| 'both' | 'bottom' |
-More about pagination, please check [`Pagination`](https://vuecomponent.github.io/ant-design-vue/components/pagination/#API).
+More about pagination, please check [`Pagination`](https://vue.ant.design/components/pagination/#API).
### List grid props
diff --git a/components/list/index.zh-CN.md b/components/list/index.zh-CN.md
index 0b30aba9d..5d88da294 100644
--- a/components/list/index.zh-CN.md
+++ b/components/list/index.zh-CN.md
@@ -10,10 +10,10 @@
| grid | 列表栅格配置 | object | - |
| header | 列表头部 | string\|slot | - |
| itemLayout | 设置 `List.Item` 布局, 设置成 `vertical` 则竖直样式显示, 默认横排 | string | - |
-| loading | 当卡片内容还在加载中时,可以用 `loading` 展示一个占位 | boolean\|[object](https://vuecomponent.github.io/ant-design-vue/components/spin-cn/#API) | false |
+| loading | 当卡片内容还在加载中时,可以用 `loading` 展示一个占位 | boolean\|[object](https://vue.ant.design/components/spin-cn/#API) | false |
| loadMore | 加载更多 | string\|slot | - |
| locale | 默认文案设置,目前包括空数据文案 | object | emptyText: '暂无数据' |
-| pagination | 对应的 `pagination` [配置]((https://vuecomponent.github.io/ant-design-vue/components/pagination-cn/#API)), 设置 `false` 不显示 | boolean\|object | false |
+| pagination | 对应的 `pagination` [配置]((https://vue.ant.design/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 | | - |
@@ -27,7 +27,7 @@
| --- | --- | --- | --- |
| position | 指定分页显示的位置 | 'top' \| 'bottom' \| 'both' | 'bottom' |
-更多配置项,请查看 [`Pagination`](https://vuecomponent.github.io/ant-design-vue/components/pagination-cn/#API)。
+更多配置项,请查看 [`Pagination`](https://vue.ant.design/components/pagination-cn/#API)。
### List grid props
diff --git a/components/modal/index.en-US.md b/components/modal/index.en-US.md
index 9d76c3710..88b717a1b 100644
--- a/components/modal/index.en-US.md
+++ b/components/modal/index.en-US.md
@@ -17,8 +17,8 @@
| maskStyle | Style for modal's mask element. | object | {} |
| okText | Text of the OK button | string\|slot | `OK` |
| okType | Button `type` of the OK button | string | `primary` |
-| okButtonProps | The ok button props, follow jsx [rules](https://github.com/vuejs/babel-plugin-transform-vue-jsx#difference-from-react-jsx) | {props: [ButtonProps](/ant-design-vue/components/button/#API), on: {}} | - |
-| cancelButtonProps | The cancel button props, follow jsx [rules](https://github.com/vuejs/babel-plugin-transform-vue-jsx#difference-from-react-jsx) | {props: [ButtonProps](/ant-design-vue/components/button/#API), on: {}} | - |
+| okButtonProps | The ok button props, follow jsx [rules](https://github.com/vuejs/babel-plugin-transform-vue-jsx#difference-from-react-jsx) | {props: [ButtonProps](/components/button/#API), on: {}} | - |
+| cancelButtonProps | The cancel button props, follow jsx [rules](https://github.com/vuejs/babel-plugin-transform-vue-jsx#difference-from-react-jsx) | {props: [ButtonProps](/components/button/#API), on: {}} | - |
| title | The modal dialog's title | string\|slot | - |
| visible | Whether the modal dialog is visible or not | boolean | false |
| width | Width of the modal dialog | string\|number | 520 |
@@ -60,8 +60,8 @@ The properties of the object are follows:
| maskClosable | Whether to close the modal dialog when the mask (area outside the modal) is clicked | Boolean | `false` |
| okText | Text of the OK button | string | `OK` |
| okType | Button `type` of the OK button | string | `primary` |
-| okButtonProps | The ok button props | [ButtonProps](/ant-design-vue/components/button) | - |
-| cancelButtonProps | The cancel button props | [ButtonProps](/ant-design-vue/components/button) | - |
+| okButtonProps | The ok button props | [ButtonProps](/components/button) | - |
+| cancelButtonProps | The cancel button props | [ButtonProps](/components/button) | - |
| title | Title | string\|vNode | - |
| width | Width of the modal dialog | string\|number | 416 |
| zIndex | The `z-index` of the Modal | Number | 1000 |
diff --git a/components/modal/index.zh-CN.md b/components/modal/index.zh-CN.md
index fe8892505..28b87d4be 100644
--- a/components/modal/index.zh-CN.md
+++ b/components/modal/index.zh-CN.md
@@ -17,8 +17,8 @@
| maskStyle | 遮罩样式 | object | {} |
| okText | 确认按钮文字 | string\|slot | 确定 |
| okType | 确认按钮类型 | string | primary |
-| okButtonProps | ok 按钮 props, 遵循jsx[规范](https://github.com/vuejs/babel-plugin-transform-vue-jsx#difference-from-react-jsx) | {props: [ButtonProps](/ant-design-vue/components/button/#API), on: {}} | - |
-| cancelButtonProps | cancel 按钮 props, 遵循jsx[规范](https://github.com/vuejs/babel-plugin-transform-vue-jsx#difference-from-react-jsx) | {props: [ButtonProps](/ant-design-vue/components/button/#API), on: {}} | - |
+| okButtonProps | ok 按钮 props, 遵循jsx[规范](https://github.com/vuejs/babel-plugin-transform-vue-jsx#difference-from-react-jsx) | {props: [ButtonProps](/components/button/#API), on: {}} | - |
+| cancelButtonProps | cancel 按钮 props, 遵循jsx[规范](https://github.com/vuejs/babel-plugin-transform-vue-jsx#difference-from-react-jsx) | {props: [ButtonProps](/components/button/#API), on: {}} | - |
| title | 标题 | string\|slot | 无 |
| visible(v-model) | 对话框是否可见 | boolean | 无 |
| width | 宽度 | string\|number | 520 |
@@ -59,8 +59,8 @@
| keyboard | 是否支持键盘esc关闭 | boolean | true |
| okText | 确认按钮文字 | string | 确定 |
| okType | 确认按钮类型 | string | primary |
-| okButtonProps | ok 按钮 props | [ButtonProps](/ant-design-vue/components/button) | - |
-| cancelButtonProps | cancel 按钮 props | [ButtonProps](/ant-design-vue/components/button) | - |
+| okButtonProps | ok 按钮 props | [ButtonProps](/components/button) | - |
+| cancelButtonProps | cancel 按钮 props | [ButtonProps](/components/button) | - |
| title | 标题 | string\|vNode | 无 |
| width | 宽度 | string\|number | 416 |
| zIndex | 设置 Modal 的 `z-index` | Number | 1000 |
diff --git a/components/popconfirm/index.en-US.md b/components/popconfirm/index.en-US.md
index 1c884bd8d..9e4d96c78 100644
--- a/components/popconfirm/index.en-US.md
+++ b/components/popconfirm/index.en-US.md
@@ -15,7 +15,7 @@
| confirm | callback of confirmation | function(e) | - |
| visibleChange | Callback executed when visibility of the tooltip card is changed | function(visible) | - |
-Consult [Tooltip's documentation](/ant-design-vue/components/tooltip/#API) to find more APIs.
+Consult [Tooltip's documentation](/components/tooltip/#API) to find more APIs.
## Note
diff --git a/components/popconfirm/index.zh-CN.md b/components/popconfirm/index.zh-CN.md
index 8be2a0aa7..7418d6680 100644
--- a/components/popconfirm/index.zh-CN.md
+++ b/components/popconfirm/index.zh-CN.md
@@ -15,7 +15,7 @@
| confirm | 点击确认的回调 | function(e) |
| visibleChange | 显示隐藏的回调 | function(visible) |
-更多属性请参考 [Tooltip](/ant-design-vue/components/tooltip-cn/#API)。
+更多属性请参考 [Tooltip](/components/tooltip-cn/#API)。
## 注意
diff --git a/components/popover/index.en-US.md b/components/popover/index.en-US.md
index d647039e2..5c1b5dfb7 100644
--- a/components/popover/index.en-US.md
+++ b/components/popover/index.en-US.md
@@ -6,7 +6,7 @@
| content | Content of the card | string\|slot\|vNode | - |
| title | Title of the card | string\|slot\|VNode | - |
-Consult [Tooltip's documentation](/ant-design-vue/components/tooltip/#API) to find more APIs.
+Consult [Tooltip's documentation](/components/tooltip/#API) to find more APIs.
## Note
diff --git a/components/popover/index.zh-CN.md b/components/popover/index.zh-CN.md
index 84751180a..bf2129789 100644
--- a/components/popover/index.zh-CN.md
+++ b/components/popover/index.zh-CN.md
@@ -6,7 +6,7 @@
| content | 卡片内容 | string\|slot\|VNode | 无 |
| title | 卡片标题 | string\|slot\|VNode | 无 |
-更多属性请参考 [Tooltip](/ant-design-vue/components/tooltip-cn/#API)。
+更多属性请参考 [Tooltip](/components/tooltip-cn/#API)。
## 注意
diff --git a/components/select/demo/coordinate.md b/components/select/demo/coordinate.md
index e37f5cca9..cc8e363df 100644
--- a/components/select/demo/coordinate.md
+++ b/components/select/demo/coordinate.md
@@ -2,13 +2,13 @@
#### 联动
省市联动是典型的例子。
-推荐使用 [Cascader](/ant-design-vue/components/cascader-cn/) 组件。
+推荐使用 [Cascader](/components/cascader-cn/) 组件。
#### coordinate
Coordinating the selection of provinces and cities is a common use case and demonstrates how selection can be coordinated.
-Using the [Cascader](/ant-design-vue/components/cascader) component is strongly recommended instead as it is more flexible and capable.
+Using the [Cascader](/components/cascader) component is strongly recommended instead as it is more flexible and capable.
```html
diff --git a/components/skeleton/demo/list.md b/components/skeleton/demo/list.md
index e48f621b5..07f54e2a5 100644
--- a/components/skeleton/demo/list.md
+++ b/components/skeleton/demo/list.md
@@ -43,7 +43,7 @@ Use skeleton in list component.
const listData = [];
for (let i = 0; i < 3; i++) {
listData.push({
- href: 'https://vuecomponent.github.io/ant-design-vue/',
+ href: 'https://vue.ant.design/',
title: `ant design vue part ${i}`,
avatar: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png',
description: 'Ant Design, a design language for background applications, is refined by Ant UED Team.',
diff --git a/components/slider/demo/input-number.md b/components/slider/demo/input-number.md
index e72a09672..590ca8453 100644
--- a/components/slider/demo/input-number.md
+++ b/components/slider/demo/input-number.md
@@ -1,11 +1,11 @@
#### 带输入框的滑块
-和 [数字输入框](/ant-design-vue/components/input-number-cn/) 组件保持同步。
+和 [数字输入框](/components/input-number-cn/) 组件保持同步。
#### Slider with InputNumber
-Synchronize with [InputNumber](/ant-design-vue/components/input-number/) component.
+Synchronize with [InputNumber](/components/input-number/) component.
```html
diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md
index 5555e12be..c05fc4c45 100644
--- a/components/table/index.en-US.md
+++ b/components/table/index.en-US.md
@@ -48,9 +48,9 @@ const columns = [{
| expandRowByClick | Whether to expand row by clicking anywhere in the whole row | boolean | `false` |
| footer | Table footer renderer | Function(currentPageData)\|slot-scope | |
| indentSize | Indent size in pixels of tree data | number | 15 |
-| loading | Loading status of table | boolean\|[object](/ant-design-vue/components/spin) | `false` |
+| loading | Loading status of table | boolean\|[object](/components/spin) | `false` |
| locale | i18n text including filter, sort, empty text, etc | object | filterConfirm: 'Ok' filterReset: 'Reset' emptyText: 'No Data' |
-| pagination | Pagination [config](#pagination) or [`Pagination`] (/ant-design-vue/components/pagination/), hide it by setting it to `false` | object | |
+| pagination | Pagination [config](#pagination) or [`Pagination`] (/components/pagination/), hide it by setting it to `false` | object | |
| rowClassName | Row's className | Function(record, index):string | - |
| rowKey | Row's unique key, could be a string or function that returns a string | string\|Function(record):string | `key` |
| rowSelection | Row selection [config](#rowSelection) | object | null |
@@ -145,7 +145,7 @@ Properties for pagination.
| -------- | ----------- | ---- | ------- |
| position | specify the position of `Pagination` | 'top' \| 'bottom' \| 'both' | 'bottom' |
-More about pagination, please check [`Pagination`](/ant-design-vue/components/pagination/).
+More about pagination, please check [`Pagination`](/components/pagination/).
### rowSelection
diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md
index c2ac92c7f..dc64f9e03 100644
--- a/components/table/index.zh-CN.md
+++ b/components/table/index.zh-CN.md
@@ -48,9 +48,9 @@ const columns = [{
| expandRowByClick | 通过点击行来展开子行 | boolean | `false` |
| footer | 表格尾部 | Function(currentPageData)\|slot-scope | |
| indentSize | 展示树形数据时,每层缩进的宽度,以 px 为单位 | number | 15 |
-| loading | 页面是否加载中 | boolean\|[object](/ant-design-vue/components/spin-cn) | false |
+| loading | 页面是否加载中 | boolean\|[object](/components/spin-cn) | false |
| locale | 默认文案设置,目前包括排序、过滤、空数据文案 | object | filterConfirm: '确定' filterReset: '重置' emptyText: '暂无数据' |
-| pagination | 分页器,参考[配置项](#pagination)或 [pagination](/ant-design-vue/components/pagination-cn/),设为 false 时不展示和进行分页 | object | |
+| pagination | 分页器,参考[配置项](#pagination)或 [pagination](/components/pagination-cn/),设为 false 时不展示和进行分页 | object | |
| rowClassName | 表格行的类名 | Function(record, index):string | - |
| rowKey | 表格行 key 的取值,可以是字符串或一个函数 | string\|Function(record):string | 'key' |
| rowSelection | 列表项是否可选择,[配置项](#rowSelection) | object | null |
@@ -144,7 +144,7 @@ const columns = [{
| --- | --- | --- | --- |
| position | 指定分页显示的位置 | 'top' \| 'bottom' \| 'both' | 'bottom' |
-更多配置项,请查看 [`Pagination`](/ant-design-vue/components/pagination/)。
+更多配置项,请查看 [`Pagination`](/components/pagination/)。
### rowSelection
diff --git a/docs/vue/faq.en-US.md b/docs/vue/faq.en-US.md
index 4d491cd58..0cf99702f 100644
--- a/docs/vue/faq.en-US.md
+++ b/docs/vue/faq.en-US.md
@@ -22,7 +22,7 @@ Second, if you don't use the form's automatic check/collection feature, ie you d
### How to modify the default theme of Ant Design Vue?
-See [Customize Theme](/ant-design-vue/docs/vue/customize-theme/)。
+See [Customize Theme](/docs/vue/customize-theme/)。
### How to optimize momentjs bundle size with webpack?
diff --git a/docs/vue/faq.zh-CN.md b/docs/vue/faq.zh-CN.md
index eb51c9449..d4dab5c3a 100644
--- a/docs/vue/faq.zh-CN.md
+++ b/docs/vue/faq.zh-CN.md
@@ -22,7 +22,7 @@
### 如何修改 Ant Design Vue 的默认主题?
-参考[主题定制](/ant-design-vue/docs/vue/customize-theme/)。
+参考[主题定制](/docs/vue/customize-theme/)。
### 如何配置 webpack 以优化 momentjs 的打包大小?
diff --git a/docs/vue/getting-started.en-US.md b/docs/vue/getting-started.en-US.md
index 976409b8a..51a406728 100644
--- a/docs/vue/getting-started.en-US.md
+++ b/docs/vue/getting-started.en-US.md
@@ -132,7 +132,7 @@ And this plugin can load styles too, read [usage](https://github.com/ant-design/
## Customization
-- [Customize Theme](/ant-design-vue/docs/vue/customize-theme)
+- [Customize Theme](/docs/vue/customize-theme)
- [Local Iconfont](https://github.com/ant-design/antd-init/tree/master/examples/local-iconfont)
## Tips
diff --git a/docs/vue/getting-started.zh-CN.md b/docs/vue/getting-started.zh-CN.md
index 170800a43..8d85a32d1 100644
--- a/docs/vue/getting-started.zh-CN.md
+++ b/docs/vue/getting-started.zh-CN.md
@@ -139,7 +139,7 @@ import { Button } from 'ant-design-vue';
## 配置主题和字体
-- [改变主题](/ant-design-vue/docs/vue/customize-theme-cn)
+- [改变主题](/docs/vue/customize-theme-cn)
- [使用本地字体](https://github.com/ant-design/antd-init/tree/master/examples/local-iconfont)
## 小贴士
diff --git a/docs/vue/i18n.en-US.md b/docs/vue/i18n.en-US.md
index eec7e2665..62a7e73e4 100644
--- a/docs/vue/i18n.en-US.md
+++ b/docs/vue/i18n.en-US.md
@@ -6,7 +6,7 @@ If you want to use other languages, you can follow the instructions below.
## LocaleProvider
-ant-design-vue provides a Vue Component [LocaleProvider](/ant-design-vue/components/locale-provider) for configuring ant-design-vue locale text globally.
+ant-design-vue provides a Vue Component [LocaleProvider](/components/locale-provider) for configuring ant-design-vue locale text globally.
````html
@@ -69,5 +69,5 @@ Supported languages:
|Chinese (Simplified)|zh_CN|
|Chinese (Traditional)|zh_TW|
-See usage and ways to contribute a new locale package at [LocaleProvider](/ant-design-vue/components/locale-provider).
+See usage and ways to contribute a new locale package at [LocaleProvider](/components/locale-provider).
diff --git a/docs/vue/i18n.zh-CN.md b/docs/vue/i18n.zh-CN.md
index d60b7be1a..4487efe2a 100644
--- a/docs/vue/i18n.zh-CN.md
+++ b/docs/vue/i18n.zh-CN.md
@@ -5,7 +5,7 @@
## LocaleProvider
-ant-design-vue 提供了一个 Vue 组件 [LocaleProvider](/ant-design-vue/components/locale-provider-cn) 用于全局配置国际化文案。
+ant-design-vue 提供了一个 Vue 组件 [LocaleProvider](/components/locale-provider-cn) 用于全局配置国际化文案。
````html
@@ -68,5 +68,5 @@ export default {
|简体中文|zh_CN|
|繁体中文|zh_TW|
-具体的使用方法和新语言包贡献方式请参考 [LocaleProvider 文档](/ant-design-vue/components/locale-provider-cn)。
+具体的使用方法和新语言包贡献方式请参考 [LocaleProvider 文档](/components/locale-provider-cn)。
diff --git a/docs/vue/introduce.en-US.md b/docs/vue/introduce.en-US.md
index f26e90491..30e9e45bf 100644
--- a/docs/vue/introduce.en-US.md
+++ b/docs/vue/introduce.en-US.md
@@ -31,7 +31,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://vuecomponent.github.io/ant-design-vue/docs/vue/getting-started-cn/#兼容性))
+* Modern browsers and Internet Explorer 9+ (with [polyfills](https://vue.ant.design/docs/vue/getting-started/#Compatibility))
* Server-side Rendering
## Version
@@ -115,14 +115,14 @@ import 'ant-design-vue/dist/antd.css'; // or 'ant-design-vue/dist/antd.less'
## Links
-- [Home Page](https://vuecomponent.github.io/ant-design-vue/)
+- [Home Page](https://vue.ant.design/)
- [Ant Design React](https://ant.design/)
-- [Components](https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce)
-- [Change Log](/ant-design-vue/changelog)
+- [Components](https://vue.ant.design/docs/vue/introduce)
+- [Change Log](/docs/vue/changelog)
- [CodeSandbox template](https://codesandbox.io/s/2wpk21kzvr) for bug reports
-- [Customize Theme](/ant-design-vue/docs/vue/customize-theme)
-- [FAQ](/ant-design-vue/docs/vue/faq)
-- [Support US](/ant-design-vue/docs/vue/sponsor)
+- [Customize Theme](/docs/vue/customize-theme)
+- [FAQ](/docs/vue/faq)
+- [Support US](/docs/vue/sponsor)
- [Awesome Ant Design](https://github.com/vueComponent/ant-design-vue-awesome)
## Contributing
diff --git a/docs/vue/introduce.zh-CN.md b/docs/vue/introduce.zh-CN.md
index 6cd1dee66..7c4e38dba 100644
--- a/docs/vue/introduce.zh-CN.md
+++ b/docs/vue/introduce.zh-CN.md
@@ -30,7 +30,7 @@
## 支持环境
-* 现代浏览器和 IE9 及以上(需要 [polyfills](https://vuecomponent.github.io/ant-design-vue/docs/vue/getting-started-cn/#兼容性))。
+* 现代浏览器和 IE9 及以上(需要 [polyfills](https://vue.ant.design/docs/vue/getting-started-cn/#兼容性))。
* 支持服务端渲染。
## 版本
@@ -116,20 +116,20 @@ import 'ant-design-vue/dist/antd.css'; // or 'ant-design-vue/dist/antd.less'
## 链接
-- [首页](https://vuecomponent.github.io/ant-design-vue/)
+- [首页](https://vue.ant.design/)
- [Ant Design React](https://ant.design/)
-- [组件库](https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn)
-- [更新日志](/ant-design-vue/changelog-cn)
+- [组件库](https://vue.ant.design/docs/vue/introduce-cn)
+- [更新日志](/docs/vue/changelog-cn)
- [CodeSandbox 模板](https://codesandbox.io/s/2wpk21kzvr) for bug reports
-- [定制主题](/ant-design-vue/docs/vue/customize-theme-cn)
-- [常见问题](/ant-design-vue/docs/vue/faq-cn)
-- [支持我们](/ant-design-vue/docs/vue/sponsor-cn)
+- [定制主题](/docs/vue/customize-theme-cn)
+- [常见问题](/docs/vue/faq-cn)
+- [支持我们](/docs/vue/sponsor-cn)
- [Awesome Ant Design](https://github.com/vueComponent/ant-design-vue-awesome)
## 如何贡献
-如果你希望参与贡献,欢迎 [Pull Request](https://github.com/vueComponent/ant-design-vue/pulls),或给我们 [报告 Bug](https://vuecomponent.github.io/issue-helper/)([国内镜像](http://tangjinzhou.gitee.io/issue-helper/))。
+如果你希望参与贡献,欢迎 [Pull Request](https://github.com/vueComponent/ant-design-vue/pulls),或给我们 [报告 Bug](https://vuecomponent.github.io/issue-helper/)([国内镜像](http://ant-design-vue.gitee.io/issue-helper/))。
> 强烈推荐阅读 [《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way)、[《如何向开源社区提问题》](https://github.com/seajs/seajs/issues/545) 和 [《如何有效地报告 Bug》](http://www.chiark.greenend.org.uk/%7Esgtatham/bugs-cn.html)、[《如何向开源项目提交无法解答的问题》](https://zhuanlan.zhihu.com/p/25795393),更好的问题更容易获得帮助。
diff --git a/docs/vue/use-with-vue-cli.en-US.md b/docs/vue/use-with-vue-cli.en-US.md
index f4ae4f136..161d474c5 100644
--- a/docs/vue/use-with-vue-cli.en-US.md
+++ b/docs/vue/use-with-vue-cli.en-US.md
@@ -103,7 +103,7 @@ Now we need to customize the default webpack config.
### Use babel-plugin-import
-[babel-plugin-import](https://github.com/ant-design/babel-plugin-import) is a babel plugin for importing components on demand ([How does it work?](/ant-design-vue/docs/vue/getting-started/#Import-on-Demand)).
+[babel-plugin-import](https://github.com/ant-design/babel-plugin-import) is a babel plugin for importing components on demand ([How does it work?](/docs/vue/getting-started/#Import-on-Demand)).
```bash
$ yarn add babel-plugin-import --dev
@@ -171,8 +171,8 @@ Remove the `import 'ant-design-vue/dist/antd.css';` statement added before becau
})
```
-Then reboot with `npm run dev` and visit the demo page, you should not find any [warning messages](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png) in the console, which prove that the `import on demand` config is working now. You will find more info about it in [this guide](/ant-design-vue/docs/vue/getting-started/#Import-on-Demand).
+Then reboot with `npm run dev` and visit the demo page, you should not find any [warning messages](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png) in the console, which prove that the `import on demand` config is working now. You will find more info about it in [this guide](/docs/vue/getting-started/#Import-on-Demand).
### Customize Theme
-According to the [Customize Theme documentation](/ant-design-vue/docs/vue/customize-theme), to customize the theme, we need to modify `less` variables with tools such as [less-loader](https://github.com/webpack/less-loader).
+According to the [Customize Theme documentation](/docs/vue/customize-theme), to customize the theme, we need to modify `less` variables with tools such as [less-loader](https://github.com/webpack/less-loader).
diff --git a/docs/vue/use-with-vue-cli.zh-CN.md b/docs/vue/use-with-vue-cli.zh-CN.md
index 79bc305a5..85f4b97b2 100644
--- a/docs/vue/use-with-vue-cli.zh-CN.md
+++ b/docs/vue/use-with-vue-cli.zh-CN.md
@@ -101,7 +101,7 @@ new Vue({
### 使用 babel-plugin-import
-[babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 是一个用于按需加载组件代码和样式的 babel 插件([原理](/ant-design-vue/docs/vue/getting-started-cn/#按需加载))。
+[babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 是一个用于按需加载组件代码和样式的 babel 插件([原理](/docs/vue/getting-started-cn/#按需加载))。
```bash
$ yarn add babel-plugin-import --dev
@@ -169,8 +169,8 @@ $ yarn add babel-plugin-import --dev
})
```
-最后重启 `npm run dev` 访问页面,antd 组件的 js 和 css 代码都会按需加载,你在控制台也不会看到这样的[警告信息](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png)。关于按需加载的原理和其他方式可以阅读[这里](/ant-design-vue/docs/vue/getting-started-cn/#按需加载)。
+最后重启 `npm run dev` 访问页面,antd 组件的 js 和 css 代码都会按需加载,你在控制台也不会看到这样的[警告信息](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png)。关于按需加载的原理和其他方式可以阅读[这里](/docs/vue/getting-started-cn/#按需加载)。
### 自定义主题
-按照 [配置主题](/ant-design-vue/docs/vue/customize-theme-cn) 的要求,自定义主题需要用到 less 变量覆盖功能。
+按照 [配置主题](/docs/vue/customize-theme-cn) 的要求,自定义主题需要用到 less 变量覆盖功能。
diff --git a/scripts/gulpfile.js b/scripts/gulpfile.js
index fece63517..02bd6b772 100644
--- a/scripts/gulpfile.js
+++ b/scripts/gulpfile.js
@@ -52,7 +52,10 @@ function copyHtml() {
const rl = readline.createInterface({
input: fs.createReadStream(path.join(cwd, 'site/demoRoutes.js')),
});
-
+ fs.writeFileSync(
+ path.join(cwd, 'site-dist/404.html'),
+ fs.readFileSync(path.join(cwd, 'site/404.html')),
+ );
rl.on('line', line => {
if (line.indexOf('path:') > -1) {
const name = line.split("'")[1].split("'")[0];
diff --git a/site/404.html b/site/404.html
new file mode 100644
index 000000000..b6c8fc8fa
--- /dev/null
+++ b/site/404.html
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+ Ant Design Vue
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/site/components/CarbonAds.vue b/site/components/CarbonAds.vue
index 96a3c676b..ca145bf69 100644
--- a/site/components/CarbonAds.vue
+++ b/site/components/CarbonAds.vue
@@ -3,6 +3,7 @@ import axios from 'axios';
const carbonUrls = {
'vuecomponent.github.io': '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio',
'tangjinzhou.gitee.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=tangjinzhougiteeio',
+ 'antdesignvue.gitee.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=antdesignvuegiteeio',
'vue.ant.design': '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio',
};
const carbonUrl = carbonUrls[location.host] || '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio';
diff --git a/site/components/footer.vue b/site/components/footer.vue
index c7da349bf..c3fcd6795 100644
--- a/site/components/footer.vue
+++ b/site/components/footer.vue
@@ -45,7 +45,7 @@ export default {
AntD Library
diff --git a/site/components/header.vue b/site/components/header.vue
index 2077bf4fa..f5c2966b1 100644
--- a/site/components/header.vue
+++ b/site/components/header.vue
@@ -38,7 +38,7 @@ export default {
@@ -129,7 +129,7 @@ export default {
-
+
{isCN ? '支持我们' : 'Support us'}
diff --git a/site/components/layout.vue b/site/components/layout.vue
index edb2410b5..7a8b346e4 100644
--- a/site/components/layout.vue
+++ b/site/components/layout.vue
@@ -128,11 +128,11 @@ export default {
docsList.forEach(({ key, enTitle, title }, index) => {
const k = isCN ? `${key}-cn` : key;
pagesKey.push({ name: k,
- url: `/ant-design-vue/docs/vue/${k}/`,
+ url: `/docs/vue/${k}/`,
title: isCN ? title : enTitle,
});
docsMenu.push(
- {isCN ? title : enTitle }
+ {isCN ? title : enTitle }
);
});
return docsMenu;
@@ -199,16 +199,16 @@ export default {
}
pagesKey.push({
name: key,
- url: `/ant-design-vue/components/${key}/`,
+ url: `/components/${key}/`,
title: isCN ? `${title} ${subtitle}` : title,
});
searchData.push({
title,
subtitle,
- url: `/ant-design-vue/components/${key}/`,
+ url: `/components/${key}/`,
});
MenuItems.push(
- {linkValue}
+ {linkValue}
);
});
MenuGroup.push({MenuItems} );
diff --git a/site/routes.js b/site/routes.js
index f1e675ac6..848a7a68a 100644
--- a/site/routes.js
+++ b/site/routes.js
@@ -4,16 +4,16 @@ import demoRoutes from './demoRoutes';
export default [
{
- path: '/ant-design-vue/components',
+ path: '/components',
component: Layout,
props: route => {
- const name = route.path.split('/ant-design-vue/components/')[1].split('/')[0];
+ const name = route.path.split('/components/')[1].split('/')[0];
return { name, showDemo: true };
},
children: demoRoutes,
},
{
- path: '/ant-design-vue/iframe',
+ path: '/iframe',
component: Iframe,
children: demoRoutes.map(item => ({
...item,
@@ -24,7 +24,7 @@ export default [
})),
},
{
- path: '/ant-design-vue',
+ path: '/',
component: Layout,
props: route => {
const name = route.path.split('/docs/vue/')[1].split('/')[0];
@@ -103,8 +103,8 @@ export default [
path: 'docs/vue/changelog-cn',
component: () => import('../CHANGELOG.zh-CN.md'),
},
- { path: '', redirect: '/ant-design-vue/vue/docs/introduce/' },
+ { path: '', redirect: '/vue/docs/introduce/' },
],
},
- { path: '/*', redirect: '/ant-design-vue/docs/vue/introduce/' },
+ { path: '/*', redirect: '/docs/vue/introduce/' },
];
diff --git a/types/table/table.d.ts b/types/table/table.d.ts
index e841663ec..308bda939 100644
--- a/types/table/table.d.ts
+++ b/types/table/table.d.ts
@@ -217,7 +217,7 @@ export declare class Table extends AntdComponent {
locale: object;
/**
- * Pagination config or [Pagination] (/ant-design-vue/components/pagination/), hide it by setting it to false
+ * Pagination config or [Pagination] (/components/pagination/), hide it by setting it to false
* @type boolean | PaginationConfig
*/
pagination: boolean | PaginationConfig;
diff --git a/webpack.config.js b/webpack.config.js
index fd43e79fc..2e13e185f 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -7,7 +7,7 @@ module.exports = merge(baseWebpackConfig, {
mode: 'development',
output: {
path: path.resolve(__dirname, './dist'),
- publicPath: '/ant-design-vue/',
+ publicPath: '/',
filename: 'build.js',
},
module: {
@@ -33,7 +33,7 @@ module.exports = merge(baseWebpackConfig, {
port: 3000,
host: '0.0.0.0',
historyApiFallback: {
- rewrites: [{ from: /./, to: '/ant-design-vue/index.html' }],
+ rewrites: [{ from: /./, to: '/index.html' }],
},
disableHostCheck: true,
headers: { 'Access-Control-Allow-Origin': '*' },
diff --git a/webpack.site.config.js b/webpack.site.config.js
index ca6d7f820..2c0e711f7 100644
--- a/webpack.site.config.js
+++ b/webpack.site.config.js
@@ -8,7 +8,7 @@ const baseWebpackConfig = require('./webpack.base.config');
module.exports = merge(baseWebpackConfig, {
output: {
path: path.resolve(__dirname, './site-dist'),
- publicPath: '/ant-design-vue/',
+ publicPath: '/',
filename: '[name].[contenthash:8].js',
chunkFilename: '[contenthash:8].async.js',
},