qa-regulatory-gwj-app/uni_modules/uview-ui/components/u-notify/props.js

50 lines
1.3 KiB
JavaScript
Raw Permalink 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: uni.$u.props.notify.top
},
// 是否展示组件
// show: {
// type: Boolean,
// default: uni.$u.props.notify.show
// },
// type主题primarysuccesswarningerror
type: {
type: String,
default: uni.$u.props.notify.type
},
// 字体颜色
color: {
type: String,
default: uni.$u.props.notify.color
},
// 背景颜色
bgColor: {
type: String,
default: uni.$u.props.notify.bgColor
},
// 展示的文字内容
message: {
type: String,
default: uni.$u.props.notify.message
},
// 展示时长为0时不消失单位ms
duration: {
type: [String, Number],
default: uni.$u.props.notify.duration
},
// 字体大小
fontSize: {
type: [String, Number],
default: uni.$u.props.notify.fontSize
},
// 是否留出顶部安全距离(状态栏高度)
safeAreaInsetTop: {
type: Boolean,
default: uni.$u.props.notify.safeAreaInsetTop
}
}
}