|
@@ -64,7 +64,7 @@ function openDocPage() {
|
|
|
<span>一个易于使用的为其它组件赋予动画效果的组件。</span>
|
|
<span>一个易于使用的为其它组件赋予动画效果的组件。</span>
|
|
|
<Button type="link" @click="openDocPage">查看文档</Button>
|
|
<Button type="link" @click="openDocPage">查看文档</Button>
|
|
|
</template>
|
|
</template>
|
|
|
- <Card title="使用指令" :body-style="{ minHeight: '5rem' }">
|
|
|
|
|
|
|
+ <Card title="使用指令" :styles="{ body: { minHeight: '5rem' } }">
|
|
|
<template #extra>
|
|
<template #extra>
|
|
|
<Button type="primary" @click="showCard1 = false">重载</Button>
|
|
<Button type="primary" @click="showCard1 = false">重载</Button>
|
|
|
</template>
|
|
</template>
|
|
@@ -82,7 +82,7 @@ function openDocPage() {
|
|
|
<Card
|
|
<Card
|
|
|
class="mt-2"
|
|
class="mt-2"
|
|
|
title="使用组件(将内部作为一个整体添加动画)"
|
|
title="使用组件(将内部作为一个整体添加动画)"
|
|
|
- :body-style="{ padding: 0 }"
|
|
|
|
|
|
|
+ :styles="{ body: { padding: 0 } }"
|
|
|
>
|
|
>
|
|
|
<div class="relative flex-center min-h-32 gap-2 overflow-hidden">
|
|
<div class="relative flex-center min-h-32 gap-2 overflow-hidden">
|
|
|
<Motion
|
|
<Motion
|
|
@@ -147,7 +147,7 @@ function openDocPage() {
|
|
|
<Card
|
|
<Card
|
|
|
class="mt-2"
|
|
class="mt-2"
|
|
|
title="分组动画(每个子元素都会应用相同的独立动画)"
|
|
title="分组动画(每个子元素都会应用相同的独立动画)"
|
|
|
- :body-style="{ padding: 0 }"
|
|
|
|
|
|
|
+ :styles="{ body: { padding: 0 } }"
|
|
|
>
|
|
>
|
|
|
<div class="relative flex-center min-h-32 gap-2 overflow-hidden">
|
|
<div class="relative flex-center min-h-32 gap-2 overflow-hidden">
|
|
|
<MotionGroup v-bind="motionGroupProps" v-if="showCard3">
|
|
<MotionGroup v-bind="motionGroupProps" v-if="showCard3">
|