This commit is contained in:
2025-09-19 14:25:20 +08:00
parent 269893a435
commit fbf3f77229
24949 changed files with 2839404 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
import { useDelayedToggleProps } from '../../../hooks/use-delayed-toggle/index.mjs';
import { TypeComponentsMap } from '../../../utils/vue/icon.mjs';
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
import { keysOf } from '../../../utils/objects.mjs';
import { isUndefined } from '../../../utils/types.mjs';
const alertEffects = ["light", "dark"];
const alertProps = buildProps({
title: {
type: String,
default: ""
},
description: {
type: String,
default: ""
},
type: {
type: String,
values: keysOf(TypeComponentsMap),
default: "info"
},
closable: {
type: Boolean,
default: true
},
closeText: {
type: String,
default: ""
},
showIcon: Boolean,
center: Boolean,
effect: {
type: String,
values: alertEffects,
default: "light"
},
...useDelayedToggleProps,
showAfter: Number
});
const alertEmits = {
open: () => true,
close: (evt) => isUndefined(evt) || evt instanceof Event
};
export { alertEffects, alertEmits, alertProps };
//# sourceMappingURL=alert2.mjs.map