@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
77 lines (76 loc) • 1.34 kB
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const MessageStatusTypes = ["info", "success", "warning", "danger", "loading"];
const messageProps = {
/**
* 消息是否可见 v-model
*/
visible: {
type: Boolean,
default: void 0
},
/**
* 非受控模式,消息是否默认可见
*/
defaultVisible: {
type: Boolean,
default: true
},
/**
* 状态 MessageStatusT
*/
status: {
type: String,
default: "info"
},
/**
* 预置背景(跟随状态)
*/
colorful: {
type: Boolean,
default: false
},
/**
* 消息显示的持续时间,函数式调用时,默认值为3000
*/
duration: {
type: Number
},
/**
* 是否可手动关闭
*/
closable: {
type: Boolean,
default: false
},
/**
* 关闭前的钩子函数
*/
beforeClose: {
type: Function
},
/**
* 消息标题
*/
title: {
type: String
}
};
const messageListProps = {
/**
* 消息列表位置 MessagePositionT
*/
position: {
type: String,
default: "top"
},
/**
* 消息列表销毁前的钩子函数
*/
onDestory: {
type: Function
}
};
exports.MessageStatusTypes = MessageStatusTypes;
exports.messageListProps = messageListProps;
exports.messageProps = messageProps;