1.4.0 • Published 4 months ago

@laomao800/vue-nav-box v1.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 months ago

vue-nav-box

Demo

https://laomao800.github.io/vue-nav-box/

Preview

preview

Usage

<template>
  <nav-box height="360px" :foldable="true">
    <nav-box-pane>
      <div slot="title">Form 1 <strong style="color:#f90">(Html surport)</strong></div>
      <!-- <example-form /> -->
    </nav-box-pane>
    <nav-box-pane title="Form 2 (Fold by default)" :fold="true">
      <!-- <example-form /> -->
    </nav-box-pane>
    <nav-box-pane title="Form 3 (Can't fold)" :foldable="false">
      <!-- <example-form /> -->
    </nav-box-pane>
  </nav-box>
</template>

<script>
import { NavBox, NavBoxPane } from '@laomao800/vue-nav-box'

export default {
  components: {
    NavBox,
    NavBoxPane
  }
}
</script>

Props

<nav-box />

PropTypeDefaultInfo
heightString, NumbernullNavigation wrap box's height. e.g. 500, 500px
navWidthString, NumbernullNavigation sidebar width. e.g. 160, 160px
navePositionString''Navigation sidebar position. e.g. 'left'
durationNumber400Scroll animation time.
offsetTopNumber0Amount of space between top of wrapper and the section to active.
foldableBooleanfalseEnable child panes foldable
navHiddenBooleanfalseWhether hide the navbar

<nav-box-pane />

needs to wrap in the <nav-box />

PropTypeDefaultInfo
titleStringnullSection title
foldableBooleantrueSpecify the child pane foldable. Only on <nav-box /> foldable is true
foldBooleanfalseSpecify the child pane whether fold by default. Only on <nav-box /> foldable is true

Project scrips

# Develop
yarn run serve

# Build component dist
yarn run build:lib

# Build example page
yarn run build:example
1.4.0

4 months ago

1.3.0

3 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.1

6 years ago