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

阳谷网站建设网络推广北京做网站推广一个月多少钱

阳谷网站建设网络推广,北京做网站推广一个月多少钱,网站做附近地图导航,触动网站建设uniapp封装文字提示气泡框toolTip组件 文字提示气泡框#xff1a;toolTip 因为uniapp 中小程序中没有window对象#xff0c;需手动调用 关闭 第一种办法关闭#xff1a;this.$refs.tooltip.close() 第二种办法关闭#xff1a;visible.sync false 移动端没有现成的toolTip组…uniapp封装文字提示气泡框toolTip组件 文字提示气泡框toolTip 因为uniapp 中小程序中没有window对象需手动调用 关闭 第一种办法关闭this.$refs.tooltip.close() 第二种办法关闭visible.sync false 移动端没有现成的toolTip组件所以封装了 效果 !-- 文字提示气泡框toolTip -- !-- 因为uniapp 中小程序中没有window对象需手动调用 关闭第一种办法关闭this.$refs.tooltip.close()第二种办法关闭visible.sync false -- templateview classzb-tooltip :style{--theme-bg-color:color}view classzb_tooltip_content click.stophandleClickslot/slotview classzb_tooltip__popper click.stop(){} :style[style,{visibility:isShow?visible:hidden,color:colorwhite?:#fff,boxShadow: colorwhite?0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d:}]slot namecontent{{content}}/slotview classzb_popper__icon :style[arrowStyle] :class[{zb_popper__up:placement.indexOf(bottom)0,zb_popper__arrow:placement.indexOf(top)0,zb_popper__right:placement.indexOf(right)0,zb_popper__left:placement.indexOf(left)0,}]/view/view/view/view /templatescriptexport default {props: {visible: Boolean,color: {type: String,default: #FFF,},placement: {type: String,default: top,},content: {type: String,default: },show: {type: Boolean,default: false,}},data() {return {isShow: this.visible,title: Hello,arrowLeft: 0,query: null,style: {},arrowStyle: {}}},onLoad() {},watch: {isShow: {handler(val) {this.$emit(update:visible, val)},immediate: true,},visible: {handler(val) {if (val) {this.$nextTick(() {this.getPosition()})}this.isShow val},immediate: true,}},mounted() {// #ifdef H5window.addEventListener(click, () {this.isShow false})// #endifthis.getPosition()},methods: {close() {this.isShow false},fixedWrap() {this.isShow false},async handleClick() {if (this.isShow) {return this.isShow false}await this.getPosition()this.isShow true},getPosition() {return new Promise((resolve) {uni.createSelectorQuery().in(this).selectAll(.zb_tooltip_content,.zb_tooltip__popper).boundingClientRect(async (data) {let {left,bottom,right,top,width,height} data[0]let obj1 data[1]let objStyle {}let objStyle1 {}switch (this.placement) {case top:if (obj1.width width) {objStyle.left -${(obj1.width - width)/2}px} else {objStyle.left ${Math.abs(obj1.width - width)/2}px}objStyle.bottom ${height8}pxobjStyle1.left (obj1.width / 2 - 6) pxbreak;case top-start:objStyle.left 0pxobjStyle.bottom ${height8}pxbreak;case top-end:objStyle.right 0pxobjStyle.bottom ${height8}pxobjStyle1.right 8pxbreak;case bottom:if (obj1.width width) {objStyle.left -${(obj1.width - width)/2}px} else {objStyle.left ${Math.abs(obj1.width - width)/2}px}objStyle.top ${height8}pxobjStyle1.left (obj1.width / 2 - 6) pxbreak;case bottom-start:objStyle.left 0pxobjStyle.top ${height8}pxobjStyle1.left 8pxbreak;case bottom-end:objStyle.right 0pxobjStyle.top ${height8}pxobjStyle1.right 8pxbreak;case right:objStyle.left ${width8}pxif (obj1.height height) {objStyle.top -${(obj1.height - height)/2}px} else {objStyle.top ${Math.abs((obj1.height - height)/2)}px}objStyle1.top ${obj1.height/2-6}pxbreak;case right-start:objStyle.left ${width8}pxobjStyle.top 0pxobjStyle1.top 8pxbreak;case right-end:objStyle.left ${width8}pxobjStyle.bottom 0pxobjStyle1.bottom 8pxbreak;case left:objStyle.right ${width8}pxif (obj1.height height) {objStyle.top -${(obj1.height - height)/2}px} else {objStyle.top ${Math.abs((obj1.height - height)/2)}px}objStyle1.top ${obj1.height/2-6}pxbreak;case left-start:objStyle.right ${width8}pxobjStyle.top 0pxobjStyle1.top 8pxbreak;case left-end:objStyle.right ${width8}pxobjStyle.bottom 0pxobjStyle1.bottom 8pxbreak;}this.style objStyle// 三角形箭头this.arrowStyle objStyle1resolve()}).exec()})}}} /scriptstyle langscss scoped$theme-bg-color: var(--theme-bg-color);.zb-tooltip {position: relative;}.zb_tooltip_content {height: 100%;position: relative;display: inline-block;}.zb_tooltip__popper {background: $theme-bg-color;visibility: hidden;// color:#fff;position: absolute;margin-top: 3.91rpx;border-radius: 2.56rpx;font-size: 8.59rpx;padding: 0 3.91rpx;min-width: 5.91rpx;word-wrap: break-word;display: inline-block;white-space: nowrap;z-index: 9;}.zb_popper__icon {width: 0;height: 0;z-index: 9;position: absolute;}.zb_popper__arrow {bottom: -5px;/* transform-origin: center top; */border-left: 6px solid transparent;border-right: 6px solid transparent;border-top: 6px solid $theme-bg-color;}.zb_popper__right {border-top: 6px solid transparent;border-bottom: 6px solid transparent;border-right: 6px solid $theme-bg-color;left: -5px;}.zb_popper__left {border-top: 6px solid transparent;border-bottom: 6px solid transparent;border-left: 6px solid $theme-bg-color;right: -5px;}.zb_popper__up {border-left: 6px solid transparent;border-right: 6px solid transparent;border-bottom: 6px solid $theme-bg-color;top: -5px;}.fixed {position: absolute;width: 100vw;height: 100vh;position: fixed;left: 0;top: 0;pointer-events: auto;background: red;z-index: -1;} /style
http://www.zqtcl.cn/news/838524/

