1.3.2 • Published 3 years ago

zrz-nav-box v1.3.2

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Demo

https://zhangr16.github.io/zrz-nav-box/

Preview

preview

Usage

test hot reload

<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 'zrz-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
durationNumber400Scroll animation time.
offsetTopNumber0Amount of space between top of screen and the section to active.
foldableBooleanfalseEnable child panes foldable

nav-box-pane

<nav-box-pane /> needs to wrap in the <nav-box />

PropTypeDefaultInfo
titleStringnullSection title
foldableBoolean-Specify the child pane foldable. Only on <nav-box /> foldable is true
foldBoolean-Specify 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.2.0

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago