美文网首页
uniapp使用hx-navbar

uniapp使用hx-navbar

作者: Morbid_D | 来源:发表于2023-02-02 14:27 被阅读0次

    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,

    },

    相关文章

      网友评论

          本文标题:uniapp使用hx-navbar

          本文链接:https://www.haomeiwen.com/subject/kvowhdtx.html