ListFooter

ListFooter 底部加载更多

代码示例

import { BfListFooter } from '@bud-fe/react-taro-ui';
import { View } from '@tarojs/components';
import React from 'react';
export default () => {
return (
<>
<View className="group-title">loading=true</View>
<BfListFooter loading />
<View className="group-title">isFinished=true</View>
<BfListFooter isFinished />
<View className="group-title">error=true</View>
<BfListFooter
error
onErrorItemClick={() => {
console.log('重新加载数据');
}}
/>
</>
);
};

API

属性名描述类型默认值
loading是否显示加载中booleanfalse
isFinished是否显示加载完成booleanfalse
error是否显示加载失败booleanfalse
onErrorItemClick加载失败时,点击的回调() => void--
dumi10:24