Skip to content

Commit

Permalink
feat: useTemplateRef
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Oct 20, 2024
1 parent ca2dcc0 commit 3d75dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ definePage({
})
const search = ref('')
const dialogDelete = ref<InstanceType<typeof DialogConfirm> | null>(null)
const dialogDelete = useTemplateRef('dialogDelete')
function showDialogDelete(name: string) {
dialogDelete.value
?.open('Are you sure you want to delete this dessert?')
Expand Down

0 comments on commit 3d75dd0

Please sign in to comment.