From 8aa8e5a778b41c912a8cf06503ff1521cbdb72d5 Mon Sep 17 00:00:00 2001 From: cc heart <71313168+cc-hearts@users.noreply.github.com> Date: Mon, 18 Dec 2023 10:24:18 +0800 Subject: [PATCH] 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 --- components/calendar/index.en-US.md | 8 +++++--- components/calendar/index.zh-CN.md | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/components/calendar/index.en-US.md b/components/calendar/index.en-US.md index 4871cceec..6a12ad82a 100644 --- a/components/calendar/index.en-US.md +++ b/components/calendar/index.en-US.md @@ -16,9 +16,11 @@ When data is in the form of dates, such as schedules, timetables, prices calenda **Note:** Part of the Calendar's locale is read from `value`. So, please set the locale of `dayjs` correctly. -```html -// The default locale is en-US, if you want to use other locale, just set locale in entry file -globally. // import dayjs from 'dayjs'; // import 'dayjs/locale/zh-cn'; // dayjs.locale('zh-cn'); +```jsx +// The default locale is en-US, if you want to use other locale, just set locale in entry file globally. +// import dayjs from 'dayjs'; +// import 'dayjs/locale/zh-cn'; +// dayjs.locale('zh-cn'); ``` diff --git a/components/calendar/index.zh-CN.md b/components/calendar/index.zh-CN.md index b96f0caf0..3d0f68d1f 100644 --- a/components/calendar/index.zh-CN.md +++ b/components/calendar/index.zh-CN.md @@ -17,9 +17,11 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*-p-wQLik200AAA **注意:**Calendar 部分 locale 是从 value 中读取,所以请先正确设置 dayjs 的 locale。 -```html -// 默认语言为 en-US,所以如果需要使用其他语言,推荐在入口文件全局设置 locale // import dayjs from -'dayjs'; // import 'dayjs/locale/zh-cn'; // dayjs.locale('zh-cn'); +```jsx +// 默认语言为 en-US,所以如果需要使用其他语言,推荐在入口文件全局设置 locale +// import dayjs from 'dayjs'; +// import 'dayjs/locale/zh-cn'; +// dayjs.locale('zh-cn'); ```