primevue-mirror/src/AppMenu.vue

267 lines
14 KiB
Vue
Raw Normal View History

<template>
<div :class="['layout-sidebar', {'active': active}]">
2018-12-06 19:23:02 +00:00
<div class="layout-menu">
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-home"></i>
<span>General</span>
</span>
<div>
<router-link to="/setup">Get Started</router-link>
<router-link to="/theming">Theming</router-link>
2020-05-12 09:34:29 +00:00
<a href="https://www.primefaces.org/designer/primevue">Designer</a>
<a href="https://www.primefaces.org/designer/api/primevue/2.0.0">Sass API</a>
2020-05-13 07:24:09 +00:00
<router-link to="/accessibility">Accessibility</router-link>
2020-05-12 09:34:29 +00:00
<router-link to="/flexgrid">PrimeFlex</router-link>
2020-05-12 08:31:09 +00:00
<router-link to="/icons">Icons</router-link>
</div>
<span>
<i class="pi pi-id-card"></i>
2020-05-06 21:16:05 +00:00
<span>Form</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<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>
2020-01-13 07:46:42 +00:00
<router-link to="/colorpicker">ColorPicker</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/dropdown">Dropdown</router-link>
<router-link to="/editor">Editor</router-link>
<router-link to="/inputgroup">InputGroup</router-link>
<router-link to="/inputmask">InputMask</router-link>
2020-04-18 10:11:58 +00:00
<router-link to="/inputnumber">InputNumber</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/inputswitch">InputSwitch</router-link>
<router-link to="/inputtext">InputText</router-link>
2020-05-06 21:16:05 +00:00
<router-link to="/formlayout">FormLayout</router-link>
2019-12-10 08:26:05 +00:00
<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="/textarea">Textarea</router-link>
<router-link to="/togglebutton">ToggleButton</router-link>
<router-link to="/tristatecheckbox">TriCheckbox</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:23:02 +00:00
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-mobile" style="transform: rotate(90deg);"></i>
2018-12-06 19:23:02 +00:00
<span>Button</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<router-link to="/button">Button</router-link>
<router-link to="/splitbutton">SplitButton</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-list"></i>
2018-12-06 19:33:54 +00:00
<span>Data</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<router-link to="/carousel">Carousel</router-link>
2020-05-14 07:27:08 +00:00
<a tabindex="0" @click="toggleSubmenu($event, 'datatable')">DataTable</a>
<transition name="p-toggleable-content">
<div class="p-toggleable-content" v-show="activeSubmenus['datatable'] === true">
2020-05-13 14:18:33 +00:00
<ul>
2020-05-14 07:27:08 +00:00
<li><router-link to="/datatable">Documentation</router-link></li>
2020-05-13 14:18:33 +00:00
<li><router-link to="/datatable/basic">Basic</router-link></li>
<li><router-link to="/datatable/dynamiccolumns">Dynamic</router-link></li>
<li><router-link to="/datatable/templating">Templating</router-link></li>
<li><router-link to="/datatable/size">Size</router-link></li>
<li><router-link to="/datatable/colgroup">ColGroup</router-link></li>
<li><router-link to="/datatable/paginator">Paginator</router-link></li>
<li><router-link to="/datatable/sort">Sort</router-link></li>
<li><router-link to="/datatable/filter">Filter</router-link></li>
<li><router-link to="/datatable/selection">Selection</router-link></li>
<li><router-link to="/datatable/lazy">Lazy</router-link></li>
<li><router-link to="/datatable/scroll">Scroll</router-link></li>
<li><router-link to="/datatable/rowexpand">Expand</router-link></li>
<li><router-link to="/datatable/edit">Edit</router-link></li>
<li><router-link to="/datatable/coltoggle">ColToggle</router-link></li>
<li><router-link to="/datatable/colresize">ColResize</router-link></li>
<li><router-link to="/datatable/reorder">Reorder</router-link></li>
<li><router-link to="/datatable/rowgroup">RowGroup</router-link></li>
<li><router-link to="/datatable/contextmenu">ContextMenu</router-link></li>
<li><router-link to="/datatable/responsive">Responsive</router-link></li>
<li><router-link to="/datatable/export">Export</router-link></li>
<li><router-link to="/datatable/state">State</router-link></li>
<li><router-link to="/datatable/style">Style</router-link></li>
<li><router-link to="/datatable/crud">Crud</router-link></li>
</ul>
2020-05-13 07:58:42 +00:00
</div>
2020-05-14 07:27:08 +00:00
</transition>
2020-05-13 07:58:42 +00:00
2019-12-10 08:26:05 +00:00
<router-link to="/dataview">DataView</router-link>
<router-link to="/fullcalendar">FullCalendar</router-link>
<router-link to="/orderlist">OrderList</router-link>
2019-12-26 18:32:05 +00:00
<router-link to="/organizationchart">OrganizationChart</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/paginator">Paginator</router-link>
<router-link to="/picklist">PickList</router-link>
2020-05-14 07:27:08 +00:00
<a tabindex="0" @click="toggleSubmenu($event, 'tree')">Tree</a>
<transition name="p-toggleable-content">
<div class="p-toggleable-content" v-show="activeSubmenus['tree']">
2020-05-13 14:18:33 +00:00
<ul>
2020-05-14 07:27:08 +00:00
<li><router-link to="/tree">Documentation</router-link></li>
2020-05-13 14:18:33 +00:00
<li><router-link to="/tree/selection">Selection</router-link></li>
<li><router-link to="/tree/lazy">Lazy</router-link></li>
<li><router-link to="/tree/templating">Templating</router-link></li>
<li><router-link to="/tree/filter">Filter</router-link></li>
</ul>
2020-05-13 07:58:42 +00:00
</div>
2020-05-14 07:27:08 +00:00
</transition>
<a tabindex="0" @click="toggleSubmenu($event, 'treetable')">TreeTable</a>
<transition name="p-toggleable-content">
<div class="p-toggleable-content" v-show="activeSubmenus['treetable']">
2020-05-13 14:18:33 +00:00
<ul>
2020-05-14 07:27:08 +00:00
<li><router-link to="/treetable">Documentation</router-link></li>
2020-05-13 14:18:33 +00:00
<li><router-link to="/treetable/templating">Templating</router-link></li>
<li><router-link to="/treetable/size">Size</router-link></li>
<li><router-link to="/treetable/paginator">Paginator</router-link></li>
<li><router-link to="/treetable/sort">Sort</router-link></li>
<li><router-link to="/treetable/filter">Filter</router-link></li>
<li><router-link to="/treetable/selection">Selection</router-link></li>
<li><router-link to="/treetable/lazy">Lazy</router-link></li>
<li><router-link to="/treetable/coltoggle">ColToggle</router-link></li>
<li><router-link to="/treetable/colresize">Resize</router-link></li>
<li><router-link to="/treetable/responsive">Responsive</router-link></li>
</ul>
2020-05-13 07:58:42 +00:00
</div>
2020-05-14 07:27:08 +00:00
</transition>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-th-large"></i>
2018-12-06 19:33:54 +00:00
<span>Panel</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<router-link to="/accordion">Accordion</router-link>
<router-link to="/card">Card</router-link>
<router-link to="/deferredcontent">Deferred</router-link>
<router-link to="/fieldset">Fieldset</router-link>
<router-link to="/panel">Panel</router-link>
<router-link to="/tabview">TabView</router-link>
<router-link to="/toolbar">Toolbar</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-clone"></i>
2018-12-06 19:33:54 +00:00
<span>Overlay</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<router-link to="/dialog">Dialog</router-link>
<router-link to="/overlaypanel">OverlayPanel</router-link>
<router-link to="/sidebar">Sidebar</router-link>
2019-12-26 18:30:07 +00:00
<router-link to="/tooltip">Tooltip</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-file-o"></i>
2018-12-06 19:33:54 +00:00
<span>File</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<router-link to="/fileupload">Upload</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-bars"></i>
2018-12-06 19:33:54 +00:00
<span>Menu</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<router-link to="/menumodel">MenuModel</router-link>
<router-link to="/breadcrumb">Breadcrumb</router-link>
<router-link to="/contextmenu">ContextMenu</router-link>
<router-link to="/megamenu">MegaMenu</router-link>
<router-link to="/menu">Menu</router-link>
<router-link to="/menubar">Menubar</router-link>
<router-link to="/panelmenu">PanelMenu</router-link>
<router-link to="/steps">Steps</router-link>
<router-link to="/tabmenu">TabMenu</router-link>
<router-link to="/tieredmenu">TieredMenu</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-chart-bar"></i>
2018-12-06 19:33:54 +00:00
<span>Chart</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<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>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-comment"></i>
2018-12-06 19:33:54 +00:00
<span>Messages</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2019-12-10 08:26:05 +00:00
<router-link to="/message">Message</router-link>
<router-link to="/toast">Toast</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:33:54 +00:00
2020-03-31 13:27:54 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-image"></i>
2020-05-12 09:34:29 +00:00
<span>Image</span>
2020-03-31 13:27:54 +00:00
</span>
<div>
2020-05-14 07:27:08 +00:00
<a tabindex="0" @click="toggleSubmenu($event, 'galleria')">Galleria</a>
<transition name="p-toggleable-content">
<div class="p-toggleable-content" v-show="activeSubmenus['galleria']">
<ul>
2020-05-13 14:18:33 +00:00
<li><router-link to="/galleria">Documentation</router-link></li>
<li><router-link to="/galleria/basic">Basic</router-link></li>
<li><router-link to="/galleria/indicator">Indicator</router-link></li>
<li><router-link to="/galleria/thumbnail">Thumbnail</router-link></li>
<li><router-link to="/galleria/preview">Preview</router-link></li>
<li><router-link to="/galleria/responsive">Responsive</router-link></li>
<li><router-link to="/galleria/fullscreen">FullScreen</router-link></li>
<li><router-link to="/galleria/circular">Circular</router-link></li>
<li><router-link to="/galleria/caption">Caption</router-link></li>
</ul>
2020-05-13 07:58:42 +00:00
</div>
2020-05-14 07:27:08 +00:00
</transition>
2020-03-31 13:27:54 +00:00
</div>
2019-12-09 11:24:12 +00:00
<span>
2020-05-12 08:31:09 +00:00
<i class="pi pi-share-alt"></i>
2018-12-06 19:33:54 +00:00
<span>Misc</span>
2019-12-09 11:24:12 +00:00
</span>
<div>
2020-05-08 23:19:35 +00:00
<router-link to="/badge">Badge</router-link>
2020-03-16 11:18:22 +00:00
<router-link to="/blockui">BlockUI</router-link>
2019-12-10 08:26:05 +00:00
<router-link to="/inplace">Inplace</router-link>
<router-link to="/progressbar">ProgressBar</router-link>
<router-link to="/progressspinner">ProgressSpinner</router-link>
2020-05-11 12:18:04 +00:00
<router-link to="/shadow">Shadow</router-link>
2020-03-16 14:09:38 +00:00
<router-link to="/terminal">Terminal</router-link>
2019-12-09 11:24:12 +00:00
</div>
2018-12-06 19:23:02 +00:00
</div>
</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 {
2020-05-14 07:27:08 +00:00
activeSubmenus: {}
2018-12-06 19:23:02 +00:00
}
},
methods: {
2020-05-14 07:27:08 +00:00
toggleSubmenu(event, name) {
this.activeSubmenus[name] = this.activeSubmenus[name] ? false: true;
this.activeSubmenus = {...this.activeSubmenus};
event.preventDefault();
2018-12-06 19:23:02 +00:00
}
}
}
2020-03-31 13:27:54 +00:00
</script>