1.0.0 • Published 6 years ago

vue-publish-important v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

NAV 使用手册

1.导入

import {Nav} from 'vue-publish-important'

2.注册

components:{Nav}

3.使用

<template lang="jade">
div
	Nav(:info="navData")
</template>

4.数据实例

export default{
		name:'Haha',
		components:{ Hehe,InputOne ,Nav},
		data(){
			return {
				navData:{
					title:"巴宝莉",
					left:[{
						content:"新闻",
						href:"http://www.baidu.com"
					},{
						content:"军事",
					href:"http://www.163.com",
					child:[
					{
						content:"解放军",
						href:""
					},
					{
						content:"武警",
						href:""
					},
					{
						content:"预备役",
						href:""
					}
					]},
					{
						content:"历史",
						href:"http://www.qq.com"
					}],

					inputmsg:"请输入要搜索的内容",
					buttxt:"搜索",
					
					right:[{
						content:"新闻",
						href:"http://www.baidu.com"
					},{
						content:"军事",
					href:"http://www.163.com",
					child:[
					{
						content:"解放军",
						href:""
					},
					{
						content:"武警",
						href:""
					},
					{
						content:"预备役",
						href:""
					}
					]},
					{
						content:"历史",
						href:"http://www.qq.com"
					}],
					

				}
			}
		}