hongluan-ui
Version:
Hongluan Component Library for Vue 3
80 lines (75 loc) • 1.6 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
require('../../../utils/index.js');
var runtime = require('../../../utils/vue/props/runtime.js');
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: runtime.buildProp({
type: runtime.definePropType([String, Object]),
default: ""
}),
icon: runtime.buildProp({
type: runtime.definePropType(Object)
}),
offset: {
type: Number,
default: 0
},
onClick: runtime.buildProp({
type: runtime.definePropType(Function),
default: () => void 0
}),
onClose: runtime.buildProp({
type: runtime.definePropType(Function),
required: true
}),
position: runtime.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: runtime.buildProp({
type: String,
values: [...notificationTypes, ""],
default: ""
}),
zIndex: Number
};
const notificationEmits = {
destroy: () => true
};
exports.notificationEmits = notificationEmits;
exports.notificationProps = notificationProps;
exports.notificationTypes = notificationTypes;
//# sourceMappingURL=notification.js.map