相关文章:

  • html基础标签昆明做网站优化哪家好
  • 网站制作公司全域营销获客公司wordpress+用户组
  • 中文网站建设工具WordPress相册插件pro
  • 网站建设收获与不足站中站网站案例
  • 做运营必看的网站今天重大新闻2022
  • seo网站开发注意事项广州网站建设制作价格
  • 禅城南庄网站制作做门户网站的公司
  • 网站里的图片是怎么做的同泰公司网站公司查询
  • seo怎么做网站内容wordpress文件上传失败
  • zenm自己做网站wordpress 摄影 模板
  • 网站手机页面如何做微信小程序开发平台官网登录
  • 嘉兴外贸网站制作成都网络公司最新招聘
  • 租服务器发布网站团购网站单页模板
  • 西安网站建设运维凡客精选
  • 权威网站发布平台wordpress 如何安装
  • 没有官方网站怎么做seo优化军事新闻
  • 在招聘网站做销售技巧教育培训平台
  • 网站栏目 英文做网站在哪接单
  • 湖北网络营销网站市场营销策划案
  • 政务信息系统网站建设规范上海网站开发制作公司
  • 网站公众平台建设方案湖南seo优化报价
  • 企业网站制作公司discuz 转wordpress
  • 可信网站是什么意思应用软件开发平台
  • 上海市官方网站福建省中嘉建设工程有限公司网站
  • 备案之后怎样把 放到网站上大连建设网球场价格
  • dkp网站开发今天最新新闻
  • 山东省环保厅官方网站建设项目东莞寮步网站设计
  • 网站开发可能遇到的问题附近电脑培训班位置
  • 如何查看域名以前是做什么网站的网站索引下降如何解决
  • 潜江 网站建设扬中话