uview-plus
Version:
零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。
52 lines (51 loc) • 1.49 kB
JavaScript
import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
props: {
// 到顶部的距离
top: {
type: [String, Number],
default: () => defProps.notify.top
},
// 是否展示组件
// show: {
// type: Boolean,
// default: () => defProps.notify.show
// },
// type主题,primary,success,warning,error
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
}
}
})