Skip to content

Commit bb4edd1

Browse files
committed
docs: add preview link for configure load msg page
1 parent f26648e commit bb4edd1

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

docs/guide/configure-load-msg.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1+
---
2+
previewLink: //jsfiddle.net/PeachScript/94kL0bvs/embedded/result/
3+
---
4+
15
# Configure Load Messages
26

3-
This component provide four different slots use to display different load messages: `spinner`, `no-more`, `no-results`, `error`, you can read more about it in [here](../api/#slots).
7+
This component provide four different slots use to display different load messages: `spinner`, `no-more`, `no-results`, `error`, all the default values are listed in the preview container on the right, you can read more about them in [here](../api/#slots).
8+
9+
## Via Component Prop
10+
11+
Only the `spinner` slot can be configured via the prop, and the set value can only be the built-in spinner type:
12+
13+
``` html
14+
<infinite-loading spinner="spiral"></infinite-loading>
15+
```
16+
17+
You can preview all built-in spinner types on the right, please use other ways if you want to create your own spinner.
418

519
## Via `slot` Sepcial Attribute
620

docs/zh/guide/configure-load-msg.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1+
---
2+
previewLink: //jsfiddle.net/PeachScript/94kL0bvs/embedded/result/
3+
---
4+
15
# 配置加载提示
26

3-
此组件提供了四种不同的插槽用来显示不同的加载提示:`spinner``no-more``no-results``error`,你可以通过[这里](../api/#插槽)了解更多。
7+
此组件提供了四种不同的插槽用来显示不同的加载提示:`spinner``no-more``no-results``error`,所有插槽的默认值都在右边的预览中列出来了,你还可以通过[这里](../api/#插槽)了解更多。
8+
9+
## 通过组件 Prop
10+
11+
只有 `spinner` 插槽可以通过 prop 进行配置,并且此时的设定值只能是内置的动画类型:
12+
13+
``` html
14+
<infinite-loading spinner="spiral"></infinite-loading>
15+
```
16+
17+
你可以在右边预览所有内置加载动画,如果你希望创建自己的加载动画,请使用其他方式。
418

519
## 通过 `slot` 特殊属性
620

0 commit comments

Comments
 (0)