wot-design-uni
Version:
一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。
25 lines (22 loc) • 525 B
text/typescript
import type { PropType } from 'vue'
import { baseProps, makeStringProp } from '../common/props'
export type LoadMoreState = 'loading' | 'error' | 'finished'
export const loadmoreProps = {
...baseProps,
/**
* 加载状态,可选值:'loading' | 'error' | 'finished'
*/
state: String as PropType<LoadMoreState>,
/**
* 加载提示文案
*/
loadingText: String,
/**
* 全部加载完的提示文案
*/
finishedText: String,
/**
* 加载失败的提示文案
*/
errorText: String
}