Skip to content

Commit 797a1c6

Browse files
committed
doc: update next to main
1 parent ec17787 commit 797a1c6

15 files changed

+31
-31
lines changed

components/calendar/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ customize the progress dot by setting a scoped slot
3131
| disabledDate | Function that specifies the dates that cannot be selected | (currentDate: dayjs) => boolean | - | |
3232
| fullscreen | Whether to display in full-screen | boolean | `true` | |
3333
| headerRender | render custom header in panel | v-slot:headerRender="{value: dayjs, type: string, onChange: f(), onTypeChange: f()}" | - | 1.5.0 |
34-
| locale | The calendar's locale | object | [default](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json) | |
34+
| locale | The calendar's locale | object | [default](https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/locale/example.json) | |
3535
| mode | The display mode of the calendar | `month` \| `year` | `month` | |
3636
| monthCellRender | Customize the display of the month cell by setting a scoped slot, the returned content will be appended to the cell | v-slot:monthCellRender="{current: dayjs}" | - | |
3737
| monthFullCellRender | Customize the display of the month cell by setting a scoped slot, the returned content will override the cell | v-slot:monthFullCellRender="{current: dayjs}" | - | |

components/calendar/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg
3030
| disabledDate | 不可选择的日期 | (currentDate: dayjs) => boolean || |
3131
| fullscreen | 是否全屏显示 | boolean | true | |
3232
| headerRender | 自定义头部内容 | v-slot:headerRender="{value: dayjs, type: string, onChange: f(), onTypeChange: f()}" | - | |
33-
| locale | 国际化配置 | object | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json) | |
33+
| locale | 国际化配置 | object | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/locale/example.json) | |
3434
| mode | 初始模式,`month/year` | string | month | |
3535
| monthCellRender | 作用域插槽,自定义渲染月单元格,返回内容会被追加到单元格 | v-slot:monthCellRender="{current: dayjs}" || |
3636
| monthFullCellRender | 作用域插槽,自定义渲染月单元格,返回内容覆盖单元格 | v-slot:monthFullCellRender="{current: dayjs}" || |

components/carousel/__tests__/__snapshots__/demo.test.js.snap

