dykj-outsource-12123/uni_modules/uview-plus/components/u-notify/props.js
2024-06-28 14:18:30 +08:00

51 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import defProps from '../../libs/config/props.js';
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
}
}
}