import { PropType, CSSProperties } from 'vue'; import { commonProps } from "../../common" export type LoadMoreStatus = 'loadmore' | 'loading' | 'nomore' export const loadMoreProps = { // 加载状态 // loadmore -> 加载更多 // loading -> 加载中 // nomore -> 没有更多 status: { type: String, default: 'loadmore' }, // 显示加载图标 loadingIcon: { type: Boolean, default: true }, // 加载图标样式,参考tn-loading组件的加载类型 loadingIconType: { type: String, default: 'circle' }, // 在圆圈加载状态下,圆圈的颜色 loadingIconColor: { type: String, default: '' }, // 显示的文字 loadText: { type: Object as PropType<{ loadmore: string; loading: string; nomore: string }>, default() { return { loadmore: '加载更多', loading: '正在加载...', nomore: '没有更多了' } } }, // 是否显示粗点,在nomore状态下生效 dot: { type: Boolean, default: false }, // 自定义组件样式 customStyle: { type: Object as PropType, default() { return {} } }, ...commonProps }