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

61 lines
1.6 KiB
JavaScript
Raw Normal View History

2023-10-17 16:02:55 +08:00
import defprops from '../../libs/config/props';
export default {
props: {
// 内置图标名称,或图片路径,建议绝对路径
icon: {
type: String,
default: defprops.empty.icon
},
// 提示文字
text: {
type: String,
default: defprops.empty.text
},
// 文字颜色
textColor: {
type: String,
default: defprops.empty.textColor
},
// 文字大小
textSize: {
type: [String, Number],
default: defprops.empty.textSize
},
// 图标的颜色
iconColor: {
type: String,
default: defprops.empty.iconColor
},
// 图标的大小
iconSize: {
type: [String, Number],
default: defprops.empty.iconSize
},
// 选择预置的图标类型
mode: {
type: String,
default: defprops.empty.mode
},
// 图标宽度单位px
width: {
type: [String, Number],
default: defprops.empty.width
},
// 图标高度单位px
height: {
type: [String, Number],
default: defprops.empty.height
},
// 是否显示组件
show: {
type: Boolean,
default: defprops.empty.show
},
// 组件距离上一个元素之间的距离默认px单位
marginTop: {
type: [String, Number],
default: defprops.empty.marginTop
}
}
}