mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-06 20:49:46 +08:00
[improvement] List: add loading slot (#1804)
This commit is contained in:
parent
44c8b2c492
commit
82b037a576
@ -161,7 +161,7 @@ export default {
|
||||
|
||||
| Name | Description | slot-scope |
|
||||
|-----------|-----------|-----------|
|
||||
| default | Custom label | - |
|
||||
| - | Custom label | - |
|
||||
| icon | Custom icon | checked: whether to be checked |
|
||||
|
||||
### Checkbox Methods
|
||||
|
@ -164,7 +164,7 @@ export default {
|
||||
|
||||
| 名称 | 说明 | slot-scope |
|
||||
|-----------|-----------|-----------|
|
||||
| default | 自定义文本 | - |
|
||||
| - | 自定义文本 | - |
|
||||
| icon | 自定义图标 | checked: 是否为选中状态 |
|
||||
|
||||
### Checkbox 方法
|
||||
|
@ -96,7 +96,7 @@ export default {
|
||||
|
||||
| name | Description |
|
||||
|-----------|-----------|
|
||||
| default | Content |
|
||||
| - | Content |
|
||||
| value | Custom value |
|
||||
| icon | Custom icon |
|
||||
| title | Custom title |
|
||||
|
@ -108,7 +108,7 @@ export default {
|
||||
|
||||
| 名称 | 说明 |
|
||||
|-----------|-----------|
|
||||
| default | 面板内容 |
|
||||
| - | 面板内容 |
|
||||
| value | 自定义显示内容 |
|
||||
| icon | 自定义`icon` |
|
||||
| title | 自定义`title` |
|
||||
|
@ -72,3 +72,10 @@ Use ref to get list instance and call instance methods
|
||||
| Name | Attribute | Return value | Description |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| check | - | - | Check scroll position |
|
||||
|
||||
### Slot
|
||||
|
||||
| Name | Description |
|
||||
|-----------|-----------|
|
||||
| - | List content |
|
||||
| loading | Custom loading tips |
|
||||
|
@ -72,3 +72,10 @@ export default {
|
||||
| 方法名 | 参数 | 返回值 | 介绍 |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| check | - | - | 检查当前的滚动位置,若已滚动至底部,则会触发 load 事件 |
|
||||
|
||||
### Slot
|
||||
|
||||
| 名称 | 说明 |
|
||||
|-----------|-----------|
|
||||
| - | 列表内容 |
|
||||
| loading | 自定义底部加载中提示 |
|
||||
|
@ -83,6 +83,6 @@ Use slot to add custom contents.
|
||||
|
||||
| Name | Description |
|
||||
|-----------|-----------|
|
||||
| default | Custom left content |
|
||||
| - | Custom left content |
|
||||
| top | Custom top content |
|
||||
| tip | Custom tips |
|
||||
|
@ -83,6 +83,6 @@ Vue.use(SubmitBar);
|
||||
|
||||
| 名称 | 说明 |
|
||||
|-----------|-----------|
|
||||
| default | 自定义订单栏左侧内容 |
|
||||
| - | 自定义订单栏左侧内容 |
|
||||
| top | 自定义订单栏上方内容 |
|
||||
| tip | 提示文案中的额外操作和说明 |
|
||||
|
@ -7,7 +7,7 @@
|
||||
<van-info :info="info" />
|
||||
</div>
|
||||
<div :class="b('text')">
|
||||
<slot :active="active"/>
|
||||
<slot :active="active" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -51,4 +51,4 @@ Vue.use(Tag);
|
||||
|
||||
| 名称 | 说明 |
|
||||
|-----------|-----------|
|
||||
| default | 自定义 Tag 显示内容 |
|
||||
| - | 自定义 Tag 显示内容 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user