mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Update dynamic demo
This commit is contained in:
parent
18c8c5a726
commit
91873a8ae7
6 changed files with 118 additions and 31 deletions
|
@ -11,9 +11,9 @@ export default {
|
|||
return {
|
||||
code: {
|
||||
basic: `
|
||||
import { h } from 'vue';
|
||||
import Button from 'primevue/button';
|
||||
import { markRaw } from 'vue';
|
||||
import ProductListDemo from './ProductListDemo';
|
||||
import FooterDemo from './FooterDemo';
|
||||
|
||||
export default {
|
||||
methods:{
|
||||
|
@ -31,12 +31,7 @@ export default {
|
|||
modal: true
|
||||
},
|
||||
templates: {
|
||||
footer: () => {
|
||||
return [
|
||||
h(Button, { label: "No", icon: "pi pi-times", onClick: () => dialogRef.close(), class: "p-button-text" }),
|
||||
h(Button, { label: "Yes", icon: "pi pi-check", onClick: () => dialogRef.close(), autofocus: true})
|
||||
]
|
||||
}
|
||||
footer: markRaw(FooterDemo)
|
||||
},
|
||||
onClose: (options) => {
|
||||
const data = options.data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue