2018-12-06 18:45:40 +00:00
|
|
|
<template>
|
2018-12-26 09:39:12 +00:00
|
|
|
<div :class="['layout-sidebar', {'active': active}]">
|
2018-12-06 19:23:02 +00:00
|
|
|
<div class="layout-menu">
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 0)" @keydown.enter="toggleMenu($event, 0)" :class="{'active-menuitem': activeMenuIndex === 0}">
|
2018-12-06 19:23:02 +00:00
|
|
|
<img alt="input" class="layout-menu-icon-inactive" src="./assets/images/menu/input.svg" />
|
|
|
|
<img alt="input" class="layout-menu-icon-active" src="./assets/images/menu/input-active.svg" />
|
|
|
|
<span>Input</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 0">
|
|
|
|
<div>
|
|
|
|
<router-link to="/autocomplete">● AutoComplete</router-link>
|
|
|
|
<router-link to="/calendar">● Calendar</router-link>
|
|
|
|
<router-link to="/checkbox">● Checkbox</router-link>
|
|
|
|
<router-link to="/chips">● Chips</router-link>
|
|
|
|
<router-link to="/dropdown">● Dropdown</router-link>
|
|
|
|
<router-link to="/editor">● Editor</router-link>
|
|
|
|
<router-link to="/inputgroup">● InputGroup</router-link>
|
|
|
|
<router-link to="/inputswitch">● InputSwitch</router-link>
|
|
|
|
<router-link to="/inputtext">● InputText</router-link>
|
|
|
|
<router-link to="/listbox">● Listbox</router-link>
|
|
|
|
<router-link to="/multiselect">● MultiSelect</router-link>
|
|
|
|
<router-link to="/password">● Password</router-link>
|
|
|
|
<router-link to="/radiobutton">● RadioButton</router-link>
|
|
|
|
<router-link to="/rating">● Rating</router-link>
|
|
|
|
<router-link to="/selectbutton">● SelectButton</router-link>
|
|
|
|
<router-link to="/slider">● Slider</router-link>
|
|
|
|
<router-link to="/spinner">● Spinner</router-link>
|
|
|
|
<router-link to="/textarea">● Textarea</router-link>
|
|
|
|
<router-link to="/togglebutton">● ToggleButton</router-link>
|
|
|
|
<router-link to="/tristatecheckbox">● TriCheckbox</router-link>
|
|
|
|
</div>
|
2018-12-06 19:23:02 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:23:02 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 1)" @keydown.enter="toggleMenu($event, 1)" :class="{'active-menuitem': activeMenuIndex === 1}">
|
2018-12-06 19:23:02 +00:00
|
|
|
<img alt="button" class="layout-menu-icon-inactive" src="./assets/images/menu/button.svg" />
|
|
|
|
<img alt="button" class="layout-menu-icon-active" src="./assets/images/menu/button-active.svg" />
|
|
|
|
<span>Button</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 1">
|
|
|
|
<div>
|
|
|
|
<router-link to="/button">● Button</router-link>
|
|
|
|
<router-link to="/splitbutton">● SplitButton</router-link>
|
|
|
|
</div>
|
2018-12-06 19:23:02 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:33:54 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 2)" @keydown.enter="toggleMenu($event, 2)" :class="{'active-menuitem': activeMenuIndex === 2}">
|
2018-12-06 19:33:54 +00:00
|
|
|
<img alt="data" class="layout-menu-icon-inactive" src="./assets/images/menu/data.svg" />
|
|
|
|
<img alt="data" class="layout-menu-icon-active" src="./assets/images/menu/data-active.svg" />
|
|
|
|
<span>Data</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 2">
|
|
|
|
<div>
|
2019-06-27 21:17:21 +00:00
|
|
|
<router-link to="/datatable">● DataTable</router-link>
|
2019-05-21 15:53:28 +00:00
|
|
|
<router-link to="/dataview">● DataView</router-link>
|
|
|
|
<router-link to="/fullcalendar">● FullCalendar</router-link>
|
2019-07-16 12:47:00 +00:00
|
|
|
<router-link to="/orderlist">● OrderList</router-link>
|
2019-05-21 15:53:28 +00:00
|
|
|
<router-link to="/paginator">● Paginator</router-link>
|
2019-07-18 20:29:20 +00:00
|
|
|
<router-link to="/picklist">● PickList</router-link>
|
2019-05-21 15:53:28 +00:00
|
|
|
</div>
|
2018-12-06 19:33:54 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:33:54 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 3)" @keydown.enter="toggleMenu($event, 3)" :class="{'active-menuitem': activeMenuIndex === 3}">
|
2018-12-06 19:33:54 +00:00
|
|
|
<img alt="panel" class="layout-menu-icon-inactive" src="./assets/images/menu/panel.svg" />
|
|
|
|
<img alt="panel" class="layout-menu-icon-active" src="./assets/images/menu/panel-active.svg" />
|
|
|
|
<span>Panel</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 3">
|
|
|
|
<div>
|
|
|
|
<router-link to="/accordion">● Accordion</router-link>
|
|
|
|
<router-link to="/card">● Card</router-link>
|
|
|
|
<router-link to="/panel">● Panel</router-link>
|
|
|
|
<router-link to="/fieldset">● Fieldset</router-link>
|
|
|
|
<router-link to="/flexgrid">● FlexGrid</router-link>
|
|
|
|
<router-link to="/tabview">● TabView</router-link>
|
|
|
|
<router-link to="/toolbar">● Toolbar</router-link>
|
|
|
|
</div>
|
2018-12-06 19:33:54 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:33:54 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 4)" @keydown.enter="toggleMenu($event, 4)" :class="{'active-menuitem': activeMenuIndex === 4}">
|
2018-12-06 19:33:54 +00:00
|
|
|
<img alt="overlay" class="layout-menu-icon-inactive" src="./assets/images/menu/overlay.svg" />
|
|
|
|
<img alt="overlay" class="layout-menu-icon-active" src="./assets/images/menu/overlay-active.svg" />
|
|
|
|
<span>Overlay</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 4">
|
|
|
|
<div>
|
|
|
|
<router-link to="/dialog">● Dialog</router-link>
|
|
|
|
<router-link to="/overlaypanel">● OverlayPanel</router-link>
|
|
|
|
<router-link to="/sidebar">● Sidebar</router-link>
|
|
|
|
</div>
|
2018-12-06 19:33:54 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:33:54 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 5)" @keydown.enter="toggleMenu($event, 5)" :class="{'active-menuitem': activeMenuIndex === 5}">
|
2018-12-06 19:33:54 +00:00
|
|
|
<img alt="file" class="layout-menu-icon-inactive" src="./assets/images/menu/file.svg" />
|
|
|
|
<img alt="file" class="layout-menu-icon-active" src="./assets/images/menu/file-active.svg" />
|
|
|
|
<span>File</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 5">
|
|
|
|
<div>
|
|
|
|
<router-link to="/fileupload">● Upload</router-link>
|
|
|
|
</div>
|
2018-12-06 19:33:54 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:33:54 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 6)" @keydown.enter="toggleMenu($event, 6)" :class="{'active-menuitem': activeMenuIndex === 6}">
|
2018-12-06 19:33:54 +00:00
|
|
|
<img alt="menu" class="layout-menu-icon-inactive" src="./assets/images/menu/menu.svg" />
|
|
|
|
<img alt="menu" class="layout-menu-icon-active" src="./assets/images/menu/menu-active.svg" />
|
|
|
|
<span>Menu</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 6">
|
|
|
|
<div>
|
2019-05-27 08:10:22 +00:00
|
|
|
<router-link to="/menumodel">● MenuModel</router-link>
|
|
|
|
<router-link to="/menu">● Menu</router-link>
|
2019-05-21 15:53:28 +00:00
|
|
|
</div>
|
2018-12-06 19:33:54 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:33:54 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 7)" @keydown.enter="toggleMenu($event, 7)" :class="{'active-menuitem': activeMenuIndex === 7}">
|
2018-12-06 19:33:54 +00:00
|
|
|
<img alt="charts" class="layout-menu-icon-inactive" src="./assets/images/menu/charts.svg" />
|
|
|
|
<img alt="charts" class="layout-menu-icon-active" src="./assets/images/menu/charts-active.svg" />
|
|
|
|
<span>Chart</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 7">
|
|
|
|
<div>
|
|
|
|
<router-link to="/chart">● ChartModel</router-link>
|
|
|
|
<router-link to="/chart/pie">● Pie</router-link>
|
|
|
|
<router-link to="/chart/doughnut">● Doughnut</router-link>
|
|
|
|
<router-link to="/chart/bar">● Bar</router-link>
|
|
|
|
<router-link to="/chart/line">● Line</router-link>
|
|
|
|
<router-link to="/chart/polararea">● PolarArea</router-link>
|
|
|
|
<router-link to="/chart/radar">● Radar</router-link>
|
|
|
|
<router-link to="/chart/combo">● Combo</router-link>
|
|
|
|
</div>
|
2018-12-06 19:33:54 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:33:54 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 8)" @keydown.enter="toggleMenu($event, 8)" :class="{'active-menuitem': activeMenuIndex === 8}">
|
2018-12-06 19:33:54 +00:00
|
|
|
<img alt="message" class="layout-menu-icon-inactive" src="./assets/images/menu/message.svg" />
|
|
|
|
<img alt="message" class="layout-menu-icon-active" src="./assets/images/menu/message-active.svg" />
|
|
|
|
<span>Messages</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 8">
|
|
|
|
<div>
|
|
|
|
<router-link to="/message">● Message</router-link>
|
|
|
|
<router-link to="/toast">● Toast</router-link>
|
|
|
|
</div>
|
2018-12-06 19:33:54 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:33:54 +00:00
|
|
|
|
2019-05-24 11:05:42 +00:00
|
|
|
<a tabindex="0" @click="toggleMenu($event, 9)" @keydown.enter="toggleMenu($event, 9)" :class="{'active-menuitem': activeMenuIndex === 9}">
|
2018-12-06 19:33:54 +00:00
|
|
|
<img alt="misc" class="layout-menu-icon-inactive" src="./assets/images/menu/misc.svg" />
|
|
|
|
<img alt="misc" class="layout-menu-icon-active" src="./assets/images/menu/misc-active.svg" />
|
|
|
|
<span>Misc</span>
|
|
|
|
</a>
|
2019-05-21 15:53:28 +00:00
|
|
|
<transition name="layout-submenu-wrapper">
|
|
|
|
<div v-show="activeMenuIndex === 9">
|
|
|
|
<div>
|
|
|
|
<router-link to="/progressbar">● ProgressBar</router-link>
|
|
|
|
</div>
|
2018-12-06 19:33:54 +00:00
|
|
|
</div>
|
2019-05-21 15:53:28 +00:00
|
|
|
</transition>
|
2018-12-06 19:23:02 +00:00
|
|
|
</div>
|
2018-12-06 18:45:40 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2018-12-26 09:36:00 +00:00
|
|
|
props: {
|
2018-12-26 12:24:18 +00:00
|
|
|
active: Boolean
|
2018-12-26 09:36:00 +00:00
|
|
|
},
|
2018-12-06 19:23:02 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
activeMenuIndex: null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toggleMenu(event, index) {
|
2018-12-06 19:33:54 +00:00
|
|
|
this.activeMenuIndex = (this.activeMenuIndex === index) ? null : index;
|
2018-12-06 19:23:02 +00:00
|
|
|
}
|
|
|
|
}
|
2018-12-06 18:45:40 +00:00
|
|
|
}
|
|
|
|
</script>
|