mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/node_modules/uview-plus/components/u-notify/props.js

51 lines
1.3 KiB
JavaScript
Raw Normal View History

2023-10-17 16:02:55 +08:00
import defprops from '../../libs/config/props';
export default {
props: {
// 到顶部的距离
top: {
type: [String, Number],
default: defprops.notify.top
},
// 是否展示组件
// show: {
// type: Boolean,
// default: defprops.notify.show
// },
// type主题primarysuccesswarningerror
type: {
type: String,
default: defprops.notify.type
},
// 字体颜色
color: {
type: String,
default: defprops.notify.color
},
// 背景颜色
bgColor: {
type: String,
default: defprops.notify.bgColor
},
// 展示的文字内容
message: {
type: String,
default: defprops.notify.message
},
// 展示时长为0时不消失单位ms
duration: {
type: [String, Number],
default: defprops.notify.duration
},
// 字体大小
fontSize: {
type: [String, Number],
default: defprops.notify.fontSize
},
// 是否留出顶部安全距离(状态栏高度)
safeAreaInsetTop: {
type: Boolean,
default: defprops.notify.safeAreaInsetTop
}
}
}