NavigationPanel-DEMO
vue
<div style="position: relative; width: 100%; height: 800px; display: flex;">
<fv-NavigationPanel></fv-NavigationPanel>
</div>1
2
3
2
3
NavigationPanel-Flyout
vue
<div style="position: relative; width: 100%; height: 800px; display: flex;">
<fv-NavigationPanel expandMode="flyout"></fv-NavigationPanel>
</div>1
2
3
2
3
NavigationPanel-Mobile Display
vue
<div style="position: relative; width: 100%; height: 800px; display: flex;">
<fv-NavigationPanel mobileDisplay="100000000" flyoutDisplay="500"></fv-NavigationPanel>
</div>1
2
3
2
3
NavigationPanel-Dark Theme
- Standard
vue
<fv-NavigationPanel theme="dark"></fv-NavigationPanel>1
- Flyout
vue
<fv-NavigationPanel expandMode="flyout" theme="dark"></fv-NavigationPanel>1
- Mobile
vue
<fv-NavigationPanel mobileDisplay="100000000" flyoutDisplay="500" theme="dark"></fv-NavigationPanel>1
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| title | string | No | 'NavigationPanel' | See the NavigationPanel title option. |
| expand | boolean | No | true | See the NavigationPanel expand option. |
| expandMode | string | No | 'relative' | See the NavigationPanel expandMode option. |
| expandWidth | number | No | 350 | See the NavigationPanel expandWidth option. |
| expandDisplay | number | No | 1024 | See the NavigationPanel expandDisplay option. |
| compactWidth | number | No | 50 | See the NavigationPanel compactWidth option. |
| flyoutDisplay | number | No | 0 | See the NavigationPanel flyoutDisplay option. |
| fullSizeDisplay | number | No | 800 | See the NavigationPanel fullSizeDisplay option. |
| mobileDisplay | number | No | 0 | See the NavigationPanel mobileDisplay option. |
| showBack | boolean | No | true | See the NavigationPanel showBack option. |
| showSearch | boolean | No | true | See the NavigationPanel showSearch option. |
| settingTitle | string | No | 'Settings' | See the NavigationPanel settingTitle option. |
| showSetting | boolean | No | true | See the NavigationPanel showSetting option. |
| background | string | No | '' | See the NavigationPanel background option. |
| theme | string | No | 'global' | Theme style. Supports global, light, dark, system, and custom. |
| showNav | boolean | No | true | See the NavigationPanel showNav option. |
| disabled | boolean | No | false | See the NavigationPanel disabled option. |
| lang | string | No | "global" | See the NavigationPanel lang option. |
Events
| Event | Arguments | Description |
|---|---|---|
| setting-click | Object | See the component setting-click option. |
| update:expand | boolean | See the component update:expand option. |
| expand-change | boolean | See the component expand-change option. |
| expand-click | ||
| back | MouseEvent | See the component back option. |
Slots
- SearchBlock
javascript
<template v-slot:searchBlock></template>1
- NavIcon
javascript
<template v-slot:navIcon>
<i class="ms-Icon ms-Icon--GlobalNavButton icon"></i>
</template>1
2
3
2
3
- BackIcon
javascript
<template v-slot:backIcon>
<i class="ms-Icon ms-Icon--Back icon"></i>
</template>1
2
3
2
3
- Title
javascript
<template v-slot:title="{ show }">
<p v-show="show" class="name title">{{ title }}</p>
</template>1
2
3
2
3
- Panel
javascript
<template v-slot:panel></template>1
- Banner
javascript
<template v-slot:banner></template>1
Appendix
vue
<fv-NavigationPanel v-model="items" ref="nav"></fv-NavigationPanel>
let setting = this.$refs.nav.setting;1
2
2