refactor: migrate playground deprecated antdv-next APIs

- Modal: destroyOnClose → destroyOnHidden
- Card: body-style → styles.body
- Alert: message prop/slot → title
- Spin: tip → description, wrapper-class-name → classes.root
This commit is contained in:
xingyu4j
2026-05-18 16:35:06 +08:00
parent a1081bf7a6
commit 1e44b87359
7 changed files with 14 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ const loadingV = refAutoReset(false, 3000);
>
<Card title="Antd Spin">
<template #actions>这是Antd 组件库自带的Spin组件演示</template>
<Spin :spinning="spinning" tip="加载中...">
<Spin :spinning="spinning" description="加载中...">
<Button type="primary" @click="spinning = true">显示Spin</Button>
</Spin>
</Card>
@@ -71,9 +71,11 @@ const loadingV = refAutoReset(false, 3000);
title="Vben Spinner"
v-spinning="spinningV"
class="mt-4 overflow-hidden"
:body-style="{
position: 'relative',
overflow: 'hidden',
:styles="{
body: {
position: 'relative',
overflow: 'hidden',
},
}"
>
<template #extra>