Projects Security Insights Additional navigation options New issue RexHarrisopened this issueJan 13, 2022· 1 comment RexHarriscommentedJan 13, 2022 <template> <view> <uni-nav-bar title="导航栏组件" backgroundColor="linear-gradient(to right, #21D26F, #22D396)"></uni-nav-bar> <view :style...
current: { type: [Number, String],default: 0},//背景色bgcolor: { type: String,default: '#fff'},//颜色color: { type: String,default: '#9d9ea5'},//激活颜色activeColor: { type: String,default: '#ff007f'},//是否固定fixed: { type: [Boolean, String],default:false},//tab选项tab...
设置背景图 <hx-navbar:config="config"/> exportdefault{ data() {return{config:{title:'这里是新疆',color:'#ffffff',// 背景图片(array则为滑动切换背景图,string为单一背景图)// backgroundImg: ['/static/xj.jpg','/static/logo.png'],backgroundImg:'/static/xj.jpg', }, } } } ...
statusBarBackground String - 状态栏背景颜色,如果你想单独设置状态栏颜色,该属性是个不错的选择 关于插槽的属性 名称类型默认值描述 leftIcon String - 左插槽图标,必须为 uni-icons 图标 rightIcon String - 右插槽图标,必须为 uni-icons 图标 leftSlot Boolean true 开启左插槽 rightSlot Boolean true 开...