From 2e6a7b99d06635b6e64fb52df3e1fe02f258ea63 Mon Sep 17 00:00:00 2001 From: ShuGang Zhou Date: Tue, 30 May 2023 21:17:09 +0800 Subject: [PATCH] docs(IndexBar): update props type (#11923) --- packages/vant/src/index-bar/README.md | 2 +- packages/vant/src/index-bar/README.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vant/src/index-bar/README.md b/packages/vant/src/index-bar/README.md index d0b9f423d..13ceef0b8 100644 --- a/packages/vant/src/index-bar/README.md +++ b/packages/vant/src/index-bar/README.md @@ -71,7 +71,7 @@ export default { | Attribute | Description | Type | Default | | --- | --- | --- | --- | -| index-list | Index List | _string[] \| number[]_ | `A-Z` | +| index-list | Index List | _(string \| number)[]_ | `A-Z` | | z-index | z-index | _number \| string_ | `1` | | sticky | Whether to enable anchor sticky top | _boolean_ | `true` | | sticky-offset-top | Anchor offset top when sticky | _number_ | `0` | diff --git a/packages/vant/src/index-bar/README.zh-CN.md b/packages/vant/src/index-bar/README.zh-CN.md index 48203a615..c5169ba3c 100644 --- a/packages/vant/src/index-bar/README.zh-CN.md +++ b/packages/vant/src/index-bar/README.zh-CN.md @@ -75,7 +75,7 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | -| index-list | 索引字符列表 | _string[] \| number[]_ | `A-Z` | +| index-list | 索引字符列表 | _(string \| number)[]_ | `A-Z` | | z-index | z-index 层级 | _number \| string_ | `1` | | sticky | 是否开启锚点自动吸顶 | _boolean_ | `true` | | sticky-offset-top | 锚点自动吸顶时与顶部的距离 | _number_ | `0` |