You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
733 B
40 lines
733 B
11 months ago
|
import { TypeComponentsMap } from '../../../utils/icon.mjs';
|
||
|
import { buildProps, keyOf } from '../../../utils/props.mjs';
|
||
|
|
||
|
const alertProps = buildProps({
|
||
|
title: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
description: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
type: {
|
||
|
type: String,
|
||
|
values: keyOf(TypeComponentsMap),
|
||
|
default: "info"
|
||
|
},
|
||
|
closable: {
|
||
|
type: Boolean,
|
||
|
default: true
|
||
|
},
|
||
|
closeText: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
showIcon: Boolean,
|
||
|
center: Boolean,
|
||
|
effect: {
|
||
|
type: String,
|
||
|
values: ["light", "dark"],
|
||
|
default: "light"
|
||
|
}
|
||
|
});
|
||
|
const alertEmits = {
|
||
|
close: (evt) => evt instanceof MouseEvent
|
||
|
};
|
||
|
|
||
|
export { alertEmits, alertProps };
|
||
|
//# sourceMappingURL=alert2.mjs.map
|