Skip to content

Commit 8aa8e5a

Browse files
authored
docs(calendar): optimize calendar docs note layout (#7102)
docs(calendar): optimize calendar docs note layout docs(calendar): optimize calendar docs note layout docs(calendar): optimize calendar docs note layout docs(calendar): optimize calendar docs note layout
1 parent 42952b7 commit 8aa8e5a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

components/calendar/index.en-US.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ When data is in the form of dates, such as schedules, timetables, prices calenda
1616

1717
**Note:** Part of the Calendar's locale is read from `value`. So, please set the locale of `dayjs` correctly.
1818

19-
```html
20-
// The default locale is en-US, if you want to use other locale, just set locale in entry file
21-
globally. // import dayjs from 'dayjs'; // import 'dayjs/locale/zh-cn'; // dayjs.locale('zh-cn');
19+
```jsx
20+
// The default locale is en-US, if you want to use other locale, just set locale in entry file globally.
21+
// import dayjs from 'dayjs';
22+
// import 'dayjs/locale/zh-cn';
23+
// dayjs.locale('zh-cn');
2224

2325
<a-calendar v-model:value @panelChange="onPanelChange" @select="onSelect"></a-calendar>
2426
```

components/calendar/index.zh-CN.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*-p-wQLik200AAA
1717

1818
**注意:**Calendar 部分 locale 是从 value 中读取,所以请先正确设置 dayjs 的 locale。
1919

20-
```html
21-
// 默认语言为 en-US,所以如果需要使用其他语言,推荐在入口文件全局设置 locale // import dayjs from
22-
'dayjs'; // import 'dayjs/locale/zh-cn'; // dayjs.locale('zh-cn');
20+
```jsx
21+
// 默认语言为 en-US,所以如果需要使用其他语言,推荐在入口文件全局设置 locale
22+
// import dayjs from 'dayjs';
23+
// import 'dayjs/locale/zh-cn';
24+
// dayjs.locale('zh-cn');
2325

2426
<a-calendar v-model:value="value" @panelChange="onPanelChange" @select="onSelect"></a-calendar>
2527
```

0 commit comments

Comments
 (0)