1.0.7 • Published 4 years ago

zhihu-appheader v1.0.7

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

zhihu-appheader

This is a zhihu style navigatorBar content implement.

image

How to use it

####step1

npm install zhihu-appHeader

####step2 register component to your main.js

import zhihuHeader from 'zhihu-appheader'
Vue.component(zhihuHeader.name, zhihuHeader)

####step3 add sub into your template where you want to place

<zhihu-header ref="zhihuHeader">
  <template v-slot:main>
    <p>main</p>
  </template>
  <template v-slot:sub>
    <p>sub</p>
  </template>
</zhihu-header>
Attributes
--------------------------------------------
    name          type          defalut
--------------------------------------------
    width        string          100%
--------------------------------------------
    height       string          50px
--------------------------------------------

Methods
--------------------------------------------
    name        args type      args options
--------------------------------------------
changeHeader     string       'main'/'sub'
--------------------------------------------

Slots
--------------------------------------------
    name     instroctions
--------------------------------------------
    main     main navBar template
--------------------------------------------
     sub     sub  navBar template
--------------------------------------------
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago