Skip to content

Commit f593672

Browse files
committed
docs: add missing errorBtnText slot option in API page
1 parent bb4edd1 commit f593672

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/api/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ The `infinite` event will be fired if the scroll distance is less than this valu
2727

2828
This property is used to set the loading animation, you can choose one from the internal spinners that you like, you can also customize it with a [named slot](#spinner-2) that called `spinner`.
2929

30+
- See also: [Configure Load Messages](../guide/configure-load-msg.md)
31+
3032
### direction
3133

3234
- Type: `String`
@@ -179,6 +181,18 @@ Configure the default content for `error` slot.
179181

180182
- See also: [Slots - error](#error)
181183

184+
### slots.errorBtnText
185+
186+
- Type: `String`
187+
- Default: `Retry`
188+
- Details:
189+
190+
Configure the default text for retry button in the default `error` slot. Please note, it won't work if you customize the `error` slot, you need to configure retry button yourself.
191+
192+
- See also:
193+
- [Slots - error](#error)
194+
- [Configure Load Messages](../guide/configure-load-msg.md)
195+
182196
### slots.spinner
183197

184198
- Type: `String` | `Vue Component`

docs/zh/api/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ sidebar: auto
2727

2828
此选项用于设置加载动画,你可以从内置选项中选择一个你喜欢的,你也可以通过名为 `spinner`[具名插槽](#spinner-2)来进行自定义。
2929

30+
- 参考:[配置加载提示](../guide/configure-load-msg.md)
31+
3032
### direction
3133

3234
- 类型:`String`
@@ -179,6 +181,18 @@ sidebar: auto
179181

180182
- 参考:[插槽 - error](#error)
181183

184+
### slots.errorBtnText
185+
186+
- 类型:`String`
187+
- 默认值:`Retry`
188+
- 详细:
189+
190+
配置默认 `error` 插槽中重试按钮的显示文案。请注意,如果你自定义了 `error` 插槽的内容,此配置将没有任何作用,你需要自行创建重试按钮。
191+
192+
- 参考:
193+
- [插槽 - error](#error)
194+
- [配置加载提示](../guide/configure-load-msg.md)
195+
182196
### slots.spinner
183197

184198
- 类型:`String` | `Vue Component`

0 commit comments

Comments
 (0)