UNPKG

@wanghonggan/uv-ui

Version:

uv-ui 破釜沉舟之兼容vue3+2、nvue、app、h5、小程序等多端基于uni-app和uView2.x的生态框架,支持单独导入,开箱即用,利剑出击。

47 lines (46 loc) 880 B
import { getPropsByKey } from "../../libs/config/config"; export default { props: { // 到顶部的距离 top: { type: [String, Number], default: 0 }, // type主题,primary,success,warning,error 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 }, ...getPropsByKey('notify') } }