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`] = ` </div> `; -exports[`sqaure and set gutter 1`] = ` +exports[`square and set gutter 1`] = ` <div class="van-grid" style="padding-left: 10rem;"> <div class="van-grid-item van-grid-item--square" style="flex-basis: 50%; padding-top: 50%;"> <div class="van-grid-item__content van-grid-item__content--center van-grid-item__content--square van-grid-item__content--surround van-hairline" style="right: 10rem; bottom: 10rem; height: auto;"></div> 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: ` <van-grid square :column-num="2" gutter="10rem"> 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;