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.
75 lines
1.3 KiB
75 lines
1.3 KiB
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
var props = require('../../../utils/props.js');
|
|
|
|
const messageTypes = ["success", "info", "warning", "error"];
|
|
const messageProps = props.buildProps({
|
|
customClass: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
center: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
dangerouslyUseHTMLString: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
duration: {
|
|
type: Number,
|
|
default: 3e3
|
|
},
|
|
icon: {
|
|
type: props.definePropType([String, Object]),
|
|
default: ""
|
|
},
|
|
id: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
message: {
|
|
type: props.definePropType([String, Object]),
|
|
default: ""
|
|
},
|
|
onClose: {
|
|
type: props.definePropType(Function),
|
|
required: false
|
|
},
|
|
showClose: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
type: {
|
|
type: String,
|
|
values: messageTypes,
|
|
default: "info"
|
|
},
|
|
offset: {
|
|
type: Number,
|
|
default: 20
|
|
},
|
|
zIndex: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
grouping: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
repeatNum: {
|
|
type: Number,
|
|
default: 1
|
|
}
|
|
});
|
|
const messageEmits = {
|
|
destroy: () => true
|
|
};
|
|
|
|
exports.messageEmits = messageEmits;
|
|
exports.messageProps = messageProps;
|
|
exports.messageTypes = messageTypes;
|
|
//# sourceMappingURL=message.js.map
|