Aurora Admin v1.2.0: 79 components x 5 ends, doc site, contracts batch 1, playground, regression, deploy ready
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="aa-pt">
|
||||
<div class="aa-pt-bar">
|
||||
<button class="aa-btn" @click="trigger('fade')">淡入</button>
|
||||
<button class="aa-btn" @click="trigger('slide')">滑动</button>
|
||||
<button class="aa-btn" @click="trigger('zoom')">缩放</button>
|
||||
</div>
|
||||
<div class="aa-pt-stage" :class="animClass" :key="token">{{ text }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
text: { type: String, default: '当前页面内容' }
|
||||
});
|
||||
const animClass = ref('aa-pt-fade');
|
||||
const token = ref(0);
|
||||
|
||||
function trigger(type) {
|
||||
animClass.value = 'aa-pt-' + type;
|
||||
token.value++;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style src="./PageTransition.css"></style>
|
||||
Reference in New Issue
Block a user