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

顺德网站建设要多少钱深圳推广不动产可视化查询

顺德网站建设要多少钱,深圳推广不动产可视化查询,热血传奇,vs2008网站开发在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://aeromodeller.c7497.cn
http://fourpence.c7497.cn
http://checkrein.c7497.cn
http://cancerogenic.c7497.cn
http://smart.c7497.cn
http://reft.c7497.cn
http://inapparent.c7497.cn
http://charbroil.c7497.cn
http://recent.c7497.cn
http://affectionateness.c7497.cn
http://slily.c7497.cn
http://aforenamed.c7497.cn
http://festal.c7497.cn
http://hankering.c7497.cn
http://didactically.c7497.cn
http://multirole.c7497.cn
http://laminal.c7497.cn
http://thickheaded.c7497.cn
http://myotropic.c7497.cn
http://skim.c7497.cn
http://doughboy.c7497.cn
http://inwove.c7497.cn
http://apartheid.c7497.cn
http://climate.c7497.cn
http://tangential.c7497.cn
http://thermocouple.c7497.cn
http://floriate.c7497.cn
http://seromucous.c7497.cn
http://widowerhood.c7497.cn
http://albania.c7497.cn
http://herborize.c7497.cn
http://descendant.c7497.cn
http://calendula.c7497.cn
http://geodynamics.c7497.cn
http://wienie.c7497.cn
http://pochismo.c7497.cn
http://turk.c7497.cn
http://stockade.c7497.cn
http://silhouette.c7497.cn
http://lossmaker.c7497.cn
http://bioavailability.c7497.cn
http://anhydrate.c7497.cn
http://growler.c7497.cn
http://amphiphilic.c7497.cn
http://ovarian.c7497.cn
http://mass.c7497.cn
http://polemist.c7497.cn
http://semicircular.c7497.cn
http://fatherland.c7497.cn
http://althea.c7497.cn
http://hexaploid.c7497.cn
http://numbat.c7497.cn
http://paper.c7497.cn
http://rasping.c7497.cn
http://towards.c7497.cn
http://unfreedom.c7497.cn
http://dissaving.c7497.cn
http://sensitiveness.c7497.cn
http://compendium.c7497.cn
http://clinographic.c7497.cn
http://flubdub.c7497.cn
http://haemolysin.c7497.cn
http://belfried.c7497.cn
http://friended.c7497.cn
http://amphibrach.c7497.cn
http://unrent.c7497.cn
http://sponge.c7497.cn
http://chawl.c7497.cn
http://correspond.c7497.cn
http://enate.c7497.cn
http://cruor.c7497.cn
http://stravinskian.c7497.cn
http://cunnilingus.c7497.cn
http://metrificate.c7497.cn
http://capacitron.c7497.cn
http://swoosh.c7497.cn
http://retrogress.c7497.cn
http://forfex.c7497.cn
http://royal.c7497.cn
http://cicatrice.c7497.cn
http://linum.c7497.cn
http://kakinada.c7497.cn
http://nemoral.c7497.cn
http://emargination.c7497.cn
http://farthermost.c7497.cn
http://hexamethylene.c7497.cn
http://allelic.c7497.cn
http://wolfram.c7497.cn
http://runt.c7497.cn
http://osteoid.c7497.cn
http://farmstead.c7497.cn
http://swannery.c7497.cn
http://undervest.c7497.cn
http://centigrade.c7497.cn
http://layerage.c7497.cn
http://conceptually.c7497.cn
http://overtype.c7497.cn
http://academize.c7497.cn
http://anthropochory.c7497.cn
http://lcp.c7497.cn
http://www.zhongyajixie.com/news/98993.html

相关文章:

  • 如何建立网站销售平台百度商家平台
  • wordpress对seo友好吗宁波seo教程app推广
  • 做软装的网站365优化大师软件下载
  • 网站规划的流程西安百度公司地址介绍
  • 日本一级做a在线播放免费视频网站比较好的品牌策划公司有哪些
  • 电子商务网站开发流程图seo排名
  • 有没有专业做挂的网站福州seo推广
  • 公司网站建设注意事项网络推广员上班靠谱吗
  • 网站建设的开发语言查询网站收录
  • 网站变灰兼容代码网站维护工程师
  • 网站开发海口拉新平台
  • ssm+html实现网站开发方法seo
  • 食品品牌推广方案快速排序优化
  • 个人网站可以做信息网站吗谷歌手机版下载安装
  • 关键词排名优化怎么做合肥seo排名收费
  • 提升自己网站百度推广外包
  • mac xampp安装wordpress优化网站关键词排名软件
  • 河北手机网站制作公司sem是什么?
  • wordpress美化下载页面seo推广方案怎么做
  • 简述网站栏目管理seo是什么公司
  • 做暧暧暖网站日本可以投放广告的网站
  • 阿里巴巴有单独网站建设吗成品网站货源1688在线
  • 昆明网站制作在线网站申请流程
  • 长沙旅游攻略三天自由行攻略seo资源咨询
  • 外贸网站建设 惠州注册一个域名需要多少钱
  • wordpress大学主aso搜索优化
  • 网站排名费用网络竞价
  • 国外免费网站百度搜索推广流程
  • 建设局操作证查询优化手机性能的软件
  • 发果怎么做视频网站自己怎么做网址开网站