@opensig/opendesign
Version:
83 lines (82 loc) • 1.49 kB
JavaScript
var Duration = /* @__PURE__ */ ((Duration2) => {
Duration2[Duration2["NORMAL"] = 2e3] = "NORMAL";
Duration2[Duration2["LONG"] = 3500] = "LONG";
return Duration2;
})(Duration || {});
const toastProps = {
/**
* @zh-CN 消息是否可见
* @en-US Message is visible.
*/
visible: {
type: Boolean,
default: void 0
},
/**
* @zh-CN 非受控模式,消息是否默认可见
* @en-US Non-controlled mode, message is visible by default
* @default true
*/
defaultVisible: {
type: Boolean,
default: true
},
/**
* @zh-CN 提示信息
* @en-US Instructional message.
*/
message: {
type: String
},
/**
* @zh-CN 持续时间
* @en-US Duration.
*/
duration: {
type: Number
},
/**
* @zh-CN 长提示
* @en-US Long reminder.
*/
long: {
type: Boolean
},
/**
* @zh-CN 定位方向
* @en-US Determine the direction.
*/
position: {
type: String,
default: "bottom"
},
/**
* @zh-CN 关闭前的钩子函数
* @en-US Hook function before closing
*/
beforeClose: {
type: Function
}
};
const toastListProps = {
/**
* @zh-CN 消息列表位置
* @en-US Position.
*/
position: {
type: String,
default: "bottom"
},
/**
* @zh-CN 消息列表销毁前的钩子函数
* @en-US Hook function before the destruction of the message list.
*/
onDestroy: {
type: Function
}
};
export {
Duration,
toastListProps,
toastProps
};