t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
74 lines (73 loc) • 1.25 kB
JavaScript
const e = {
id: {
type: String,
default: () => ""
},
title: {
type: [String, Object],
default: () => ""
},
message: {
type: [String, Object],
default: () => "",
required: !0
},
type: {
type: String,
default: () => "default",
validator: (t) => ["default", "primary", "success", "danger", "warning"].includes(t)
},
close: {
type: Boolean,
default: () => !1
},
duration: {
type: Number,
default: () => 3e3
},
round: {
type: Boolean,
default: () => !1
},
showIcon: {
type: Boolean,
default: () => !0
},
icon: {
type: Object,
default: () => null
},
color: {
type: String,
default: () => ""
},
background: {
type: String,
default: () => ""
},
offset: {
type: Number,
default: () => 20
},
placement: {
type: String,
default: () => "top-right",
validator: (t) => ["top-left", "top-right", "bottom-left", "bottom-right"].includes(t)
},
zIndex: {
type: Number,
default: () => 1e3
},
closeBtn: {
type: [String, Object],
default: () => null
},
closeEnd: {
type: Function,
default: () => null
}
}, l = ["destroy"];
export {
l as Emits,
e as Props
};