hongluan-ui
Version:
Hongluan Component Library for Vue 3
74 lines (71 loc) • 1.39 kB
JavaScript
import '../../../utils/index.mjs';
import { buildProp, definePropType } from '../../../utils/vue/props/runtime.mjs';
const notificationTypes = [
"success",
"info",
"warning",
"error",
"danger"
];
const notificationProps = {
customClass: {
type: String,
default: ""
},
dangerouslyUseHTMLString: Boolean,
duration: {
type: Number,
default: 4500
},
iconClass: {
type: String,
default: ""
},
id: {
type: String,
default: ""
},
message: buildProp({
type: definePropType([String, Object]),
default: ""
}),
icon: buildProp({
type: definePropType(Object)
}),
offset: {
type: Number,
default: 0
},
onClick: buildProp({
type: definePropType(Function),
default: () => void 0
}),
onClose: buildProp({
type: definePropType(Function),
required: true
}),
position: buildProp({
type: String,
values: ["top-right", "top-left", "bottom-right", "bottom-left"],
default: "top-right"
}),
showClose: {
type: Boolean,
default: true
},
title: {
type: String,
default: ""
},
type: buildProp({
type: String,
values: [...notificationTypes, ""],
default: ""
}),
zIndex: Number
};
const notificationEmits = {
destroy: () => true
};
export { notificationEmits, notificationProps, notificationTypes };
//# sourceMappingURL=notification.mjs.map