+13-13
Original file line numberDiff line numberDiff line change
@@ -253,56 +253,56 @@ exports[`renders ./components/carousel/demo/customPaging.vue correctly 1`] = `
253253
<div class="slick-track" style="opacity: 1; transform: translate3d(0px, 0px, 0px);">
254254
<div class="slick-slide slick-cloned" tabindex="-1" data-index="-1" aria-hidden="true" style="width: 0px;">
255255
<div>
256-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract04.jpg"></div>
256+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract04.jpg"></div>
257257
</div>
258258
</div>
259259
<div tabindex="-1" data-index="0" aria-hidden="false" class="slick-slide slick-active slick-current" style="outline: none; width: 0px;">
260260
<div>
261-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract01.jpg"></div>
261+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract01.jpg"></div>
262262
</div>
263263
</div>
264264
<div tabindex="-1" data-index="1" aria-hidden="true" class="slick-slide" style="outline: none; width: 0px;">
265265
<div>
266-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract02.jpg"></div>
266+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract02.jpg"></div>
267267
</div>
268268
</div>
269269
<div tabindex="-1" data-index="2" aria-hidden="true" class="slick-slide" style="outline: none; width: 0px;">
270270
<div>
271-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract03.jpg"></div>
271+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract03.jpg"></div>
272272
</div>
273273
</div>
274274
<div tabindex="-1" data-index="3" aria-hidden="true" class="slick-slide" style="outline: none; width: 0px;">
275275
<div>
276-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract04.jpg"></div>
276+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract04.jpg"></div>
277277
</div>
278278
</div>
279279
<div tabindex="-1" data-index="4" aria-hidden="true" class="slick-slide slick-cloned" style="width: 0px;">
280280
<div>
281-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract01.jpg"></div>
281+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract01.jpg"></div>
282282
</div>
283283
</div>
284284
<div tabindex="-1" data-index="5" aria-hidden="true" class="slick-slide slick-cloned" style="width: 0px;">
285285
<div>
286-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract02.jpg"></div>
286+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract02.jpg"></div>
287287
</div>
288288
</div>
289289
<div tabindex="-1" data-index="6" aria-hidden="true" class="slick-slide slick-cloned" style="width: 0px;">
290290
<div>
291-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract03.jpg"></div>
291+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract03.jpg"></div>
292292
</div>
293293
</div>
294294
<div tabindex="-1" data-index="7" aria-hidden="true" class="slick-slide slick-cloned" style="width: 0px;">
295295
<div>
296-
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract04.jpg"></div>
296+
<div tabindex="-1" style="width: 100%; display: inline-block;"><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract04.jpg"></div>
297297
</div>
298298
</div>
299299
</div>
300300
</div><button type="button" data-role="none" class="slick-arrow slick-next" style="display: block;"> Next</button>
301301
<ul style="display: block;" class="slick-dots slick-dots-bottom slick-dots slick-thumb">
302-
<li class="slick-active"><a><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract01.jpg"></a></li>
303-
<li class=""><a><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract02.jpg"></a></li>
304-
<li class=""><a><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract03.jpg"></a></li>
305-
<li class=""><a><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/abstract04.jpg"></a></li>
302+
<li class="slick-active"><a><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract01.jpg"></a></li>
303+
<li class=""><a><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract02.jpg"></a></li>
304+
<li class=""><a><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract03.jpg"></a></li>
305+
<li class=""><a><img src="https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/abstract04.jpg"></a></li>
306306
</ul>
307307
</div>
308308
</div>

components/carousel/demo/customPaging.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Custom paging display
3232
import { defineComponent } from 'vue';
3333
3434
const baseUrl =
35-
'https://raw.githubusercontent.com/vueComponent/ant-design-vue/next/components/carousel/demo/';
35+
'https://raw.githubusercontent.com/vueComponent/ant-design-vue/main/components/carousel/demo/';
3636
export default defineComponent({
3737
setup() {
3838
const getImgUrl = (i: number) => {

components/carousel/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ A carousel component. Scales with its container.
3434
| next() | Change current slide to next slide | |
3535
| prev() | Change current slide to previous slide | |
3636

37-
For more info on the props, refer to the [carousel props](https://github.com/vueComponent/ant-design-vue/blob/next/components/carousel/index.tsx)
37+
For more info on the props, refer to the [carousel props](https://github.com/vueComponent/ant-design-vue/blob/main/components/carousel/index.tsx)

components/carousel/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/%24C9tmj978R/Carousel.svg
3535
| next() | 切换到下一面板 | |
3636
| prev() | 切换到上一面板 | |
3737

38-
更多属性可参考源码:[carousel props](https://github.com/vueComponent/ant-design-vue/blob/next/components/carousel/index.tsx)
38+
更多属性可参考源码:[carousel props](https://github.com/vueComponent/ant-design-vue/blob/main/components/carousel/index.tsx)

components/color-picker/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| disabled | whether disabled picker | boolean | false |
99
| format | Color format | 'HEXA' \|'RGBA' \|'HSVA' \|'HSLA' \|'CMYK' | 'HEXA' |
1010
| getPopupContainer | to set the container of the floating layer, while the default is to create a div element in body | Function(triggerNode) | () => document.body |
11-
| locale | locale package | [default setting](https://github.com/vueComponent/ant-design-vue/blob/next/components/color-picker/locale) | - |
11+
| locale | locale package | [default setting](https://github.com/vueComponent/ant-design-vue/blob/main/components/color-picker/locale) | - |
1212
| size | size of pickr | 'large'\|'small'\|'default' | 'default' |
1313
| value | color value | string | - |
1414

components/color-picker/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| disabled | 是否禁用 | boolean | false |
99
| format | 定义返回的颜色格式 | 'HEXA' \|'RGBA' \|'HSVA' \|'HSLA' \|'CMYK' | 'HEXA' |
1010
| getPopupContainer | 浮层渲染父节点,默认渲染到 body 上 | Function(triggerNode) | () => document.body |
11-
| locale | 语言包 | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/next/components/color-picker/locale) | - |
11+
| locale | 语言包 | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/main/components/color-picker/locale) | - |
1212
| size | 取色器尺寸 | 'large'\|'small'\|'default' | 'default' |
1313
| value | 颜色值 | string | - |
1414

components/date-picker/index.en-US.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ There are five kinds of picker:
2626

2727
The default locale is en-US, if you need to use other languages, recommend to use internationalized components provided by us at the entrance. Look at: [ConfigProvider](/components/config-provider/).
2828

29-
If there are special needs (only modifying single component language), Please use the property: local. Example: [default](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json).
29+
If there are special needs (only modifying single component language), Please use the property: local. Example: [default](https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/locale/example.json).
3030

3131
```html
3232
<template>
@@ -86,7 +86,7 @@ The following APIs are shared by DatePicker, RangePicker.
8686
| dropdownClassName | To customize the className of the popup calendar | string | - | |
8787
| getPopupContainer | To set the container of the floating layer, while the default is to create a `div` element in `body` | function(trigger) | - | |
8888
| inputReadOnly | Set the `readonly` attribute of the input tag (avoids virtual keyboard on touch devices) | boolean | false | |
89-
| locale | Localization configuration | object | [default](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json) | |
89+
| locale | Localization configuration | object | [default](https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/locale/example.json) | |
9090
| mode | The picker panel mode | `time` \| `date` \| `month` \| `year` \| `decade` | - | |
9191
| nextIcon | The custom next icon | slot | - | 3.0 |
9292
| open | The open state of picker | boolean | - | |

