DynamicDialog demo typo fixes
parent
80b5aaefd3
commit
39613b7621
|
@ -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…
Reference in New Issue