mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
DynamicDialog demo typo fixes
This commit is contained in:
parent
80b5aaefd3
commit
39613b7621
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ const showProducts = () => {
|
|||
const emit = defineEmits(['onCancel', 'onSave'])
|
||||
|
||||
function buttonClick() {
|
||||
emit('onCancel', {user: 'primetime'});
|
||||
emit('onCancel', {user: 'primetime'});
|
||||
}
|
||||
<\/script>
|
||||
`
|
||||
|
|
|
@ -35,7 +35,7 @@ import { inject, onMounted } from "vue";
|
|||
const dialogRef = inject('dialogRef');
|
||||
|
||||
onMounted(() => {
|
||||
const params = this.dialogRef.data; // {user: 'primetime'}
|
||||
const params = dialogRef.value.data; // {user: 'primetime'}
|
||||
})
|
||||
`
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue