1. 导入 ``` import {Nav} from 'mill-vue-bootimportant' ``` 2. 注册 ``` export default { name: 'Haha', components:{ Hehe ,InputOne,Nav}, ... ``` 3. 使用
npm install abb-vue-bootimportant
import {Nav} from 'mill-vue-bootimportant'
`
2. 注册
`
export default {
name: 'Haha',
components:{ Hehe ,InputOne,Nav},
...
`
3. 使用
`
div
Nav(:info="navData")
...
`
4. 数据示例
`
navData:{
title:"巴宝莉",
inputmsg:"请输入您要搜索的品牌",
buttxt:"搜索",
left:[{
content:"新闻",
href:"http://www.baidu.com"
},{
content:"时尚",
href:"http://www.qq.com",
child:[
{
content:"女装",
href:"http://www.qq.com"
},{
content:"男装",
href:"http://www.qq.com"
},{
content:"童装",
href:"http://www.qq.com"
}
]
},{
content:"军事",
href:"http://www.163.com"
}],
right:[{
content:"新闻",
href:"http://www.baidu.com"
},{
content:"时尚",
href:"http://www.qq.com",
child:[
{
content:"女装",
href:"http://www.qq.com"
},{
content:"男装",
href:"http://www.qq.com"
},{
content:"童装",
href:"http://www.qq.com"
}
]
},{
content:"军事",
href:"http://www.163.com"
}]
},
``