From 88559787663836d51910bf1806d12c28e6726b24 Mon Sep 17 00:00:00 2001 From: chouchouji <1305974212@qq.com> Date: Tue, 22 Oct 2024 17:56:33 +0800 Subject: [PATCH] fix(alert): add props default setter --- packages/varlet-ui/src/alert/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/varlet-ui/src/alert/index.ts b/packages/varlet-ui/src/alert/index.ts index 5142acc1bc5..0a837ff743d 100644 --- a/packages/varlet-ui/src/alert/index.ts +++ b/packages/varlet-ui/src/alert/index.ts @@ -1,7 +1,11 @@ import Alert from './Alert.vue' -import { withInstall } from '../utils/components' +import { withInstall, withPropsDefaultsSetter } from '../utils/components' +import { props as alertProps } from './props' withInstall(Alert) +withPropsDefaultsSetter(Alert, alertProps) + +export { alertProps } export const _AlertComponent = Alert