feat: 在 typed-router.d.ts 中添加 '$Path' 路由记录信息
This commit is contained in:
@ -1,7 +1,14 @@
|
||||
<script setup lang="ts"></script>
|
||||
<script setup lang="ts">
|
||||
import ToastEventBus from 'primevue/toasteventbus';
|
||||
|
||||
function showToast() {
|
||||
ToastEventBus.emit('add', { severity: 'info', summary: 'Info', detail: 'Message Content', life: 3000 });
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="primevue">
|
||||
<Toast />
|
||||
<InputText />
|
||||
<Select
|
||||
:options="[
|
||||
@ -18,6 +25,6 @@
|
||||
|
||||
<DatePicker dateFormat="dd/mm/yy" />
|
||||
|
||||
<Button>Button</Button>
|
||||
<Button @click="showToast">ToastService</Button>
|
||||
</div>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user