diff --git a/docs/mobile/api/pull-down-refresh.en-US.md b/docs/mobile/api/pull-down-refresh.en-US.md new file mode 100644 index 0000000000..4c9cc59ab2 --- /dev/null +++ b/docs/mobile/api/pull-down-refresh.en-US.md @@ -0,0 +1,15 @@ +--- +title: PullDownRefresh +description: Used to quickly refresh the page information. The refresh can be the whole page or part of the page. +spline: base +isComponent: true +toc: false +--- + +## Code Demo + +### Top PullDownRefresh + +Since page scrolling cannot be monitored within the component, the page needs to get the component instance and pass the page scrolling event to the component. + +{{ base }} diff --git a/docs/mobile/api/pull-down-refresh.md b/docs/mobile/api/pull-down-refresh.md index def615f79c..6e2a243732 100644 --- a/docs/mobile/api/pull-down-refresh.md +++ b/docs/mobile/api/pull-down-refresh.md @@ -6,18 +6,10 @@ isComponent: true toc: false --- -### 顶部下拉刷新 - -下拉刷新会触发 refresh 事件 - -通过 `loadingTexts` 属性可以自定义多个状态的文案,默认值为 ['下拉刷新', '松手刷新', '正在刷新', '刷新完成'] +## 代码演示 -通过 `loadingBarHeight` 属性可以自定义下拉区域高度,默认为 50px - -通过 `maxBarHeight` 属性可以自定义最大下拉高度,默认为 80px - -通过 `loadingProps` 属性可以自定义 loading 图标的属性 +### 顶部下拉刷新 -通过 `refreshTimeout` 属性可以自定义加载超时时间,默认为 3000ms。超时后会触发 timeout 事件,可传入回调函数 +由于组件内无法监听页面滚动,需要由页面获取组件实例,并将页面滚动事件传递到组件。 {{ base }} diff --git a/style/mobile/components/_index.less b/style/mobile/components/_index.less index ae8ed7f5ea..e557a8533b 100644 --- a/style/mobile/components/_index.less +++ b/style/mobile/components/_index.less @@ -84,7 +84,7 @@ @import "./back-top/_index.less"; -@import "./pull-down-refresh/_index.less"; +// @import "./pull-down-refresh/_index.less"; @import "./result/_index.less";