mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Visual demo fixes
This commit is contained in:
parent
50dd991655
commit
f534e4a1ad
19 changed files with 95 additions and 47 deletions
|
@ -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});
|
||||
}
|
||||
}
|
||||
}`
|
||||
}
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue