From f323adef973b20b272004ee10ac8fefb9a2c4fe3 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 26 Sep 2024 12:34:13 +0300 Subject: [PATCH] TreeSelect Lazy demo added --- apps/showcase/doc/tree/LazyDoc.vue | 29 +- apps/showcase/doc/treeselect/FilterDoc.vue | 13 +- apps/showcase/doc/treeselect/LazyDoc.vue | 358 +++++++++++++++++++++ apps/showcase/pages/treeselect/index.vue | 6 + 4 files changed, 373 insertions(+), 33 deletions(-) create mode 100644 apps/showcase/doc/treeselect/LazyDoc.vue 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',