diff --git a/src/dialog/README.md b/src/dialog/README.md index a49bee8c4..d3ab72284 100644 --- a/src/dialog/README.md +++ b/src/dialog/README.md @@ -164,7 +164,7 @@ export default { | lockScroll | Whether to lock body scroll | _boolean_ | `true` | | allowHtml | Whether to allow HTML rendering in message | _boolean_ | `false` | | beforeClose | Callback function before close | _(action) => boolean \| Promise_ | - | -| transition | Transition, equivalent to `name` prop of [transtion](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | - | +| transition | Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | - | | teleport | Return the mount node for Dialog | _string \| Element_ | `body` | ### Props @@ -192,7 +192,7 @@ export default { | lock-scroll | Whether to lock background scroll | _boolean_ | `true` | | allow-html | Whether to allow HTML rendering in message | _boolean_ | `false` | | before-close | Callback function before close | _(action) => boolean \| Promise_ | - | -| transition | Transition, equivalent to `name` prop of [transtion](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | - | +| transition | Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | - | | teleport | Return the mount node for Dialog | _string \| Element_ | - | ### Events diff --git a/src/dialog/README.zh-CN.md b/src/dialog/README.zh-CN.md index ffec46637..60793f36a 100644 --- a/src/dialog/README.zh-CN.md +++ b/src/dialog/README.zh-CN.md @@ -191,7 +191,7 @@ export default { | lockScroll | 是否锁定背景滚动 | _boolean_ | `true` | | allowHtml | 是否允许 message 内容中渲染 HTML | _boolean_ | `false` | | beforeClose | 关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise | _(action) => boolean \| Promise_ | - | -| transition | 动画类名,等价于 [transtion](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | - | +| transition | 动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | - | | teleport | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | _string \| Element_ | `body` | ### Props @@ -221,7 +221,7 @@ export default { | lock-scroll | 是否锁定背景滚动 | _boolean_ | `true` | | allow-html | 是否允许 message 内容中渲染 HTML | _boolean_ | `false` | | before-close | 关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise | _(action) => boolean \| Promise_ | - | -| transition | 动画类名,等价于 [transtion](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | - | +| transition | 动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | - | | teleport | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | _string \| Element_ | - | ### Events diff --git a/src/image-preview/README.md b/src/image-preview/README.md index 6e26dce5a..c2fc55757 100644 --- a/src/image-preview/README.md +++ b/src/image-preview/README.md @@ -145,7 +145,7 @@ export default { | closeable | Whether to show close icon | _boolean_ | `false` | | closeIcon | Close icon name | _string_ | `clear` | | closeIconPosition | Close icon position,can be set to `top-left` `bottom-left` `bottom-right` | _string_ | `top-right` | -| transition `v3.0.8` | Transition, equivalent to `name` prop of [transtion](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | `van-fade` | +| transition `v3.0.8` | Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | `van-fade` | | overlay-style `v3.0.8` | Custom overlay style | _object_ | - | | teleport | Return the mount node for ImagePreview | _string \| Element_ | - | @@ -167,7 +167,7 @@ export default { | closeable | Whether to show close icon | _boolean_ | `false` | | close-icon | Close icon name | _string_ | `clear` | | close-icon-position | Close icon position,can be set to `top-left` `bottom-left` `bottom-right` | _string_ | `top-right` | -| transition `v3.0.8` | Transition, equivalent to `name` prop of [transtion](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | `van-fade` | +| transition `v3.0.8` | Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | `van-fade` | | overlay-style `v3.0.8` | Custom overlay style | _object_ | - | | teleport | Return the mount node for ImagePreview | _string \| Element_ | - | diff --git a/src/image-preview/README.zh-CN.md b/src/image-preview/README.zh-CN.md index dd0881b03..0a7576962 100644 --- a/src/image-preview/README.zh-CN.md +++ b/src/image-preview/README.zh-CN.md @@ -176,7 +176,7 @@ export default { | closeable | 是否显示关闭图标 | _boolean_ | `false` | | closeIcon | 关闭图标名称或图片链接 | _string_ | `clear` | | closeIconPosition | 关闭图标位置,可选值为 `top-left`
`bottom-left` `bottom-right` | _string_ | `top-right` | -| transition `v3.0.8` | 动画类名,等价于 [transtion](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | `van-fade` | +| transition `v3.0.8` | 动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | `van-fade` | | overlay-style `v3.0.8` | 自定义遮罩层样式 | _object_ | - | | teleport | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | _string \| Element_ | - | @@ -200,7 +200,7 @@ export default { | closeable | 是否显示关闭图标 | _boolean_ | `false` | | close-icon | 关闭图标名称或图片链接 | _string_ | `clear` | | close-icon-position | 关闭图标位置,可选值为 `top-left`
`bottom-left` `bottom-right` | _string_ | `top-right` | -| transition `v3.0.8` | 动画类名,等价于 [transtion](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | `van-fade` | +| transition `v3.0.8` | 动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | `van-fade` | | overlay-style `v3.0.8` | 自定义遮罩层样式 | _object_ | - | | teleport | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | _string \| Element_ | - | diff --git a/src/popup/README.md b/src/popup/README.md index 8879ce88d..0d2f567e8 100644 --- a/src/popup/README.md +++ b/src/popup/README.md @@ -136,7 +136,7 @@ export default { | closeable | Whether to show close icon | _boolean_ | `false` | | close-icon | Close icon name | _string_ | `cross` | | close-icon-position | Close Icon Position,can be set to `top-left` `bottom-left` `bottom-right` | _string_ | `top-right` | -| transition | Transition, equivalent to `name` prop of [transtion](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | - | +| transition | Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | - | | transition-appear | Whether to apply transition on initial render | _boolean_ | `false` | | teleport | Return the mount node for Popup | _string \| Element_ | - | | safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `false` | diff --git a/src/popup/README.zh-CN.md b/src/popup/README.zh-CN.md index a3a30f8e2..1b5db6d2f 100644 --- a/src/popup/README.zh-CN.md +++ b/src/popup/README.zh-CN.md @@ -140,7 +140,7 @@ export default { | closeable | 是否显示关闭图标 | _boolean_ | `false` | | close-icon | 关闭[图标名称](#/zh-CN/icon)或图片链接 | _string_ | `cross` | | close-icon-position | 关闭图标位置,可选值为 `top-left`
`bottom-left` `bottom-right` | _string_ | `top-right` | -| transition | 动画类名,等价于 [transtion](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | - | +| transition | 动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的 `name` 属性 | _string_ | - | | transition-appear | 是否在初始渲染时启用过渡动画 | _boolean_ | `false` | | teleport | 指定挂载的节点 | _string \| Element_ | - | | safe-area-inset-bottom | 是否开启[底部安全区适配](#/zh-CN/advanced-usage#di-bu-an-quan-qu-gua-pei) | _boolean_ | `false` | diff --git a/src/stepper/Stepper.tsx b/src/stepper/Stepper.tsx index c5beea081..05f100954 100644 --- a/src/stepper/Stepper.tsx +++ b/src/stepper/Stepper.tsx @@ -193,13 +193,13 @@ export default defineComponent({ input.value = formatted; } - // perfer number type + // prefer number type const isNumeric = formatted === String(+formatted); setValue(isNumeric ? +formatted : formatted); }; const onFocus = (event: Event) => { - // readonly not work in lagacy mobile safari + // readonly not work in legacy mobile safari if (props.disableInput) { inputRef.value?.blur(); } else { @@ -317,7 +317,7 @@ export default defineComponent({ style={inputStyle.value} disabled={props.disabled} readonly={props.disableInput} - // set keyboard in mordern browers + // set keyboard in modern browsers inputmode={props.integer ? 'numeric' : 'decimal'} placeholder={props.placeholder} aria-valuemax={+props.max} diff --git a/src/toast/README.md b/src/toast/README.md index 93dc7be2f..13bbbbe56 100644 --- a/src/toast/README.md +++ b/src/toast/README.md @@ -172,7 +172,7 @@ Toast.resetDefaultOptions('loading'); | overlayStyle `v3.0.4` | Custom overlay style | _object_ | - | | onOpened | Callback function after opened | _Function_ | - | | onClose | Callback function after close | _Function_ | - | -| transition | Transition, equivalent to `name` prop of [transtion](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | `van-fade` | +| transition | Transition, equivalent to `name` prop of [transition](https://v3.vuejs.org/api/built-in-components.html#transition) | _string_ | `van-fade` | | teleport | Return the mount node for Toast | _string \| Element_ | `body` | ### Less Variables diff --git a/src/toast/README.zh-CN.md b/src/toast/README.zh-CN.md index a5857c4d3..3076c174d 100644 --- a/src/toast/README.zh-CN.md +++ b/src/toast/README.zh-CN.md @@ -181,7 +181,7 @@ Toast.resetDefaultOptions('loading'); | overlayStyle `v3.0.4` | 自定义遮罩层样式 | _object_ | - | | onOpened | 完全展示后的回调函数 | _Function_ | - | | onClose | 关闭时的回调函数 | _Function_ | - | -| transition | 动画类名,等价于 [transtion](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的`name`属性 | _string_ | `van-fade` | +| transition | 动画类名,等价于 [transition](https://v3.cn.vuejs.org/api/built-in-components.html#transition) 的`name`属性 | _string_ | `van-fade` | | teleport | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | _string \| Element_ | `body` | ### 样式变量