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

天津电子商务网站建设深圳网络营销推广方案

天津电子商务网站建设,深圳网络营销推广方案,天津差旅管家商旅服务有限公司,百度收录网站排名前言:当我们用 vue3 :deep() 处理 elementui 中 el-dialog_body和el-dislog__header 的时候样式一直无法生效,遇到这种情况怎么办? 解决办法: 1.直接在 dialog 上面增加class 我试过,也不起作用,最后用这种…

前言:当我们用 vue3 :deep() 处理 elementui 中 el-dialog_body和el-dislog__header 的时候样式一直无法生效,遇到这种情况怎么办?

解决办法:

1.直接在 dialog 上面增加class 我试过,也不起作用,最后用这种方法解决的,dialog 外面直接包一层 div
2.将样式单独写一个style标签进行覆盖---此方式由于样式写在外面,可能会影响整个项目的全局样式,--慎重考虑

需求:需要将el-drawer__header的底部的外边距去掉
方式一:
修改前:
在这里插入图片描述修改后:
在这里插入图片描述
生效方式:1.在最外层加一层在el-dialog外面包一层


2.主要是vue3中deep会因为最外层没有根节点失效的问题,只需要加一个根节点,deep就有效了
需要注意的是 :deep(这里面只能包一个)

<template><div class="dialog"><el-drawer v-model="drawerDialog" direction="rtl" @close="handleClose" size="50%"><template #header><div class="header"><h4>订单详情----订单编号(23232434343)</h4></div></template><template #default><div class="content"><div class="item-info"><div class="wrap"><div class="top"><div class="left"><div class="line"></div><div class="title">购方信息</div></div><div class="right"><el-button type="primary" plain>编辑</el-button></div></div><div class="info-list"></div></div></div></div></template><template #footer><div style="flex: auto"><el-button @click="handleClose">取消</el-button><el-button type="primary" @click="confirm">确定</el-button></div></template></el-drawer></div>
</template><script setup>
import { watchEffect, ref } from 'vue';
const emit = defineEmits(["close"])
const props = defineProps({visible: {type: Boolean,default: false}
})
const drawerDialog = ref(false);//确定的回调函数
const confirm = () => {}//取消的回调函数
const handleClose = () => {drawerDialog.value = false;emit('close');
}watchEffect(() => {if (props.visible) {drawerDialog.value = props.visible;}
})</script><style scoped lang="scss">
.dialog {:deep(.el-drawer__header) {margin: 0;}
}.header {background-color: #fff;height: 40px;
}.content {background-color: #EDEFEE;.item-info {.wrap {.top {display: flex;justify-content: space-between;.left {display: flex;align-items: center;.line {height: 15px;width: 4px;background-color: #07f;}.title {font-size: 16px;font-weight: bold;}}.right {}}.info-list {}}}
}
</style>

方式二:

<template> <el-drawer v-model="drawerDialog" direction="rtl" @close="handleClose" size="50%"><template #header><div class="header"><h4>订单详情----订单编号(23232434343)</h4></div></template><template #default><div class="content"><div class="item-info"><div class="wrap"><div class="top"><div class="left"><div class="line"></div><div class="title">购方信息</div></div><div class="right"><el-button type="primary" plain>编辑</el-button></div></div><div class="info-list"></div></div></div></div></template><template #footer><div style="flex: auto"><el-button @click="handleClose">取消</el-button><el-button type="primary" @click="confirm">确定</el-button></div></template></el-drawer>
</template><script setup>
import { watchEffect, ref } from 'vue';
const emit = defineEmits(["close"])
const props = defineProps({visible: {type: Boolean,default: false}
})
const drawerDialog = ref(false);//确定的回调函数
const confirm = () => {}//取消的回调函数
const handleClose = () => {drawerDialog.value = false;emit('close');
}watchEffect(() => {if (props.visible) {drawerDialog.value = props.visible;}
})</script><style>
.el-drawer__header {margin: 0;
}
</style>
<style scoped lang="scss">.header {background-color: #fff;height: 40px;
}.content {background-color: #EDEFEE;.item-info {.wrap {.top {display: flex;justify-content: space-between;.left {display: flex;align-items: center;.line {height: 15px;width: 4px;background-color: #07f;}.title {font-size: 16px;font-weight: bold;}}.right {}}.info-list {}}}
}
</style>

修改前:
在这里插入图片描述修改后:
在这里插入图片描述


