diff --git a/doc/tree/BasicDoc.vue b/doc/tree/BasicDoc.vue index cb1d65c97..58cd5f839 100644 --- a/doc/tree/BasicDoc.vue +++ b/doc/tree/BasicDoc.vue @@ -54,7 +54,34 @@ const nodes = ref(null); onMounted(() => { NodeService.getTreeNodes().then((data) => (nodes.value = data)); }); -<\/script>` +<\/script>`, + data: ` +{ + key: '0', + label: 'Documents', + data: 'Documents Folder', + icon: 'pi pi-fw pi-inbox', + children: [ + { + key: '0-0', + label: 'Work', + data: 'Work Folder', + icon: 'pi pi-fw pi-cog', + children: [ + { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' }, + { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' } + ] + }, + { + key: '0-1', + label: 'Home', + data: 'Home Folder', + icon: 'pi pi-fw pi-home', + children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }] + } + ] +}, +...` } }; }, diff --git a/doc/tree/ControlledDoc.vue b/doc/tree/ControlledDoc.vue index 5c8a79742..05f5018bb 100644 --- a/doc/tree/ControlledDoc.vue +++ b/doc/tree/ControlledDoc.vue @@ -120,7 +120,34 @@ const expandNode = (node) => { } } }; -<\/script>` +<\/script>`, + data: ` +{ + key: '0', + label: 'Documents', + data: 'Documents Folder', + icon: 'pi pi-fw pi-inbox', + children: [ + { + key: '0-0', + label: 'Work', + data: 'Work Folder', + icon: 'pi pi-fw pi-cog', + children: [ + { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' }, + { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' } + ] + }, + { + key: '0-1', + label: 'Home', + data: 'Home Folder', + icon: 'pi pi-fw pi-home', + children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }] + } + ] +}, +...` } }; }, diff --git a/doc/tree/EventsDoc.vue b/doc/tree/EventsDoc.vue index fdf47a129..4e63827a4 100644 --- a/doc/tree/EventsDoc.vue +++ b/doc/tree/EventsDoc.vue @@ -103,7 +103,34 @@ const onNodeExpand = (node) => { const onNodeCollapse (node) => { toast.add({ severity: 'error', summary: 'Node Collapsed', detail: node.label, life: 3000 }); }; -<\/script>` +<\/script>`, + data: ` +{ + key: '0', + label: 'Documents', + data: 'Documents Folder', + icon: 'pi pi-fw pi-inbox', + children: [ + { + key: '0-0', + label: 'Work', + data: 'Work Folder', + icon: 'pi pi-fw pi-cog', + children: [ + { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' }, + { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' } + ] + }, + { + key: '0-1', + label: 'Home', + data: 'Home Folder', + icon: 'pi pi-fw pi-home', + children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }] + } + ] +}, +...` } }; }, diff --git a/doc/tree/FilterDoc.vue b/doc/tree/FilterDoc.vue index 7c2cfc90d..19773dea6 100644 --- a/doc/tree/FilterDoc.vue +++ b/doc/tree/FilterDoc.vue @@ -108,7 +108,34 @@ const expandNode = (node) => { } } }; -<\/script>` +<\/script>`, + data: ` +{ + key: '0', + label: 'Documents', + data: 'Documents Folder', + icon: 'pi pi-fw pi-inbox', + children: [ + { + key: '0-0', + label: 'Work', + data: 'Work Folder', + icon: 'pi pi-fw pi-cog', + children: [ + { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' }, + { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' } + ] + }, + { + key: '0-1', + label: 'Home', + data: 'Home Folder', + icon: 'pi pi-fw pi-home', + children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }] + } + ] +}, +...` } }; }, diff --git a/doc/tree/LazyDoc.vue b/doc/tree/LazyDoc.vue index d4c01ed2c..327af7a3f 100644 --- a/doc/tree/LazyDoc.vue +++ b/doc/tree/LazyDoc.vue @@ -153,7 +153,34 @@ const initateNodes = () => { } ]; }; -<\/script>` +<\/script>`, + data: ` +{ + key: '0', + label: 'Documents', + data: 'Documents Folder', + icon: 'pi pi-fw pi-inbox', + children: [ + { + key: '0-0', + label: 'Work', + data: 'Work Folder', + icon: 'pi pi-fw pi-cog', + children: [ + { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' }, + { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' } + ] + }, + { + key: '0-1', + label: 'Home', + data: 'Home Folder', + icon: 'pi pi-fw pi-home', + children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }] + } + ] +}, +...` } }; }, diff --git a/doc/tree/TemplateDoc.vue b/doc/tree/TemplateDoc.vue index 3649d33f0..871ca5a59 100644 --- a/doc/tree/TemplateDoc.vue +++ b/doc/tree/TemplateDoc.vue @@ -134,7 +134,34 @@ const nodes = ref([ ] } ]); -<\/script>` +<\/script>`, + data: ` +{ + key: '0', + label: 'Documents', + data: 'Documents Folder', + icon: 'pi pi-fw pi-inbox', + children: [ + { + key: '0-0', + label: 'Work', + data: 'Work Folder', + icon: 'pi pi-fw pi-cog', + children: [ + { key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' }, + { key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' } + ] + }, + { + key: '0-1', + label: 'Home', + data: 'Home Folder', + icon: 'pi pi-fw pi-home', + children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }] + } + ] +}, +...` } }; }