components/date-picker/index.zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/RT_USzA48/DatePicker.svg
2727

2828
默认配置为 en-US,如果你需要设置其他语言,推荐在入口处使用我们提供的国际化组件,详见:[ConfigProvider 国际化](/components/config-provider-cn/)
2929

30-
如有特殊需求(仅修改单一组件的语言),请使用 locale 参数,参考:[默认配置](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json)
30+
如有特殊需求(仅修改单一组件的语言),请使用 locale 参数,参考:[默认配置](https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/locale/example.json)
3131

3232
```html
3333
<template>
@@ -87,7 +87,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/RT_USzA48/DatePicker.svg
8787
| dropdownClassName | 额外的弹出日历 className | string | - | |
8888
| getPopupContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | - | |
8989
| inputReadOnly | 设置输入框为只读(避免在移动设备上打开虚拟键盘) | boolean | false | |
90-
| locale | 国际化配置 | object | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json) | - |
90+
| locale | 国际化配置 | object | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/locale/example.json) | - |
9191
| mode | 日期面板的状态 | `time` \| `date` \| `month` \| `year` \| `decade` | - | |
9292
| nextIcon | 自定义下一个图标 | slot | - | 3.0 |
9393
| open | 控制弹层是否展开 | boolean | - | |

components/form/demo/nest-messages.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ title:
88

99
## zh-CN
1010

11-
`name` 属性支持嵌套数据结构。通过 `validateMessages` 或 `message` 自定义校验信息模板,模板内容可参考[此处](https://github.com/vueComponent/ant-design-vue/blob/next/components/form/utils/messages.ts)。
11+
`name` 属性支持嵌套数据结构。通过 `validateMessages` 或 `message` 自定义校验信息模板,模板内容可参考[此处](https://github.com/vueComponent/ant-design-vue/blob/main/components/form/utils/messages.ts)。
1212

1313
## en-US
1414

15-
`name` prop support nest data structure. Customize validate message template with `validateMessages` or `message`. Ref [here](https://github.com/vueComponent/ant-design-vue/blob/next/components/form/utils/messages.ts) about message template.
15+
`name` prop support nest data structure. Customize validate message template with `validateMessages` or `message`. Ref [here](https://github.com/vueComponent/ant-design-vue/blob/main/components/form/utils/messages.ts) about message template.
1616
</docs>
1717
<template>
1818
<a-form

site/src/hooks/useMenus.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ const useMenus = (): {
5454
// category: 'docs',
5555
// target: '_blank',
5656
// path: globalConfig.isZhCN.value
57-
// ? 'https://github.com/vueComponent/ant-design-vue/blob/next/CHANGELOG.zh-CN.md'
58-
// : 'https://github.com/vueComponent/ant-design-vue/blob/next/CHANGELOG.en-US.md',
57+
// ? 'https://github.com/vueComponent/ant-design-vue/blob/main/CHANGELOG.zh-CN.md'
58+
// : 'https://github.com/vueComponent/ant-design-vue/blob/main/CHANGELOG.en-US.md',
5959
// } as any);
6060
// }
6161
return ms;

site/src/vueDocs/customize-theme.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Ant Design allows you to customize some basic design aspects in order to meet th
1010

1111
We are using [Less](http://lesscss.org/) as the development language for styling. A set of less variables are defined for each design aspect that can be customized to your needs.
1212

13-
There are some major variables below, all less variables could be found in [Default Variables](https://github.com/vueComponent/ant-design-vue/blob/next/components/style/themes/default.less).
13+
There are some major variables below, all less variables could be found in [Default Variables](https://github.com/vueComponent/ant-design-vue/blob/main/components/style/themes/default.less).
1414

1515
```less
1616
@primary-color: #1890ff; // primary color for all components

site/src/vueDocs/customize-theme.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Ant Design 设计规范上支持一定程度的样式定制,以满足业务和
1010

1111
antd 的样式使用了 [Less](http://lesscss.org/) 作为开发语言,并定义了一系列全局/组件的样式变量,你可以根据需求进行相应调整。
1212

13-
以下是一些最常用的通用变量,所有样式变量可以在 [这里](https://github.com/vueComponent/ant-design-vue/blob/next/components/style/themes/default.less) 找到。
13+
以下是一些最常用的通用变量,所有样式变量可以在 [这里](https://github.com/vueComponent/ant-design-vue/blob/main/components/style/themes/default.less) 找到。
1414

1515
```less
1616
@primary-color: #1890ff; // 全局主色

site/src/vueDocs/getting-started.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ In this way, component sub-components, such as Button and ButtonGroup, need to b
9797

9898
### 4. Component list
9999

100-
[Component list](https://github.com/vueComponent/ant-design-vue/blob/next/components/components.ts)
100+
[Component list](https://github.com/vueComponent/ant-design-vue/blob/main/components/components.ts)
101101

102102
## Compatibility
103103

0 commit comments

Comments
 (0)