diff --git a/apps/showcase/doc/tree/LazyDoc.vue b/apps/showcase/doc/tree/LazyDoc.vue index d080e1361..95916cc45 100644 --- a/apps/showcase/doc/tree/LazyDoc.vue +++ b/apps/showcase/doc/tree/LazyDoc.vue @@ -282,34 +282,7 @@ const initiateNodes2 = () => { ]; }; <\/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/apps/showcase/doc/treeselect/FilterDoc.vue b/apps/showcase/doc/treeselect/FilterDoc.vue index 6cad9c6a6..38faef2a2 100644 --- a/apps/showcase/doc/treeselect/FilterDoc.vue +++ b/apps/showcase/doc/treeselect/FilterDoc.vue @@ -23,12 +23,14 @@ export default { selectedValue: null, code: { basic: ` - + + `, options: ` @@ -50,8 +52,9 @@ export default { `, composition: ` diff --git a/apps/showcase/doc/treeselect/LazyDoc.vue b/apps/showcase/doc/treeselect/LazyDoc.vue new file mode 100644 index 000000000..054997ad6 --- /dev/null +++ b/apps/showcase/doc/treeselect/LazyDoc.vue @@ -0,0 +1,358 @@ + + + diff --git a/apps/showcase/pages/treeselect/index.vue b/apps/showcase/pages/treeselect/index.vue index 4b3525623..3b40295cc 100644 --- a/apps/showcase/pages/treeselect/index.vue +++ b/apps/showcase/pages/treeselect/index.vue @@ -18,6 +18,7 @@ import FilterDoc from '@/doc/treeselect/FilterDoc.vue'; import DisabledDoc from '@/doc/treeselect/DisabledDoc.vue'; import FilledDoc from '@/doc/treeselect/FilledDoc.vue'; import FloatLabelDoc from '@/doc/treeselect/FloatLabelDoc.vue'; +import LazyDoc from '@/doc/treeselect/LazyDoc.vue'; import IftaLabelDoc from '@/doc/treeselect/IftaLabelDoc.vue'; import ImportDoc from '@/doc/treeselect/ImportDoc.vue'; import InvalidDoc from '@/doc/treeselect/InvalidDoc.vue'; @@ -49,6 +50,11 @@ export default { label: 'Checkbox', component: CheckboxDoc }, + { + id: 'lazy', + label: 'Lazy', + component: LazyDoc + }, { id: 'filter', label: 'Filter',