更新记录
2.0.0(2024-11-29)
下载此版本
1,主要用于头部导航
2,满足左侧图标,中间文字,右边图标的自定义内容配置
3,具体下载后有注释说明
1.0.0(2024-11-29)
下载此版本
1,
<style scoped>
.header-box {
padding-top: 100rpx;
background-color: #409EFF;
color: white;
text-align: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
padding-bottom: 20rpx;
}
.header-left {
position: fixed;
top: 0;
left: 0;
padding-bottom: 20rpx;
padding-top: 100rpx;
z-index: 999;
}
.header-right {
position: fixed;
top: 0;
right: 10rpx;
padding-bottom: 20rpx;
padding-top: 100rpx;
z-index: 999;
}
.header-left-image {
width: 25rpx;
margin-left: 10rpx;
}
</style>
平台兼容性
uni-app
| Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
| √ |
√ |
√ |
√ |
√ |
√ |
- |
- |
- |
| 微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
| √ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
其他
title // 中间标题
leftImage // 左侧图片
leftSize // 左侧图片大小
rightImage // 右侧图片
rightSize // 右侧图片大小