vue-mod-page/src/JumpBtn.vue

21 lines
283 B
Vue
Raw Normal View History

2024-12-19 13:51:07 +08:00
<template>
<div>
<button @click="HandleClick">事件测试</button>
</div>
</template>
<script setup lang='ts'>
const props = defineProps<{
url: string;
}>();
const HandleClick = () => {
alert('Jump To ' + props.url);
}
</script>
<style scoped>
</style>