integrated_traffic_uniapp/uni_modules/uv-notify/components/uv-notify/props.js

45 lines
774 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

export default {
props: {
// 到顶部的距离
top: {
type: [String, Number],
default: 0
},
// type主题primarysuccesswarningerror
type: {
type: String,
default: 'primary'
},
// 字体颜色
color: {
type: String,
default: '#ffffff'
},
// 背景颜色
bgColor: {
type: String,
default: ''
},
// 展示的文字内容
message: {
type: String,
default: ''
},
// 展示时长为0时不消失单位ms
duration: {
type: [String, Number],
default: 3000
},
// 字体大小
fontSize: {
type: [String, Number],
default: 15
},
// 是否留出顶部安全距离(状态栏高度)
safeAreaInsetTop: {
type: Boolean,
default: false
},
...uni.$uv?.props?.notify
}
}