From 280ee0c8888ec621774d410599e8b6949c1606c9 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 9 Nov 2023 11:28:04 +0300 Subject: [PATCH] Updated tabmenu docs --- doc/tabmenu/BasicDoc.vue | 234 ++------------------------- doc/tabmenu/CommandDoc.vue | 147 +++++++++++++++++ doc/tabmenu/ControlledDoc.vue | 113 +++++-------- doc/tabmenu/RouterDoc.vue | 279 ++++---------------------------- doc/tabmenu/TemplateDoc.vue | 94 +++++++++++ pages/tabmenu.vue | 57 ------- pages/tabmenu/Calendar.vue | 9 -- pages/tabmenu/Documentation.vue | 9 -- pages/tabmenu/Edit.vue | 9 -- pages/tabmenu/Settings.vue | 9 -- pages/tabmenu/index.vue | 68 +++++++- 11 files changed, 398 insertions(+), 630 deletions(-) create mode 100644 doc/tabmenu/CommandDoc.vue create mode 100644 doc/tabmenu/TemplateDoc.vue delete mode 100755 pages/tabmenu.vue delete mode 100755 pages/tabmenu/Calendar.vue delete mode 100755 pages/tabmenu/Documentation.vue delete mode 100755 pages/tabmenu/Edit.vue delete mode 100755 pages/tabmenu/Settings.vue diff --git a/doc/tabmenu/BasicDoc.vue b/doc/tabmenu/BasicDoc.vue index 8148b975a..153dcaf7e 100644 --- a/doc/tabmenu/BasicDoc.vue +++ b/doc/tabmenu/BasicDoc.vue @@ -3,17 +3,7 @@

TabMenu requires a collection of menuitems as its model.

- - - - +
@@ -22,42 +12,20 @@ export default { data() { return { - active: 0, items: [ - { label: 'Home', icon: 'pi pi-fw pi-home', route: '/tabmenu/' }, - { label: 'Calendar', icon: 'pi pi-fw pi-calendar', route: '/tabmenu/calendar' }, - { label: 'Edit', icon: 'pi pi-fw pi-pencil', route: '/tabmenu/edit' }, - { label: 'Documentation', icon: 'pi pi-fw pi-file', route: '/tabmenu/documentation' }, - { label: 'Settings', icon: 'pi pi-fw pi-cog', route: '/tabmenu/settings' } + { label: 'Dashboard', icon: 'pi pi-home' }, + { label: 'Transactions', icon: 'pi pi-chart-line' }, + { label: 'Products', icon: 'pi pi-list' }, + { label: 'Messages', icon: 'pi pi-inbox' } ], code: { basic: ` - - - - + `, options: ` @@ -65,43 +33,13 @@ export default { export default { data() { return { - active: 0, items: [ - { - label: 'Home', - icon: 'pi pi-fw pi-home', - route: '/' - }, - { - label: 'Calendar', - icon: 'pi pi-fw pi-calendar', - route: '/calendar' - }, - { - label: 'Edit', - icon: 'pi pi-fw pi-pencil', - route: '/edit' - }, - { - label: 'Documentation', - icon: 'pi pi-fw pi-file', - route: '/documentation' - }, - { - label: 'Settings', - icon: 'pi pi-fw pi-cog', - route: '/settings' - } + { label: 'Dashboard', icon: 'pi pi-home' }, + { label: 'Transactions', icon: 'pi pi-chart-line' }, + { label: 'Products', icon: 'pi pi-list' }, + { label: 'Messages', icon: 'pi pi-inbox' } ] } - }, - watch: { - $route() { - this.active = this.items.findIndex((item) => this.$route.path === this.$router.resolve(item.route).path); - } - }, - mounted() { - this.active = this.items.findIndex((item) => this.$route.path === this.$router.resolve(item.route).path); } } <\/script> @@ -109,161 +47,23 @@ export default { composition: ` diff --git a/doc/tabmenu/CommandDoc.vue b/doc/tabmenu/CommandDoc.vue new file mode 100644 index 000000000..360c59d82 --- /dev/null +++ b/doc/tabmenu/CommandDoc.vue @@ -0,0 +1,147 @@ + + + diff --git a/doc/tabmenu/ControlledDoc.vue b/doc/tabmenu/ControlledDoc.vue index c18d14460..0c5ed9845 100644 --- a/doc/tabmenu/ControlledDoc.vue +++ b/doc/tabmenu/ControlledDoc.vue @@ -1,9 +1,14 @@