chore: modify the default route switching animation

This commit is contained in:
vben
2020-10-28 00:41:41 +08:00
parent f65bed72ac
commit 96021fad6d
7 changed files with 16 additions and 15 deletions

View File

@@ -4,9 +4,9 @@
<slot :name="item" v-bind="data" />
</template> -->
<template #default="data">
<g-icon :icon="preIcon" class="mr-1" v-if="preIcon" />
<Icon :icon="preIcon" class="mr-1" v-if="preIcon" />
<slot v-bind="data" />
<g-icon :icon="preIcon" class="ml-1" v-if="postIcon" />
<Icon :icon="postIcon" class="ml-1" v-if="postIcon" />
</template>
</Button>
</template>
@@ -18,10 +18,11 @@
// import { extendSlots } from '/@/utils/helper/tsxHelper';
import { useThrottle } from '/@/hooks/core/useThrottle';
import { isFunction } from '/@/utils/is';
import Icon from '/@/components/Icon';
export default defineComponent({
name: 'AButton',
inheritAttrs: false,
components: { Button },
components: { Button, Icon },
props: {
// 按钮类型
type: {