UNPKG

element-plus

Version:

A Component Library for Vue 3

60 lines (57 loc) 1.16 kB
import { TypeComponentsMap } from '../../../utils/vue/icon.mjs'; import { buildProps } from '../../../utils/vue/props/runtime.mjs'; import { keysOf } from '../../../utils/objects.mjs'; const alertEffects = ["light", "dark"]; const alertProps = buildProps({ /** * @description alert title. */ title: { type: String, default: "" }, description: { type: String, default: "" }, /** * @description alert type. */ type: { type: String, values: keysOf(TypeComponentsMap), default: "info" }, /** * @description whether alert can be dismissed. */ closable: { type: Boolean, default: true }, /** * @description text for replacing x button */ closeText: { type: String, default: "" }, /** * @description whether show icon */ showIcon: Boolean, /** * @description should content be placed in center. */ center: Boolean, effect: { type: String, values: alertEffects, default: "light" } }); const alertEmits = { close: (evt) => evt instanceof MouseEvent }; export { alertEffects, alertEmits, alertProps }; //# sourceMappingURL=alert.mjs.map