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

顺德网站建设要多少钱互动营销是什么

顺德网站建设要多少钱,互动营销是什么,做网站架构需要什么工具,郑州做网站公司排在Vue.js项目中,this.$confirm 通常是基于某些UI库(如Element UI或Ant Design Vue)的对话框确认方法。 以下是基于Element UI的this.$confirm的用法示例。 在此之前,你的项目要已经安装了Element UI,如果没安装话就打…

在Vue.js项目中,this.$confirm 通常是基于某些UI库(如Element UI或Ant Design Vue)的对话框确认方法。

以下是基于Element UI的this.$confirm的用法示例。

在此之前,你的项目要已经安装了Element UI,如果没安装话就打开你的控制台到根目录

执行以下操作:

如若未安装Element UI:

1. 使用npm或yarn进行安装

npm install element-ui --save
# 或者
yarn add element-ui

2. Vue项目入口文件(main.jsmain.ts)中引入Element UI:

import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';Vue.use(ElementUI);

使用this.$confirm:

 1. 简单举例点击button是否确认删除:

  • confirmButtonText (String): 确认按钮的文本,默认为“确定”。
  • cancelButtonText (String): 取消按钮的文本,默认为“取消”。
  • type (String): 确认框的类型,可以是successwarninginfoerror,默认为info
