diff --git a/components/cascader/index.en-US.md b/components/cascader/index.en-US.md index 940cb1f3a6..fc819ba2d3 100644 --- a/components/cascader/index.en-US.md +++ b/components/cascader/index.en-US.md @@ -83,7 +83,7 @@ Common props ref:[Common props](/docs/react/common-props) | multiple | Support multiple or not | boolean | - | 4.17.0 | | removeIcon | The custom remove icon | ReactNode | - | | | showCheckedStrategy | The way show selected item in box. ** `SHOW_CHILD`: ** just show child treeNode. **`Cascader.SHOW_PARENT`:** just show parent treeNode (when all child treeNode under the parent treeNode are checked) | `Cascader.SHOW_PARENT` \| `Cascader.SHOW_CHILD` | `Cascader.SHOW_PARENT` | 4.20.0 | -| searchValue | Set search value,Need work with `showSearch` | string | - | 4.17.0 | +| searchValue | Set search value, Need work with `showSearch` | string | - | 4.17.0 | | onSearch | The callback function triggered when input changed | (search: string) => void | - | 4.17.0 | | dropdownMenuColumnStyle | The style of the drop-down menu column | CSSProperties | - | | | loadingIcon | The appearance of lazy loading (now is useless) | ReactNode | - | | diff --git a/components/drawer/index.zh-CN.md b/components/drawer/index.zh-CN.md index 28bdd2a447..d926ceb57d 100644 --- a/components/drawer/index.zh-CN.md +++ b/components/drawer/index.zh-CN.md @@ -56,7 +56,7 @@ demo: | forceRender | 预渲染 Drawer 内元素 | boolean | false | | | getContainer | 指定 Drawer 挂载的节点,**并在容器内展现**,`false` 为挂载在当前位置 | HTMLElement \| () => HTMLElement \| Selectors \| false | body | | | headerStyle | 用于设置 Drawer 头部的样式 | CSSProperties | - | | -| height | 高度, 在 `placement` 为 `top` 或 `bottom` 时使用 | string \| number | 378 | | +| height | 高度,在 `placement` 为 `top` 或 `bottom` 时使用 | string \| number | 378 | | | keyboard | 是否支持键盘 esc 关闭 | boolean | true | | | mask | 是否展示遮罩 | boolean | true | | | maskClosable | 点击蒙层是否允许关闭 | boolean | true | | diff --git a/components/dropdown/index.zh-CN.md b/components/dropdown/index.zh-CN.md index 0d2e12f4cb..f9911a85ac 100644 --- a/components/dropdown/index.zh-CN.md +++ b/components/dropdown/index.zh-CN.md @@ -58,7 +58,7 @@ demo: | overlayClassName | 下拉根元素的类名称 | string | - | | | overlayStyle | 下拉根元素的样式 | CSSProperties | - | | | placement | 菜单弹出位置:`bottom` `bottomLeft` `bottomRight` `top` `topLeft` `topRight` | string | `bottomLeft` | | -| trigger | 触发下拉的行为, 移动端不支持 hover | Array<`click`\|`hover`\|`contextMenu`> | \[`hover`] | | +| trigger | 触发下拉的行为,移动端不支持 hover | Array<`click`\|`hover`\|`contextMenu`> | \[`hover`] | | | open | 菜单是否显示,小于 4.23.0 使用 `visible`([为什么?](/docs/react/faq#弹层类组件为什么要统一至-open-属性)) | boolean | - | 4.23.0 | | onOpenChange | 菜单显示状态改变时调用,点击菜单按钮导致的消失不会触发。小于 4.23.0 使用 `onVisibleChange`([为什么?](/docs/react/faq#弹层类组件为什么要统一至-open-属性)) | (open: boolean) => void | - | 4.23.0 | diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index d6fd426a21..f8dff3bcde 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -477,7 +477,7 @@ New in `5.8.0`. Accept configuration parameters. When `strict` is `true`, only t #### FilterFunc -用于过滤一些字段值,`meta` 会返回字段相关信息。例如可以用来获取仅被用户修改过的值等等。 +To filter certain field values, `meta` will provide information related to the fields. For example, it can be used to retrieve values that have only been modified by the user, and so on. ```tsx type FilterFunc = (meta: { touched: boolean; validating: boolean }) => boolean; diff --git a/components/image/index.zh-CN.md b/components/image/index.zh-CN.md index 4b4669867a..ffbac88e77 100644 --- a/components/image/index.zh-CN.md +++ b/components/image/index.zh-CN.md @@ -42,7 +42,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*LVQ3R5JjjJEAAA | alt | 图像描述 | string | - | 4.6.0 | | fallback | 加载失败容错地址 | string | - | 4.6.0 | | height | 图像高度 | string \| number | - | 4.6.0 | -| placeholder | 加载占位, 为 `true` 时使用默认占位 | ReactNode | - | 4.6.0 | +| placeholder | 加载占位,为 `true` 时使用默认占位 | ReactNode | - | 4.6.0 | | preview | 预览参数,为 `false` 时禁用 | boolean \| [PreviewType](#previewtype) | true | 4.6.0 [PreviewType](#previewyype):4.7.0 | | src | 图片地址 | string | - | 4.6.0 | | width | 图像宽度 | string \| number | - | 4.6.0 | diff --git a/components/list/index.zh-CN.md b/components/list/index.zh-CN.md index 8e7aa1c5e6..f532377310 100644 --- a/components/list/index.zh-CN.md +++ b/components/list/index.zh-CN.md @@ -43,11 +43,11 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*tBzwQ7raKX8AAA | footer | 列表底部 | ReactNode | - | | | grid | 列表栅格配置 | [object](#list-grid-props) | - | | | header | 列表头部 | ReactNode | - | | -| itemLayout | 设置 `List.Item` 布局, 设置成 `vertical` 则竖直样式显示, 默认横排 | string | - | | +| itemLayout | 设置 `List.Item` 布局,设置成 `vertical` 则竖直样式显示,默认横排 | string | - | | | loading | 当卡片内容还在加载中时,可以用 `loading` 展示一个占位 | boolean \| [object](/components/spin-cn#api) ([更多](https://github.com/ant-design/ant-design/issues/8659)) | false | | | loadMore | 加载更多 | ReactNode | - | | | locale | 默认文案设置,目前包括空数据文案 | object | {emptyText: `暂无数据`} | | -| pagination | 对应的 `pagination` 配置, 设置 false 不显示 | boolean \| object | false | | +| pagination | 对应的 `pagination` 配置,设置 false 不显示 | boolean \| object | false | | | renderItem | 当使用 dataSource 时,可以用 `renderItem` 自定义渲染列表项 | (item) => ReactNode | - | | | rowKey | 当 `renderItem` 自定义渲染列表项有效时,自定义每一行的 `key` 的获取方式 | `keyof` T \| (item: T) => `React.Key` | `"key"` | | | size | list 的尺寸 | `default` \| `large` \| `small` | `default` | | @@ -81,8 +81,8 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*tBzwQ7raKX8AAA | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | -| actions | 列表操作组,根据 `itemLayout` 的不同, 位置在卡片底部或者最右侧 | Array<ReactNode> | - | | -| extra | 额外内容, 通常用在 `itemLayout` 为 `vertical` 的情况下, 展示右侧内容; `horizontal` 展示在列表元素最右侧 | ReactNode | - | | +| actions | 列表操作组,根据 `itemLayout` 的不同,位置在卡片底部或者最右侧 | Array<ReactNode> | - | | +| extra | 额外内容,通常用在 `itemLayout` 为 `vertical` 的情况下,展示右侧内容; `horizontal` 展示在列表元素最右侧 | ReactNode | - | | ### List.Item.Meta diff --git a/components/message/index.zh-CN.md b/components/message/index.zh-CN.md index 9fcf97ac22..d2d6a2cfc8 100644 --- a/components/message/index.zh-CN.md +++ b/components/message/index.zh-CN.md @@ -107,7 +107,7 @@ message.config({ | --- | --- | --- | --- | --- | | duration | 默认自动关闭延时,单位秒 | number | 3 | | | getContainer | 配置渲染节点的输出位置,但依旧为全屏展示 | () => HTMLElement | () => document.body | | -| maxCount | 最大显示数, 超过限制时,最早的消息会被自动关闭 | number | - | | +| maxCount | 最大显示数,超过限制时,最早的消息会被自动关闭 | number | - | | | prefixCls | 消息节点的 className 前缀 | string | `ant-message` | 4.5.0 | | rtl | 是否开启 RTL 模式 | boolean | false | | | top | 消息距离顶部的位置 | number | 8 | | diff --git a/components/modal/index.zh-CN.md b/components/modal/index.zh-CN.md index 1cc62dd224..6f79fd8c46 100644 --- a/components/modal/index.zh-CN.md +++ b/components/modal/index.zh-CN.md @@ -77,7 +77,7 @@ demo: #### 注意 -- `` 默认关闭后状态不会自动清空, 如果希望每次打开都是新内容,请设置 `destroyOnClose`。 +- `` 默认关闭后状态不会自动清空,如果希望每次打开都是新内容,请设置 `destroyOnClose`。 - `` 和 Form 一起配合使用时,设置 `destroyOnClose` 也不会在 Modal 关闭时销毁表单字段数据,需要设置 `
`。 - `Modal.method()` RTL 模式仅支持 hooks 用法。 @@ -105,7 +105,7 @@ demo: | closeIcon | 自定义关闭图标。5.7.0:设置为 `null` 或 `false` 时隐藏关闭按钮 | boolean \| ReactNode | <CloseOutlined /> | | | content | 内容 | ReactNode | - | | | footer | 底部内容,当不需要默认底部按钮时,可以设为 `footer: null` | ReactNode | - | 5.1.0 | -| getContainer | 指定 Modal 挂载的 HTML 节点, false 为挂载在当前 dom | HTMLElement \| () => HTMLElement \| Selectors \| false | document.body | | +| getContainer | 指定 Modal 挂载的 HTML 节点,false 为挂载在当前 dom | HTMLElement \| () => HTMLElement \| Selectors \| false | document.body | | | icon | 自定义图标 | ReactNode | <ExclamationCircleFilled /> | | | keyboard | 是否支持键盘 esc 关闭 | boolean | true | | | mask | 是否展示遮罩 | boolean | true | | diff --git a/components/notification/index.zh-CN.md b/components/notification/index.zh-CN.md index cc84cfccd8..dc249152b5 100644 --- a/components/notification/index.zh-CN.md +++ b/components/notification/index.zh-CN.md @@ -76,7 +76,7 @@ config 参数如下: | placement | 弹出位置,可选 `top` `topLeft` `topRight` `bottom` `bottomLeft` `bottomRight` | string | `topRight` | | | rtl | 是否开启 RTL 模式 | boolean | false | | | top | 消息从顶部弹出时,距离顶部的位置,单位像素 | number | 24 | | -| maxCount | 最大显示数, 超过限制时,最早的消息会被自动关闭 | number | - | 4.17.0 | +| maxCount | 最大显示数,超过限制时,最早的消息会被自动关闭 | number | - | 4.17.0 | ### 全局配置 @@ -108,7 +108,7 @@ notification.config({ | placement | 弹出位置,可选 `top` `topLeft` `topRight` `bottom` `bottomLeft` `bottomRight` | string | `topRight` | | | rtl | 是否开启 RTL 模式 | boolean | false | | | top | 消息从顶部弹出时,距离顶部的位置,单位像素 | number | 24 | | -| maxCount | 最大显示数, 超过限制时,最早的消息会被自动关闭 | number | - | 4.17.0 | +| maxCount | 最大显示数,超过限制时,最早的消息会被自动关闭 | number | - | 4.17.0 | ## 主题变量(Design Token) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 94068a1f03..2df3e5f436 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -69,7 +69,7 @@ Common props ref:[Common props](/docs/react/common-props) | dropdownRender | Customize dropdown content | (originNode: ReactNode) => ReactNode | - | | | dropdownStyle | The style of dropdown menu | CSSProperties | - | | | fieldNames | Customize node label, value, options,groupLabel field name | object | { label: `label`, value: `value`, options: `options`, groupLabel: `label` } | 4.17.0 (`groupLabel` added in 5.6.0) | -| filterOption | If true, filter options by input, if function, filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded. [Example](#select-demo-search) | boolean \| function(inputValue, option) | true | | +| filterOption | If true, filter options by input, if function, filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded | boolean \| function(inputValue, option) | true | | | filterSort | Sort function for search options sorting, see [Array.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)'s compareFunction | (optionA: Option, optionB: Option) => number | - | 4.9.0 | | getPopupContainer | Parent Node which the selector should be rendered to. Default to `body`. When position issues happen, try to modify it into scrollable content and position it relative. [Example](https://codesandbox.io/s/4j168r7jw0) | function(triggerNode) | () => document.body | | | labelInValue | Whether to embed label in value, turn the format of value from `string` to { value: string, label: ReactNode } | boolean | false | | diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md index c85414db13..9b84bb7bdd 100644 --- a/components/table/index.zh-CN.md +++ b/components/table/index.zh-CN.md @@ -173,7 +173,7 @@ const columns = [ | --- | --- | --- | --- | --- | | align | 设置列的对齐方式 | `left` \| `right` \| `center` | `left` | | | className | 列样式类名 | string | - | | -| colSpan | 表头列合并,设置为 0 时,不渲染 | number | - | | +| colSpan | 表头列合并,设置为 0 时,不渲染 | number | - | | | dataIndex | 列数据在数据项中对应的路径,支持通过数组查询嵌套路径 | string \| string\[] | - | | | defaultFilteredValue | 默认筛选值 | string\[] | - | | | filterResetToDefaultFilteredValue | 点击重置按钮的时候,是否恢复默认筛选值 | boolean | false | | diff --git a/components/typography/index.en-US.md b/components/typography/index.en-US.md index 8a7e6a5b86..a65157ad27 100644 --- a/components/typography/index.en-US.md +++ b/components/typography/index.en-US.md @@ -40,7 +40,7 @@ Common props ref:[Common props](/docs/react/common-props) | delete | Deleted line style | boolean | false | | | disabled | Disabled content | boolean | false | | | editable | If editable. Can control edit state when is object | boolean \| [editable](#editable) | false | [editable](#editable) | -| ellipsis | Display ellipsis when text overflows,can't configure expandable、rows and onExpand by using object. Diff with Typography.Paragraph, Text do not have 100% width style which means it will fix width on the first ellipsis. If you want to have responsive ellipsis, please set width manually | boolean \| [Omit](#ellipsis) | false | [ellipsis](#ellipsis) | +| ellipsis | Display ellipsis when text overflows, can't configure expandable、rows and onExpand by using object. Diff with Typography.Paragraph, Text do not have 100% width style which means it will fix width on the first ellipsis. If you want to have responsive ellipsis, please set width manually | boolean \| [Omit](#ellipsis) | false | [ellipsis](#ellipsis) | | keyboard | Keyboard style | boolean | false | 4.3.0 | | mark | Marked style | boolean | false | | | onClick | Set the handler to handle click event | (event) => void | - | | diff --git a/components/upload/index.zh-CN.md b/components/upload/index.zh-CN.md index 08f2ede318..d3203de4ab 100644 --- a/components/upload/index.zh-CN.md +++ b/components/upload/index.zh-CN.md @@ -50,7 +50,7 @@ demo: | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | -| accept | 接受上传的文件类型, 详见 [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) | string | - | | +| accept | 接受上传的文件类型,详见 [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) | string | - | | | action | 上传的地址 | string \| (file) => Promise<string> | - | | | beforeUpload | 上传文件之前的钩子,参数为上传的文件,若返回 `false` 则停止上传。支持返回一个 Promise 对象,Promise 对象 reject 时则停止上传,resolve 时开始上传( resolve 传入 `File` 或 `Blob` 对象则上传 resolve 传入对象);也可以返回 `Upload.LIST_IGNORE`,此时列表中将不展示此文件。 **注意:IE9 不支持该方法** | (file, fileList) => boolean \| Promise<File> \| `Upload.LIST_IGNORE` | - | | | customRequest | 通过覆盖默认的上传行为,可以自定义自己的上传实现 | function | - | | diff --git a/docs/blog/github-actions-workflow.zh-CN.md b/docs/blog/github-actions-workflow.zh-CN.md index 98c8628ffc..2fd30a1be1 100644 --- a/docs/blog/github-actions-workflow.zh-CN.md +++ b/docs/blog/github-actions-workflow.zh-CN.md @@ -115,7 +115,7 @@ Ant Design 团队非常鼓励社区参与 Pull Request (PR),可以先阅读 [ 团队对于单元测试的态度非常谨慎,需要考虑组件在 React 的各个主要版本上的运行情况(通常为 16、17 和 18 这三个版本)如果是主分支的更新,还需要考虑项目构建产物(通常为 `dist`、`es` 以及 `lib`)在三个 React 版本上的运行情况。目前已知 Ant Design 所有组件共有 4000 多个测试用例。为了进一步提高测试效率,我们还搭建了分布式测试环境。 -所有这些功能都得益于 GitHub Action 的 [Job 矩阵策略](https://docs.github.com/zh/actions/using-jobs/using-a-matrix-for-your-jobs) ,使得我们可以一次性配置多个 Job 来执行测试任务, [Normal test](https://github.com/ant-design/ant-design/blob/40fb753349c4f2be314c91dbb7e6f1a960097c19/.github/workflows/test.yml#L141-L223) 和 [Module test](https://github.com/ant-design/ant-design/blob/40fb753349c4f2be314c91dbb7e6f1a960097c19/.github/workflows/test.yml#L294-L357) 是 Ant Design 利用矩阵策略测试相关的 Job。 +所有这些功能都得益于 GitHub Action 的 [Job 矩阵策略](https://docs.github.com/zh/actions/using-jobs/using-a-matrix-for-your-jobs) ,使得我们可以一次性配置多个 Job 来执行测试任务,[Normal test](https://github.com/ant-design/ant-design/blob/40fb753349c4f2be314c91dbb7e6f1a960097c19/.github/workflows/test.yml#L141-L223) 和 [Module test](https://github.com/ant-design/ant-design/blob/40fb753349c4f2be314c91dbb7e6f1a960097c19/.github/workflows/test.yml#L294-L357) 是 Ant Design 利用矩阵策略测试相关的 Job。 ## 网站部署 @@ -224,7 +224,7 @@ jobs: ### 添加缓存 -为了进一步优化安装依赖速度,我们可以添加 pnpm 缓存, 然后发起一个 Pull Request 验证上一个步骤: +为了进一步优化安装依赖速度,我们可以添加 pnpm 缓存,然后发起一个 Pull Request 验证上一个步骤: ```yml # ... diff --git a/docs/blog/testing-migrate.zh-CN.md b/docs/blog/testing-migrate.zh-CN.md index d8ac5cfd45..82f4f10cf5 100644 --- a/docs/blog/testing-migrate.zh-CN.md +++ b/docs/blog/testing-migrate.zh-CN.md @@ -4,7 +4,7 @@ date: 2022-12-20 author: li-jia-nan,zombieJ --- -大家好,我是 **[@li-jia-nan](https://github.com/li-jia-nan)**。也是前几个月新加入 antd 的 Collaborator, 有幸作为 Collaborators 之一,我开发了 **[FloatButton](/components/float-button-cn)** 组件和 **[QRCode](/components/qrcode-cn)** 组件,以及一些其它维护工作,下面分享一下 antd 测试库迁移的那些事儿~ +大家好,我是 **[@li-jia-nan](https://github.com/li-jia-nan)**。也是前几个月新加入 antd 的 Collaborator,有幸作为 Collaborators 之一,我开发了 **[FloatButton](/components/float-button-cn)** 组件和 **[QRCode](/components/qrcode-cn)** 组件,以及一些其它维护工作,下面分享一下 antd 测试库迁移的那些事儿~ ## 引言 diff --git a/docs/react/contributing.en-US.md b/docs/react/contributing.en-US.md index 971c8f9c3c..20980de91f 100644 --- a/docs/react/contributing.en-US.md +++ b/docs/react/contributing.en-US.md @@ -55,7 +55,7 @@ The core team is monitoring for pull requests. We will review your pull request 3. If you've fixed a bug or added code that should be tested, add tests! 4. Ensure the test suite passes (npm run test). Tip: `npm test -- --watch TestName` is helpful in development. 5. Run `npm test -- -u` to update the [jest snapshots](https://jestjs.io/docs/snapshot-testing) and commit these changes as well (if there are any updates). -6. Ensure the UI change passes `npm run test-image`,Run `npm run test-image -- -u` to update UI snapshots and commit these changes as well (if there are any updates), **UI test base on [Docker](https://docs.docker.com/get-docker/), need download the corresponding installation according to the platform** +6. Ensure the UI change passes `npm run test-image`, Run `npm run test-image -- -u` to update UI snapshots and commit these changes as well (if there are any updates), **UI test base on [Docker](https://docs.docker.com/get-docker/), need download the corresponding installation according to the platform** 7. Make sure your code lints (npm run lint). Tip: Lint runs automatically when you `git commit` (Use [Git Hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)). 8. Finally, please make sure that all GitHub CI checks pass, if they fail, you can click `detail` to enter the details to view the reason. diff --git a/docs/react/faq.en-US.md b/docs/react/faq.en-US.md index ebcdc03abe..252c467ed2 100644 --- a/docs/react/faq.en-US.md +++ b/docs/react/faq.en-US.md @@ -157,7 +157,7 @@ In a real world development, you may need a `YearPicker`, `MonthRangePicker` or Like [the explanation](https://github.com/ant-design/ant-design/issues/11586#issuecomment-429189877) explains, this is because `` does not equal the `YearPicker`, nor is `` equal to `MonthRangePicker`. The `mode` property was added to support [showing time picker panel in DatePicker](https://github.com/ant-design/ant-design/issues/5190) in antd 3.0, which simply controls the displayed panel, and won't change the original date picking behavior of `DatePicker`/`RangePicker` (for instance you will still need to click date cell to finish selection in a `DatePicker`, whatever the `mode` is). -Likewise,`disabledDate` [cannot work on year/month panels](https://github.com/ant-design/ant-design/issues/9008#issuecomment-358554118) of ``, but only on cells of date panel. +Likewise, `disabledDate` [cannot work on year/month panels](https://github.com/ant-design/ant-design/issues/9008#issuecomment-358554118) of ``, but only on cells of date panel. ### Workaround diff --git a/docs/react/migrate-less-variables.en-US.md b/docs/react/migrate-less-variables.en-US.md index ec39acb61e..145da10f74 100644 --- a/docs/react/migrate-less-variables.en-US.md +++ b/docs/react/migrate-less-variables.en-US.md @@ -563,7 +563,7 @@ export default App; | `@tooltip-bg` | `colorBgSpotlight` | Global Token | | `@tooltip-arrow-width` | `sizePopupArrow` | Global Token | | `@tooltip-distance` | `marginXXS` | Global Token | -| `@tooltip-arrow-color` | - | same as `@tooltip-bg`,Deprecated | +| `@tooltip-arrow-color` | - | same as `@tooltip-bg`, Deprecated | | `@tooltip-border-radius` | `borderRadius` | Global Token | ### Transfer diff --git a/docs/spec/data-format.en-US.md b/docs/spec/data-format.en-US.md index 78e753223c..2cdbdfb735 100644 --- a/docs/spec/data-format.en-US.md +++ b/docs/spec/data-format.en-US.md @@ -55,7 +55,7 @@ We suggest the following formats: | Format | How and when to use | Examples | | --- | --- | --- | | Year, month, day | In China `YYYY-MM-DD` format is used by default. | 2019-12-08 | -| Terms | When a special term containing a date expressed with numbers,display a `.` between the month and the day, and quotation marks should be added before and after the term. | 6.1 children's day | +| Terms | When a special term containing a date expressed with numbers, display a `.` between the month and the day, and quotation marks should be added before and after the term. | 6.1 children's day | | Date range | Put `~` or `-` between the date or time range (space is required before and after). | 2018-12-08 ~ 2019-12-07 | **Time Format:** @@ -77,7 +77,7 @@ To the users, the accuracy of time is not so important as the immediacy of the i | Less than 1 hour | N minutes ago | | Within 24 hours | N hours ago | | Longer than 24 hours | `MM-DD HH:MM`, e.g. "12-08 08:00" | -| Longer than one year | `YYYY-MM-DD HH:MM`,e.g. "2019-12-08 08:00" | +| Longer than one year | `YYYY-MM-DD HH:MM`, e.g. "2019-12-08 08:00" | ### Data Redaction diff --git a/docs/spec/navigation.zh-CN.md b/docs/spec/navigation.zh-CN.md index 10d87f0e30..5f66dcf3fb 100644 --- a/docs/spec/navigation.zh-CN.md +++ b/docs/spec/navigation.zh-CN.md @@ -101,7 +101,7 @@ skip: true -步骤多于 2 步时使用, 但建议不超过 5 步,每阶段文字长度保持在 12 个字符以内。 +步骤多于 2 步时使用,但建议不超过 5 步,每阶段文字长度保持在 12 个字符以内。 ### 竖向流程步骤条