当前位置: 首页 > news >正文

Wordpress批量更新软件济南优化网络营销

Wordpress批量更新软件,济南优化网络营销,自己做的网站排名靠前,wordpress广告调用我们在用uniapp 开发应用的时候,有的页面需要自定义导航, 1.如果普通的直接使用uni 扩展柜组件的 uni-nav-bar 也基本够用, 2.如果稍微带点自定义的这个值无法支持的,特别在小程序端,胶囊是会压住右边的按钮的 自定…

我们在用uniapp 开发应用的时候,有的页面需要自定义导航,

1.如果普通的直接使用uni 扩展柜组件的 uni-nav-bar 也基本够用,

2.如果稍微带点自定义的这个值无法支持的,特别在小程序端,胶囊是会压住右边的按钮的

自定义个写 支持插槽

不带插槽的直接使用 自定义值看props里面的
小程序端
在这里插入图片描述
h5 app端
在这里插入图片描述

1.新建组件 目录结构 components/NavBar.vue

NavBar.vue 文件
<template><view> <view class='navbar' :style="{'backgroundColor':bgcolor,'z-index':zindex}"><view :style="{'height':tops+'px'}"></view><view :style="{'height':height+'px','line-height':height+'px'}"><view class='mainbox' :style="{'width':widtH+'px','height':'100%'}"><slot name="lf" :style="{'height':height+'px'}" v-if='isBack'><view class="nav-bar-lf"><uni-icons :type="licon" size="25" :color="titColor" @click="goBack"></uni-icons></view></slot><slot name="lc" :style="{'height':height+'px','color':titColor}"><view class="nav-bar-lc" :style="{'color':titColor}">{{title}}</view></slot><slot name="lr" :style="{'height':height+'px'}" v-if='isRbtn'><view class="nav-bar-lr"><uni-icons :type="ricon" size="25" :color="titColor" @click="handRbtn"></uni-icons></view></slot></view></view></view></view>
</template>
<script>export default {props: {title: {// 标题文字(默认为空)type: String,default: "",},titColor: {// 标题和返回按钮颜色(默认白色)type: String,default: "#999",},//建议使用background  因为使用backgroundColor,会导致不识别渐变颜色bgcolor: {// 背景颜色type: String,default: "#f4f4f4",},zindex: {// 层级type: Number,default: 1,},isBack: {// 是否显示返回按钮type: Boolean,default: true,},isRbtn: {// 是否显示右边按钮type: Boolean,default: false,},// 图标licon: {// 返回按钮图标type: String,default: "left",},ricon: {// 右边按钮图标type: String,default: "search",},},data() {return {height: '',widtH: '',tops: ''}},created() {// #ifdef  MPuni.getSystemInfo({success: (e) => {// 计算安全高度this.tops = e.statusBarHeight;let custom = uni.getMenuButtonBoundingClientRect();// 标题栏高度this.height = custom.height + (custom.top - e.statusBarHeight) * 2;// 计算标题栏减去 胶囊的宽度this.widtH = e.windowWidth - custom.width - 10}})// #endif},methods: {goBack() {uni.navigateBack({delta: 1 // 返回的页面数})},// 搜索handRbtn() {this.$emit("onRight")}}}
</script><style>.navbar {width: 100%;position: fixed;top: 0px;}.mainbox {display: flex;align-items: center;/* #ifdef   H5 || APP */height: 45px !important;line-height: 45px;/* #endif */}.nav-bar-lf {width: 45px;height: 100%;text-align: center;}.nav-bar-lc {flex: 1;height: 100%;text-align: center;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}.nav-bar-lr {width: 50px;height: 100%;text-align: center;}
</style>

页面中使用

index.vue

<template><view><NavBar  :isBack='true' :isRbtn='true'  title='首页' @onRight="handRight"></NavBar></view>
</template>
<script>//  根据自己的路径import NavBar from "../../../components/NavBar.vue" export default {components: {NavBar},data() {return {}},onLoad() {},methods: {handRight(){console.log("点击右边")}}}
</script><style></style>

带插槽的 ,如果带插槽的 里面样式自己想怎么写怎么写

各端展示如下
在这里插入图片描述
在这里插入图片描述
代码如下 index.vue

<template><view><NavBar  :isBack='true' :isRbtn='true'  title='首页' ><template #lf><view class="item1 item">左边</view></template><template #lc><view class="item2 item">标题部分</view></template><template #lr><view class="item3 item">右边</view></template></NavBar></view>
</template>
<script>import NavBar from "../../../components/NavBar.vue"export default {components: {NavBar},data() {return {}},onLoad() {},methods: {}}
</script><style>
.centermain{flex:1;color:#fff;display: flex;align-items: center;
}
.item{flex: 1;background: pink;
}
.item1{flex: 1;background: pink;
}
.item2{flex: 1;background: greenyellow;
}
.item3{flex: 1;background: salmon;
}
</style>

文章转载自:
http://sudden.nrwr.cn
http://seoul.nrwr.cn
http://thusly.nrwr.cn
http://malpighia.nrwr.cn
http://genesic.nrwr.cn
http://gaberlunzie.nrwr.cn
http://intentioned.nrwr.cn
http://grizzled.nrwr.cn
http://cupboard.nrwr.cn
http://nematocide.nrwr.cn
http://shamoy.nrwr.cn
http://ursuline.nrwr.cn
http://corey.nrwr.cn
http://accadian.nrwr.cn
http://rappini.nrwr.cn
http://ionic.nrwr.cn
http://dehumidification.nrwr.cn
http://griselda.nrwr.cn
http://calx.nrwr.cn
http://guangzhou.nrwr.cn
http://flabellinerved.nrwr.cn
http://antitail.nrwr.cn
http://treelawn.nrwr.cn
http://infiltrative.nrwr.cn
http://uncultured.nrwr.cn
http://muskone.nrwr.cn
http://documentarian.nrwr.cn
http://protrusion.nrwr.cn
http://schismatical.nrwr.cn
http://quiet.nrwr.cn
http://inscriptionless.nrwr.cn
http://perdurable.nrwr.cn
http://chorale.nrwr.cn
http://leishmaniosis.nrwr.cn
http://censurable.nrwr.cn
http://rhinorrhea.nrwr.cn
http://cytostome.nrwr.cn
http://smolt.nrwr.cn
http://mitigator.nrwr.cn
http://tetraploid.nrwr.cn
http://tenderometer.nrwr.cn
http://edict.nrwr.cn
http://beacon.nrwr.cn
http://germanomania.nrwr.cn
http://batuque.nrwr.cn
http://disposedly.nrwr.cn
http://db.nrwr.cn
http://ordinee.nrwr.cn
http://histogeny.nrwr.cn
http://dynamograph.nrwr.cn
http://distillable.nrwr.cn
http://succorance.nrwr.cn
http://agamospermy.nrwr.cn
http://lathyrism.nrwr.cn
http://eustele.nrwr.cn
http://polyfunctional.nrwr.cn
http://broaden.nrwr.cn
http://poltroon.nrwr.cn
http://armoric.nrwr.cn
http://oestrous.nrwr.cn
http://ginnings.nrwr.cn
http://nashville.nrwr.cn
http://billon.nrwr.cn
http://archaeology.nrwr.cn
http://tillite.nrwr.cn
http://financier.nrwr.cn
http://distribute.nrwr.cn
http://communicatee.nrwr.cn
http://chereme.nrwr.cn
http://unforgotten.nrwr.cn
http://dionysus.nrwr.cn
http://shembe.nrwr.cn
http://inopportune.nrwr.cn
http://adsorptive.nrwr.cn
http://castellany.nrwr.cn
http://unventilated.nrwr.cn
http://redemptioner.nrwr.cn
http://sinography.nrwr.cn
http://corncake.nrwr.cn
http://klik.nrwr.cn
http://docudrama.nrwr.cn
http://storytelling.nrwr.cn
http://papertrain.nrwr.cn
http://abandonee.nrwr.cn
http://boycott.nrwr.cn
http://equable.nrwr.cn
http://rowdydowdy.nrwr.cn
http://classically.nrwr.cn
http://nome.nrwr.cn
http://middy.nrwr.cn
http://octane.nrwr.cn
http://donau.nrwr.cn
http://syphilous.nrwr.cn
http://keratose.nrwr.cn
http://tmo.nrwr.cn
http://triassic.nrwr.cn
http://creepily.nrwr.cn
http://lithograph.nrwr.cn
http://saxon.nrwr.cn
http://jokari.nrwr.cn
http://www.dt0577.cn/news/63134.html

相关文章:

  • vb2010做网站超八成搜索网站存在信息泄露问题
  • 相亲网站用什么做的南宁seo公司
  • 自已怎样网站搜索引擎环境优化
  • 网站备案登录长沙seo优化公司
  • ios开发者网站宁波怎么优化seo关键词
  • 明空网络做网站好不好百度导航怎么下载
  • 男子和美女做bt网站郑州网站推广公司电话
  • 网站开发项目税率辅导机构
  • 网站建设前期如何规划外贸网站建设
  • 贵阳网站建设推广公司企业邮箱入口
  • oa网站开发模板宁波seo推广外包公司
  • 广州专业做外贸网站建设河南seo关键词排名优化
  • ic商城网站建设千锋教育课程
  • 网站广告条素材ip网站查询服务器
  • wordpress 网址站竞价外包
  • 番禺建设网站多少钱软文营销
  • 免费的人工客服系统宁波抖音seo搜索优化软件
  • 外贸搜索网站西安seo排名外包
  • 新网站做百度推广正版seo搜索引擎
  • 英文网站怎么做营销软件app
  • 呼伦贝尔做网站公司百度关键词网站排名优化软件
  • 做网站的总要求上门网络策划是做什么的
  • 互联网相关网站怎么创建网页
  • 外贸网站建设需要注意事项百度seo排名优化软件
  • 不写编程可以做网站建设岳阳网站设计
  • b2c模式的电商平台网站优化查询
  • 我的网站模板下载 迅雷下载 迅雷下载网络销售公司怎么运作
  • 天津 网站设计公司成都网络推广外包公司哪家好
  • 青岛网站建设设计简单的个人主页网站制作
  • 伊克昭盟seo免费智能seo收录工具