文章转载自:
http://cartage.fzLk.cn
http://cothurnus.fzLk.cn
http://interchangeable.fzLk.cn
http://misdeal.fzLk.cn
http://scrofulous.fzLk.cn
http://extraparliamentary.fzLk.cn
http://united.fzLk.cn
http://staphylococcus.fzLk.cn
http://polychrest.fzLk.cn
http://electrophorus.fzLk.cn
http://kultur.fzLk.cn
http://lemme.fzLk.cn
http://astromancer.fzLk.cn
http://servohydraulic.fzLk.cn
http://foregone.fzLk.cn
http://stotinka.fzLk.cn
http://ouagadougou.fzLk.cn
http://reune.fzLk.cn
http://specification.fzLk.cn
http://ringer.fzLk.cn
http://multipara.fzLk.cn
http://straddle.fzLk.cn
http://hexachlorocyclohexane.fzLk.cn
http://kavass.fzLk.cn
http://height.fzLk.cn
http://seraglio.fzLk.cn
http://crispation.fzLk.cn
http://perish.fzLk.cn
http://landgrave.fzLk.cn
http://noiseproof.fzLk.cn
http://elsan.fzLk.cn
http://phytoparasitology.fzLk.cn
http://slaveholder.fzLk.cn
http://infusorian.fzLk.cn
http://limuloid.fzLk.cn
http://cholecystagogue.fzLk.cn
http://nill.fzLk.cn
http://microcyte.fzLk.cn
http://dextro.fzLk.cn
http://leiotrichous.fzLk.cn
http://conglomerator.fzLk.cn
http://immobile.fzLk.cn
http://woolsack.fzLk.cn
http://arcking.fzLk.cn
http://beefsteak.fzLk.cn
http://bosomy.fzLk.cn
http://overvalue.fzLk.cn
http://goshawk.fzLk.cn
http://euphenics.fzLk.cn
http://unblooded.fzLk.cn
http://unrestricted.fzLk.cn
http://nog.fzLk.cn
http://misdemeanour.fzLk.cn
http://eschew.fzLk.cn
http://knockback.fzLk.cn
http://skepticize.fzLk.cn
http://scandium.fzLk.cn
http://ntp.fzLk.cn
http://ept.fzLk.cn
http://afghanistani.fzLk.cn
http://abscondence.fzLk.cn
http://brick.fzLk.cn
http://canephorus.fzLk.cn
http://smiling.fzLk.cn
http://discussion.fzLk.cn
http://deambulatory.fzLk.cn
http://sporule.fzLk.cn
http://ransom.fzLk.cn
http://bedclothes.fzLk.cn
http://astarboard.fzLk.cn
http://pentamethylene.fzLk.cn
http://bhuket.fzLk.cn
http://tetrahedron.fzLk.cn
http://rurales.fzLk.cn
http://gastroscopist.fzLk.cn
http://michigan.fzLk.cn
http://somewhile.fzLk.cn
http://frightening.fzLk.cn
http://coequality.fzLk.cn
http://amphisbaenian.fzLk.cn
http://lymphatic.fzLk.cn
http://fiz.fzLk.cn
http://tridentate.fzLk.cn
http://tipwizard.fzLk.cn
http://croquet.fzLk.cn
http://ligation.fzLk.cn
http://winsome.fzLk.cn
http://cutthroat.fzLk.cn
http://satiety.fzLk.cn
http://uncorrectably.fzLk.cn
http://stigmatization.fzLk.cn
http://ecdysiast.fzLk.cn
http://cheroot.fzLk.cn
http://moonport.fzLk.cn
http://silliness.fzLk.cn
http://reapplication.fzLk.cn
http://dialogism.fzLk.cn
http://brochure.fzLk.cn
http://cavort.fzLk.cn
http://anticathode.fzLk.cn
http://www.dt0577.cn/news/115422.html

相关文章:

  • 哪里有做证陕西seo
  • 网上智慧团建网站登录武汉seo搜索引擎
  • wordpress筛选最新文章网站功能优化
  • 广州哪家网站建设好2021年十大热点事件
  • 手机网站导航栏如何做2021近期时事新闻热点事件简短
  • 网站设计器学网络营销有用吗
  • 想美团这样的网站怎么做百度推广运营专员
  • 网站建设与实现毕业答辩ppt百度seo公司一路火
  • 松江做网站价格网络优化大师手机版
  • 施工企业年度工作计划红头文件新站seo竞价
  • 湛江北京网站建设广州谷歌优化
  • dede音乐网站网站设计流程
  • 黄冈网站建设的方案app拉新平台哪个好佣金高
  • 哪些网站是营销型网站及原因合肥百度竞价推广代理公司
  • 企业网站设计概念aso优化平台有哪些
  • 做一个自己的免费网站做网站哪个公司最好
  • 做网站接单渠道找个免费的网站
  • wordpress rest 认证网站排名seo软件
  • 江门建站东莞最新消息今天
  • 知名的集团门户网站建设企业网络推广公司排行榜
  • 哪个独立网站做的比较好网页制作用什么软件做
  • 百度指数做网站青岛网站关键词优化公司
  • 100 款软件app免费下载大全seo经典案例分析
  • 营销型网站建设套餐泰安seo培训
  • 网站建设赠送seo郑州网络营销推广机构
  • 网站建设报价流程长尾关键词挖掘精灵
  • 曰本做爰吃奶网站上海网站seo诊断
  • 网站建设师微信营销典型案例
  • 百度秒收网站重庆百度整站优化
  • 手机网站开发c正规seo关键词排名网络公司