-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b197c2
commit 9c4f03d
Showing
5 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
|
||
### List Props | ||
|
||
name | type | default | description | required | ||
-- | -- | -- | -- | -- | ||
asyncLoading | String / Slot / Function | - | Typescript:`string | TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
footer | String / Slot / Function | - | Typescript:`string | TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
header | String / Slot / Function | - | Typescript:`string | TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
asyncLoading | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
footer | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
header | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
onLoadMore | Function | | Typescript:`() => void`<br/> | N | ||
onScroll | Function | | Typescript:`(bottomDistance:number, scrollTop: number)=> void`<br/> | N | ||
onScroll | Function | | Typescript:`(bottomDistance: number, scrollTop: number) => void`<br/> | N | ||
|
||
### List Events | ||
|
||
name | params | description | ||
-- | -- | -- | ||
load-more | \- | \- | ||
scroll | `((bottomDistance:number, scrollTop: number)` | \- | ||
scroll | `(bottomDistance: number, scrollTop: number)` | \- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
|
||
### List Props | ||
|
||
名称 | 类型 | 默认值 | 说明 | 必传 | ||
名称 | 类型 | 默认值 | 描述 | 必传 | ||
-- | -- | -- | -- | -- | ||
asyncLoading | String / Slot / Function | - | 自定义加载中。值为空不显示加载中,值为 'loading' 显示加载中状态,值为 'load-more' 显示加载更多状态。值类型为函数,则表示自定义加载状态呈现内容。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
footer | String / Slot / Function | - | 底部。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
header | String / Slot / Function | - | 头部。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
asyncLoading | String / Slot / Function | - | 自定义加载中。值为空不显示加载中,值为 'loading' 显示加载中状态,值为 'load-more' 显示加载更多状态。值类型为函数,则表示自定义加载状态呈现内容。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
footer | String / Slot / Function | - | 底部。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
header | String / Slot / Function | - | 头部。TS 类型:`string \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N | ||
onLoadMore | Function | | TS 类型:`() => void`<br/>点击加载更多时触发 | N | ||
onScroll | Function | | TS 类型:`(bottomDistance:number, scrollTop: number) => void`<br/>列表滚动时触发,scrollTop 表示顶部滚动距离 | N | ||
onScroll | Function | | TS 类型:`(bottomDistance: number, scrollTop: number) => void`<br/>列表滚动时触发,bottomDistance 表示底部距离;scrollTop 表示顶部滚动距离 | N | ||
|
||
### List Events | ||
|
||
名称 | 参数 | 描述 | ||
-- | -- | -- | ||
load-more | \- | 点击加载更多时触发 | ||
scroll | `(bottomDistance:number, scrollTop: number)` | 列表滚动时触发,bottomDistance 表示与底部的距离;scrollTop 表示顶部滚动距离 | ||
scroll | `(bottomDistance: number, scrollTop: number)` | 列表滚动时触发,bottomDistance 表示底部距离;scrollTop 表示顶部滚动距离 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters