TraceabilityAPP/node_modules/uview-plus/components/u-loadmore/props.js

96 lines
2.7 KiB
JavaScript
Raw Normal View History

2023-10-17 16:02:55 +08:00
import defprops from '../../libs/config/props';
export default {
props: {
// 组件状态loadmore-加载前的状态loading-加载中的状态nomore-没有更多的状态
status: {
type: String,
default: defprops.loadmore.status
},
// 组件背景色
bgColor: {
type: String,
default: defprops.loadmore.bgColor
},
// 是否显示加载中的图标
icon: {
type: Boolean,
default: defprops.loadmore.icon
},
// 字体大小
fontSize: {
type: [String, Number],
default: defprops.loadmore.fontSize
},
// 图标大小
iconSize: {
type: [String, Number],
default: defprops.loadmore.iconSize
},
// 字体颜色
color: {
type: String,
default: defprops.loadmore.color
},
// 加载中状态的图标spinner-花朵状图标circle-圆圈状semicircle-半圆
loadingIcon: {
type: String,
default: defprops.loadmore.loadingIcon
},
// 加载前的提示语
loadmoreText: {
type: String,
default: defprops.loadmore.loadmoreText
},
// 加载中提示语
loadingText: {
type: String,
default: defprops.loadmore.loadingText
},
// 没有更多的提示语
nomoreText: {
type: String,
default: defprops.loadmore.nomoreText
},
// 在“没有更多”状态下,是否显示粗点
isDot: {
type: Boolean,
default: defprops.loadmore.isDot
},
// 加载中图标的颜色
iconColor: {
type: String,
default: defprops.loadmore.iconColor
},
// 上边距
marginTop: {
type: [String, Number],
default: defprops.loadmore.marginTop
},
// 下边距
marginBottom: {
type: [String, Number],
default: defprops.loadmore.marginBottom
},
// 高度单位px
height: {
type: [String, Number],
default: defprops.loadmore.height
},
// 是否显示左边分割线
line: {
type: Boolean,
default: defprops.loadmore.line
},
// 线条颜色
lineColor: {
type: String,
default: defprops.loadmore.lineColor
},
// 是否虚线true-虚线false-实线
dashed: {
type: Boolean,
default: defprops.loadmore.dashed
}
}
}