From 24f8919d5852ffa744fb0a5b2c698b3d010eff79 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 23 Oct 2021 22:55:01 +0800 Subject: [PATCH] docs: fix square typo (#9714) * docs: fix square typo * chore: revert cell props --- src/circle/README.md | 2 +- src/circle/README.zh-CN.md | 2 +- src/grid/test/__snapshots__/index.spec.js.snap | 2 +- src/grid/test/index.spec.js | 2 +- src/search/index.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/circle/README.md b/src/circle/README.md index 291b624e7..85cf8efef 100644 --- a/src/circle/README.md +++ b/src/circle/README.md @@ -116,7 +116,7 @@ export default { | speed | Animate speed(rate/s) | _number \| string_ | `0` | | text | Text | _string_ | - | | stroke-width | Stroke width | _number \| string_ | `40` | -| stroke-linecap | Stroke linecap,can be set to `sqaure` `butt` | _string_ | `round` | +| stroke-linecap | Stroke linecap,can be set to `square` `butt` | _string_ | `round` | | clockwise | Whether to be clockwise | _boolean_ | `true` | ### Slots diff --git a/src/circle/README.zh-CN.md b/src/circle/README.zh-CN.md index 09c505eb4..2d630abe7 100644 --- a/src/circle/README.zh-CN.md +++ b/src/circle/README.zh-CN.md @@ -127,7 +127,7 @@ export default { | speed | 动画速度(单位为 rate/s) | _number \| string_ | `0` | | text | 文字 | _string_ | - | | stroke-width | 进度条宽度 | _number \| string_ | `40` | -| stroke-linecap | 进度条端点的形状,可选值为`sqaure` `butt` | _string_ | `round` | +| stroke-linecap | 进度条端点的形状,可选值为`square` `butt` | _string_ | `round` | | clockwise | 是否顺时针增加 | _boolean_ | `true` | ### Slots diff --git a/src/grid/test/__snapshots__/index.spec.js.snap b/src/grid/test/__snapshots__/index.spec.js.snap index 92eb96f44..63ff70f4f 100644 --- a/src/grid/test/__snapshots__/index.spec.js.snap +++ b/src/grid/test/__snapshots__/index.spec.js.snap @@ -22,7 +22,7 @@ exports[`render icon-slot 1`] = ` `; -exports[`sqaure and set gutter 1`] = ` +exports[`square and set gutter 1`] = `
diff --git a/src/grid/test/index.spec.js b/src/grid/test/index.spec.js index 78f15a3ed..e211457bc 100644 --- a/src/grid/test/index.spec.js +++ b/src/grid/test/index.spec.js @@ -19,7 +19,7 @@ test('click grid item', () => { expect(onClick).toHaveBeenCalledTimes(1); }); -test('sqaure and set gutter', () => { +test('square and set gutter', () => { const wrapper = mount({ template: ` diff --git a/src/search/index.tsx b/src/search/index.tsx index 2068174cc..6f604a953 100644 --- a/src/search/index.tsx +++ b/src/search/index.tsx @@ -13,7 +13,7 @@ import { DefaultSlots, ScopedSlot } from '../utils/types'; const [createComponent, bem, t] = createNamespace('search'); export type SearchProps = { - shape: 'sqaure' | 'round'; + shape: 'square' | 'round'; value?: string; label?: string; leftIcon: string;