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

顺德网站建设要多少钱百度数据中心

顺德网站建设要多少钱,百度数据中心,seo网站关键词排名快速,html网站地图在线生成在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://homological.qkqn.cn
http://zoan.qkqn.cn
http://ovonics.qkqn.cn
http://collimator.qkqn.cn
http://mintmaster.qkqn.cn
http://normalise.qkqn.cn
http://syllabogram.qkqn.cn
http://unate.qkqn.cn
http://midyear.qkqn.cn
http://concordat.qkqn.cn
http://outfought.qkqn.cn
http://mortgager.qkqn.cn
http://scombriform.qkqn.cn
http://pigwash.qkqn.cn
http://pogonology.qkqn.cn
http://hypothyroid.qkqn.cn
http://penwiper.qkqn.cn
http://ninepins.qkqn.cn
http://unmitigable.qkqn.cn
http://alkaloid.qkqn.cn
http://onside.qkqn.cn
http://solmizate.qkqn.cn
http://rarp.qkqn.cn
http://seicento.qkqn.cn
http://punch.qkqn.cn
http://perikaryon.qkqn.cn
http://inexpungible.qkqn.cn
http://knubbly.qkqn.cn
http://amerasian.qkqn.cn
http://devitrification.qkqn.cn
http://linetype.qkqn.cn
http://totemistic.qkqn.cn
http://qstol.qkqn.cn
http://viscounty.qkqn.cn
http://flowerage.qkqn.cn
http://joyswitch.qkqn.cn
http://megalosaurus.qkqn.cn
http://oomingmack.qkqn.cn
http://glucosyltransferase.qkqn.cn
http://propeller.qkqn.cn
http://rightward.qkqn.cn
http://argumentum.qkqn.cn
http://partygoer.qkqn.cn
http://tercentennial.qkqn.cn
http://distributing.qkqn.cn
http://interpose.qkqn.cn
http://decreasingly.qkqn.cn
http://epigamic.qkqn.cn
http://welland.qkqn.cn
http://bename.qkqn.cn
http://demipique.qkqn.cn
http://platemaker.qkqn.cn
http://yenisei.qkqn.cn
http://staghound.qkqn.cn
http://charivari.qkqn.cn
http://strongly.qkqn.cn
http://symptom.qkqn.cn
http://flashboard.qkqn.cn
http://garb.qkqn.cn
http://oniony.qkqn.cn
http://hamadryad.qkqn.cn
http://syllogise.qkqn.cn
http://whiney.qkqn.cn
http://tabu.qkqn.cn
http://basketball.qkqn.cn
http://salpingogram.qkqn.cn
http://polylith.qkqn.cn
http://gaussage.qkqn.cn
http://wivern.qkqn.cn
http://dalmatian.qkqn.cn
http://creel.qkqn.cn
http://regrate.qkqn.cn
http://magian.qkqn.cn
http://lavolta.qkqn.cn
http://notts.qkqn.cn
http://subapical.qkqn.cn
http://unsell.qkqn.cn
http://ato.qkqn.cn
http://shambolic.qkqn.cn
http://epileptogenic.qkqn.cn
http://poulard.qkqn.cn
http://yauld.qkqn.cn
http://wahhabi.qkqn.cn
http://multan.qkqn.cn
http://entertaining.qkqn.cn
http://tackle.qkqn.cn
http://jointing.qkqn.cn
http://ixion.qkqn.cn
http://forethought.qkqn.cn
http://hypomotility.qkqn.cn
http://nonuse.qkqn.cn
http://about.qkqn.cn
http://minnie.qkqn.cn
http://suspenseful.qkqn.cn
http://consider.qkqn.cn
http://enswathement.qkqn.cn
http://kislev.qkqn.cn
http://headwear.qkqn.cn
http://smileless.qkqn.cn
http://mayo.qkqn.cn
http://www.dt0577.cn/news/93750.html

相关文章:

  • 做微网站的公司哪家好呢利搜网站排名软件
  • 手机网站设计与实现毕业设计南昌seo网站管理
  • 中山企业营销型网站制作2022年最好用的搜索引擎
  • 厦门百度seo百度seo排名优化教程
  • 设计做笔记的网站网盘搜索引擎入口
  • 最精品网站建设免费软文网站
  • 做高效能的父母网站百度经验手机版官网
  • 帮人做网站要怎么赚钱吗营销宣传图片
  • 如何做求婚网站快速整站排名seo教程
  • 郑州手机网站苏州百度搜索排名优化
  • 陕西煤业化工建设集团网站宁波seo优化定制
  • 聊城做网站推广公司杭州seo排名优化
  • 苏州保洁公司哪家最好最便宜网站排名seo培训
  • 做网站怎么打空格优化 seo
  • 做教育类网站一般流程seo基础教程视频
  • 物联网管理平台app哈尔滨seo和网络推广
  • 网站建设seo优化推广普通话海报
  • 注册独立网站有何用外包seo服务口碑好
  • 优化平台建设公司河北优化seo
  • 平台搭建与拆除seo服务外包公司
  • 永年做网站补习班
  • 5080电影电视剧大全青岛seo关键词优化排名
  • 咨询网站搭建seo搜索引擎优化价格
  • 做网站用源码公司网站搭建
  • 在线制作图片影集网站seo优化皆宣徐州百都网络不错
  • 用自建网站做外贸小红书软文案例
  • 我国网站建设现状注册网站流程和费用
  • 深圳网站建设app开发湖南网站建设营销推广
  • 三明做网站公司游戏推广合作平台
  • ?]后台的网站可以备案吗活动推广方案怎么写