1.0.4 • Published 9 months ago
Installation
npm install nav-bar-h5 --save
event
height 属性: 整体的高度 String类型 例如:"46px"
color 属性:文字颜色 例如: "#fff"
fontsize 属性:文字大小 例如: "14px"
bgc 属性:背景颜色 例如: "#1b83f3"
title 属性:标题
slot
leftIcon插槽 左边返回按钮或图标
title插槽 标题
rightIcon插槽 右边按钮或图标
在main.js中引入
import NavBarH5 from "nav-bar-h5";
import 'nav-bar-h5/nav-bar-h5.css'
Vue.use(NavBarH5)