-
Notifications
You must be signed in to change notification settings - Fork 54
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
Showing
4 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
...es/products/tdesign-mobile-vue/src/pull-down-refresh/pull-down-refresh.en-US.md
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
### PullDownRefresh Props | ||
|
||
name | type | default | description | required | ||
-- | -- | -- | -- | -- | ||
loadingBarHeight | String / Number | 50 | \- | N | ||
loadingProps | Object | - | Typescript:`LoadingProps`,[Loading API Documents](./loading?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/pull-down-refresh/type.ts) | N | ||
loadingTexts | Array | [] | Typescript:`string[]` | N | ||
maxBarHeight | String / Number | 80 | \- | N | ||
refreshTimeout | Number | 3000 | \- | N | ||
value | Boolean | false | `v-model` and `v-model:value` is supported | N | ||
defaultValue | Boolean | false | uncontrolled property | N | ||
onChange | Function | | Typescript:`(value: boolean) => void`<br/> | N | ||
onRefresh | Function | | Typescript:`() => void`<br/> | N | ||
onScrolltolower | Function | | Typescript:`() => void`<br/> | N | ||
onTimeout | Function | | Typescript:`() => void`<br/> | N | ||
|
||
### PullDownRefresh Events | ||
|
||
name | params | description | ||
-- | -- | -- | ||
change | `(value: boolean)` | \- | ||
refresh | \- | \- | ||
scrolltolower | \- | \- | ||
timeout | \- | \- |
27 changes: 27 additions & 0 deletions
27
packages/products/tdesign-mobile-vue/src/pull-down-refresh/pull-down-refresh.md
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
:: BASE_DOC :: | ||
|
||
## API | ||
### PullDownRefresh Props | ||
|
||
名称 | 类型 | 默认值 | 说明 | 必传 | ||
-- | -- | -- | -- | -- | ||
loadingBarHeight | String / Number | 50 | 加载中下拉高度,如果值为数字则单位是:'px' | N | ||
loadingProps | Object | - | 加载loading样式。TS 类型:`LoadingProps`,[Loading API Documents](./loading?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/pull-down-refresh/type.ts) | N | ||
loadingTexts | Array | [] | 提示语,组件内部默认值为 ['下拉刷新', '松手刷新', '正在刷新', '刷新完成']。TS 类型:`string[]` | N | ||
maxBarHeight | String / Number | 80 | 最大下拉高度,如果值为数字则单位是:'px' | N | ||
refreshTimeout | Number | 3000 | 刷新超时时间 | N | ||
value | Boolean | false | 组件状态,值为 `true` 表示下拉状态,值为 `false` 表示收起状态。支持语法糖 `v-model` 或 `v-model:value` | N | ||
defaultValue | Boolean | false | 组件状态,值为 `true` 表示下拉状态,值为 `false` 表示收起状态。非受控属性 | N | ||
onChange | Function | | TS 类型:`(value: boolean) => void`<br/>下拉或收起时触发,用户手势往下滑动触发下拉状态,手势松开触发收起状态 | N | ||
onRefresh | Function | | TS 类型:`() => void`<br/>结束下拉时触发 | N | ||
onScrolltolower | Function | | TS 类型:`() => void`<br/>滚动到页面底部时触发 | N | ||
onTimeout | Function | | TS 类型:`() => void`<br/>刷新超时触发 | N | ||
|
||
### PullDownRefresh Events | ||
|
||
名称 | 参数 | 描述 | ||
-- | -- | -- | ||
change | `(value: boolean)` | 下拉或收起时触发,用户手势往下滑动触发下拉状态,手势松开触发收起状态 | ||
refresh | \- | 结束下拉时触发 | ||
scrolltolower | \- | 滚动到页面底部时触发 | ||
timeout | \- | 刷新超时触发 |
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