Visual demo fixes

This commit is contained in:
Tuğçe Küçükoğlu 2023-09-26 15:14:16 +03:00
parent 50dd991655
commit f534e4a1ad
19 changed files with 95 additions and 47 deletions

View file

@ -21,15 +21,18 @@ this.$dialog.open(ProductListDemo, {
data: {
user: 'primetime'
}
};`
};
`
},
code2: {
basic: `export default {
basic: `
export default {
inject: ['dialogRef'],
mounted:{
const params = this.dialogRef.data; // {user: 'primetime'}
}
}`
}
`
},
code3: {
basic: `
@ -37,17 +40,20 @@ this.$dialog.open(ProductListDemo, {
onClose(options) {
const callbackParams = options.data; // {id: 12}
}
);`
);
`
},
code4: {
basic: `export default {
basic: `
export default {
inject: ['dialogRef'],
methods:{
closeDialog() {
this.dialogRef.close({id: 12});
}
}
}`
}
`
}
};
}