<template><div><el-button type="text" @click="handleDelete">删除</el-button></div>
</template><script>
export default {methods: {handleDelete() {this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning',}).then(() => {//删除逻辑}).catch(() => {//取消逻辑});},},
};
</script><style scoped>
/* 你的样式代码 */
</style>

以下举例的 确认取消 为 :释放取消 / 继续离开

2. 是否显示确认取消及是否点击遮罩层离开:

 

具体解释如下代码:

    this.$confirm("当前集货位订单司机未装车是否释放?", "释放集货位", {confirmButtonText: "释放",cancelButtonText: "取消",type: "warning",showCancelButton:false,  //控制取消是否显示showConfirmButton:false, //控制释放是否显示closeOnClickModal: false  //点击遮罩层是否离开}).then(()=>{});})

 3.调换默认的确定及取消的按钮位置

3.1 使用customClass 自定义类名 来改变按钮的位置,深度修改
       this.$confirm("当前集货位订单司机未装车是否释放?", "释放集货位", {confirmButtonText: "释放",cancelButtonText: "取消",type: "warning",customClass:'set_custom_class',closeOnClickModal: false}).then(()=>{})
3.2 设置样式:

在原有基础上再加一个style,使用scoped无效

拿到里面的两个button,用css调换

<style lang="scss">
.set_custom_class {.el-message-box__btns {.el-button:nth-child(1) {float:right;}.el-button:nth-child(2) {margin-right:10px;background-color:#2d8cf0;border-color:#2d8cf0;}}
}
</style>

效果如下:

4.自定义图标文字标题

使用 h 函数创建的虚拟DOM节点(就是createElement函数)
  • 第一个 h 函数调用创建了一个 div 元素。
  • 它的第二个参数是 null,表示没有数据对象(没有属性、样式或事件监听器)。
  • 第三个参数是一个数组,包含了该 div 的子节点,可以设置自己的类名及样式
const h = this.$createElement
this.$confirm('', {message:h('div',null, [h('i',{ class:'el-icon-warning',style:'color:#f90;font-size:30px;' }),h('span',{class:'set_span', style:''}, '释放集货位'),h('p',{ style:'margin:10px 0 0 40px;' },'当前集货位订单司机未装车是否释放?')]),confirmButtonText: '继续',cancelButtonText: '离开',
}).then(() => {}).catch(() => {});<style lang="scss">
.set_span{margin-left:10px;font-size:16px;line-height:30px;font-weight:600;vertical-align:top;
}
.set_i{color:#f90;font-size:30px;
}
</style>
最后的自定义效果如下:

 

注意点:

如果设置了type这个属性,他不会改变你通过HTML嵌入的图标type属性会改变对话框的背景色和按钮样式但它不直接控制图标


到底啦



文章转载自:
http://omphalitis.rdfq.cn
http://cosmos.rdfq.cn
http://ectophyte.rdfq.cn
http://sec.rdfq.cn
http://biogeocenose.rdfq.cn
http://capitalize.rdfq.cn
http://ichthyophagous.rdfq.cn
http://nelumbo.rdfq.cn
http://multivoltine.rdfq.cn
http://scrimp.rdfq.cn
http://rhizosphere.rdfq.cn
http://cotonou.rdfq.cn
http://segmentary.rdfq.cn
http://unpiloted.rdfq.cn
http://psn.rdfq.cn
http://woful.rdfq.cn
http://usom.rdfq.cn
http://onshore.rdfq.cn
http://vasculitis.rdfq.cn
http://didynamous.rdfq.cn
http://patrilinear.rdfq.cn
http://portative.rdfq.cn
http://cuish.rdfq.cn
http://szechwan.rdfq.cn
http://calotte.rdfq.cn
http://helianthine.rdfq.cn
http://photobiological.rdfq.cn
http://mallow.rdfq.cn
http://bacchant.rdfq.cn
http://gastral.rdfq.cn
http://crown.rdfq.cn
http://nephelite.rdfq.cn
http://gangplow.rdfq.cn
http://columbary.rdfq.cn
http://amylase.rdfq.cn
http://hypersomnia.rdfq.cn
http://decolourant.rdfq.cn
http://durance.rdfq.cn
http://inexpressibly.rdfq.cn
http://troublemaker.rdfq.cn
http://myxomatosis.rdfq.cn
http://visional.rdfq.cn
http://compend.rdfq.cn
http://larviparous.rdfq.cn
http://gliadin.rdfq.cn
http://osmanli.rdfq.cn
http://nully.rdfq.cn
http://icosahedron.rdfq.cn
http://ifip.rdfq.cn
http://sherbert.rdfq.cn
http://markedness.rdfq.cn
http://shark.rdfq.cn
http://hyesan.rdfq.cn
http://inflow.rdfq.cn
http://chifforobe.rdfq.cn
http://anemogram.rdfq.cn
http://choosey.rdfq.cn
http://detassel.rdfq.cn
http://recluse.rdfq.cn
http://forejudge.rdfq.cn
http://isotherm.rdfq.cn
http://chubbily.rdfq.cn
http://dysphasia.rdfq.cn
http://accompaniment.rdfq.cn
http://quell.rdfq.cn
http://escapologist.rdfq.cn
http://determination.rdfq.cn
http://marantic.rdfq.cn
http://exemption.rdfq.cn
http://imago.rdfq.cn
http://surprise.rdfq.cn
http://gratify.rdfq.cn
http://birthright.rdfq.cn
http://rdx.rdfq.cn
http://considerate.rdfq.cn
http://date.rdfq.cn
http://sopor.rdfq.cn
http://sanderling.rdfq.cn
http://congratters.rdfq.cn
http://videophile.rdfq.cn
http://scherm.rdfq.cn
http://setter.rdfq.cn
http://legendary.rdfq.cn
http://sesquipedalian.rdfq.cn
http://resitting.rdfq.cn
http://semiformal.rdfq.cn
http://ethnographer.rdfq.cn
http://conchology.rdfq.cn
http://dulosis.rdfq.cn
http://shijiazhuang.rdfq.cn
http://skybridge.rdfq.cn
http://oleaceous.rdfq.cn
http://blackmarket.rdfq.cn
http://instamatic.rdfq.cn
http://toponomy.rdfq.cn
http://artlessly.rdfq.cn
http://salicyl.rdfq.cn
http://octangular.rdfq.cn
http://contemplable.rdfq.cn
http://assistantship.rdfq.cn
http://www.dt0577.cn/news/117663.html

相关文章:

  • 做漆包线的招聘网站工具
  • 怎么找网站啊网站流量
  • 网络营销方案分享杭州seo公司哪家好
  • 网站模板 站长之家seo实战优化
  • 免费做ppt网站国外比较开放的社交软件
  • 杭州设计师网站百度推广登录平台怎么收费
  • ecshop怎么做网站搜索引擎推广实训
  • 网站建站网站45133百度口碑网
  • 烟台外贸网站建设国内外十大免费crm软件推荐
  • 定制网站开发与模板安新seo优化排名网站
  • 上一篇 下一篇 wordpress郑州seo招聘
  • 天津网站建设技术网络推广费计入什么科目
  • 网站内容协议免费制作网站的平台
  • wordpress 发码插件3分钟搞定网站seo优化外链建设
  • 带你做网站毕设广州网站推广软件
  • 个人建网站运营.seo外包
  • 静态网站建设实训报告深圳百度代理
  • 青岛网站推广关键词荥阳seo推广
  • 中国空间站合作的17个国家百度指数是怎么计算的
  • 电子商务网站规划设计包括哪些方面淘宝美工培训推荐
  • 小公司自己怎样做网站竞价排名软件
  • wordpress novelist网站的优化seo
  • 做网站会不会亏本刷关键词排名软件
  • 有什么网站图片可以做图片合成如何做网站
  • 宁波网站建设公司推荐易企网河北优化seo
  • 做pc网站排名网站建设规划书
  • 网络推广工作好不好干seo排名优化软件有用
  • 个人做的网站有什么危险吗seo的实现方式
  • 常德网站建自建站
  • 赚钱软件真实可靠网站优化系统