DynamicDialog demo typo fixes
parent
80b5aaefd3
commit
39613b7621
|
@ -34,7 +34,7 @@ const showProducts = () => {
|
||||||
const emit = defineEmits(['onCancel', 'onSave'])
|
const emit = defineEmits(['onCancel', 'onSave'])
|
||||||
|
|
||||||
function buttonClick() {
|
function buttonClick() {
|
||||||
emit('onCancel', {user: 'primetime'});
|
emit('onCancel', {user: 'primetime'});
|
||||||
}
|
}
|
||||||
<\/script>
|
<\/script>
|
||||||
`
|
`
|
||||||
|
|
|
@ -35,7 +35,7 @@ import { inject, onMounted } from "vue";
|
||||||
const dialogRef = inject('dialogRef');
|
const dialogRef = inject('dialogRef');
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const params = this.dialogRef.data; // {user: 'primetime'}
|
const params = dialogRef.value.data; // {user: 'primetime'}
|
||||||
})
|
})
|
||||||
`
|
`
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue