@tplc/wot
Version:
25 lines (22 loc) • 565 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: makeStringProp('加载失败,点击重试'),
}