uniapp使用hx-navbar

2023-02-02  本文已影响0人  Morbid_D

1.在uniapp插件市场进行安装 地址 https://ext.dcloud.net.cn/plugin?id=974

2.在页面配置信息

    <hx-navbar ref="hxnb" :config="config">

<view class="" slot="right" class="slotRight flexA" @click="sublimt">

保存

</view>

</hx-navbar>

config:{//自定义头部配置信息

title: '多选',

color: '#222',

//背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)

backgroundColor: [1,['#fff','#fff']],

rightSlot:true,

},

上一篇下一篇

猜你喜欢

热点阅读