mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Tree CheckBox demo fixed
This commit is contained in:
parent
1419e1a7d5
commit
c8ac695f05
1 changed files with 14 additions and 13 deletions
|
@ -35,21 +35,22 @@ export default {
|
||||||
import { NodeService } from '@/service/NodeService';
|
import { NodeService } from '@/service/NodeService';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
nodes: null
|
nodes: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
NodeService.getTreeNodes().then((data) => (this.nodes = data));
|
NodeService.getTreeNodes().then((data) => (this.nodes = data));
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onNodeSelect(node) {
|
onNodeSelect(node) {
|
||||||
this.$toast.add({ severity: 'success', summary: 'Node Selected', detail: node.label, life: 3000 });
|
this.$toast.add({ severity: 'success', summary: 'Node Selected', detail: node.label, life: 3000 });
|
||||||
},
|
},
|
||||||
onNodeUnselect(node) {
|
onNodeUnselect(node) {
|
||||||
this.$toast.add({ severity: 'success', summary: 'Node Unselected', detail: node.label, life: 3000 });
|
this.$toast.add({ severity: 'success', summary: 'Node Unselected', detail: node.label, life: 3000 });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
<\/script>`,
|
<\/script>`,
|
||||||
composition: `
|
composition: `
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue