-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: nav drawer add prop for parent menu
- Loading branch information
Showing
3 changed files
with
148 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
import {Meta, Story} from '@storybook/vue3'; | ||
import MyNavbarDrawer from './VNavDrawer.vue'; | ||
import { | ||
RiDashboardLine, | ||
RiStethoscopeLine, | ||
RiFunctionLine, | ||
RiCalendarLine, | ||
RiUserSettingsLine, | ||
RiShoppingCart2Line, | ||
RiImageAddLine, | ||
RiTestTubeLine, | ||
RiHistoryLine, | ||
RiMentalHealthLine, | ||
RiPhoneLine, | ||
} from 'vue-remix-icons'; | ||
|
||
export default { | ||
title: 'Components/SideMenu', | ||
component: MyNavbarDrawer, | ||
argTypes: {}, | ||
args: { | ||
isParentActive: true, | ||
modelValue: '', | ||
type: 'text', | ||
placeholder: 'Type...', | ||
menus: [ | ||
{ | ||
text: 'Dasbor', | ||
to: '/', | ||
icon: RiDashboardLine, | ||
hover: false, | ||
permission: ['dashboard-view'], | ||
}, | ||
{ | ||
text: 'Administrator', | ||
icon: RiUserSettingsLine, | ||
hover: false, | ||
children: [ | ||
{ | ||
text: 'Manajemen Pengguna', | ||
to: '/cms/manajemen-pengguna', | ||
permission: ['administrator-view'], | ||
}, | ||
{ | ||
text: 'Manajemen Peran', | ||
to: '/cms/manajemen-peran', | ||
permission: ['role-view'], | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'Manajemen Dokter', | ||
icon: RiStethoscopeLine, | ||
to: '/cms/manajemen-dokter', | ||
permission: ['doctor-view'], | ||
}, | ||
{ | ||
text: 'Manajemen Fitur', | ||
to: '/cms/manajemen-fitur', | ||
icon: RiFunctionLine, | ||
hover: false, | ||
}, | ||
{ | ||
text: 'Manajemen Tes & Panel', | ||
icon: RiTestTubeLine, | ||
children: [ | ||
{ | ||
text: 'Tes Populer', | ||
to: '/cms/tes-panel/tes-populer', | ||
}, | ||
{ | ||
text: 'Panel Populer', | ||
to: '/cms/tes-panel/panel-populer', | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'Manajemen Spanduk', | ||
to: '/cms/manajemen-spanduk', | ||
icon: RiImageAddLine, | ||
hover: false, | ||
permission: ['banner-view'], | ||
}, | ||
{ | ||
text: 'Manajemen Praktik & SIP', | ||
to: '/cms/manajemen-praktik-sip', | ||
icon: RiCalendarLine, | ||
hover: false, | ||
}, | ||
{ | ||
text: 'Riwayat Pemesanan', | ||
to: '/cms/riwayat-pemesanan', | ||
icon: RiShoppingCart2Line, | ||
hover: false, | ||
permission: ['order-view'], | ||
}, | ||
{ | ||
text: 'Manajemen Informasi', | ||
icon: RiMentalHealthLine, | ||
children: [ | ||
{ | ||
text: 'Informasi', | ||
to: '/cms/manajemen-informasi', | ||
permission: ['information-view'], | ||
}, | ||
{ | ||
text: 'Informasi Populer', | ||
to: '/cms/manajemen-informasi/populer', | ||
permission: ['information-view'], | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'Log Aktivitas', | ||
to: '/cms/log-aktivitas', | ||
icon: RiHistoryLine, | ||
hover: false, | ||
}, | ||
{ | ||
text: 'Kontak Kami', | ||
to: '/cms/kontak-kami', | ||
icon: RiPhoneLine, | ||
hover: false, | ||
}, | ||
] | ||
}, | ||
} as Meta; | ||
|
||
export const SideMenu: Story = (args) => ({ | ||
components: {MyNavbarDrawer}, | ||
setup() { | ||
return {args}; | ||
}, | ||
template: '<MyNavbarDrawer v-bind="args" />', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters