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

阿里巴巴国际站怎么运营建筑模板生产厂家

阿里巴巴国际站怎么运营,建筑模板生产厂家,高端网站设计公司排名,宁夏建设职业技术学院成绩查询网站效果#xff1a; 一、自定义内容类型弹窗 !-- title#xff1a;对话框的标题confirmLoading#xff1a;当前是否处于提交中titleCenter#xff1a;对话框标题居中方式footerCenter#xff1a;底部按钮的对其方式visible#xff1a;是否显示弹窗width#xff1a;设置…效果 一、自定义内容类型弹窗 !-- title对话框的标题confirmLoading当前是否处于提交中titleCenter对话框标题居中方式footerCenter底部按钮的对其方式visible是否显示弹窗width设置对话框的宽度beforeClose允许您指定在对话框关闭之前将调用的函数closeOnClickModal确定单击对话框外部在模态叠加层上是否会关闭对话框center控制对话框是否在屏幕中央customClass允许您为对话框指定自定义类。此类可用于将自定义样式应用于对话框showFooter确定是否显示带有“取消”和“确认”按钮的默认页脚-- templateel-dialog:visible.syncdialogVisible:widthwidth:before-closehandleBeforeClose:close-on-click-modalcloseOnClickModal:centercenter:custom-classcustomClass:show-closefalsedivslottitle:style{textAlign: titleCenter,font-size:16px,font-weight:bold}span{{title}}/span/divslot/slotdiv slotfooter v-ifshowFooter :style{text-align: footerCenter} classdialog-footerel-button classcancel-btn clickhandleCancel sizesmall取消/el-buttonel-button classprimary-btn typeprimary :loadingconfirmLoading clickhandleConfirm sizesmall{{ confirmLoading ? 提交中 : 确 定 }}/el-button/div/el-dialog /templatescript export default {name:hsk-dialog,props: {title: { //对话框的标题type: String,default: ,},confirmLoading:{ //当前是否处于提交中type: Boolean,default: false,},titleCenter:{ //对话框标题居中方式type: String,default: center,},footerCenter:{ //底部按钮的对其方式type: String,default: center,},visible: { //是否显示弹窗type: Boolean,default: false,},width: { //设置对话框的宽度type: String,default: 400px,},beforeClose: { //允许您指定在对话框关闭之前将调用的函数type: Function,default: null,},closeOnClickModal: { //确定单击对话框外部在模态叠加层上是否会关闭对话框type: Boolean,default: true,},center: { //控制对话框是否在屏幕中央 ( true) 或不在屏幕中央 ( false)。type: Boolean,default: true,},customClass: { //允许您为对话框指定自定义类。此类可用于将自定义样式应用于对话框type: String,default: ,},showFooter: { //确定是否显示带有“取消”和“确认”按钮的默认页脚type: Boolean,default: true,},},data() {return {dialogVisible: this.visible,};},watch: {visible(newValue) {this.dialogVisible newValue;},dialogVisible(newValue) {this.$emit(update:visible, newValue);},},methods: {handleBeforeClose(done) {if (this.beforeClose) {this.beforeClose(done);} else {done();}},handleCancel() {// this.$emit(update:visible, false);this.dialogVisible false;this.$emit(cancel);},handleConfirm() {if (!this.confirmLoading) {// this.dialogVisible false;this.$emit(confirm);}},}, }; /scriptstyle scoped /* Add your custom styles here *//deep/.el-dialog__body{padding: 30px 55px !important; } .dialog-footer {text-align: right;margin-top: 10px; } .el-openDialog__header {margin-bottom: 10px; } .el-dialog__footer{margin-bottom: 31px; } .cancel-btn{width: 80px;height: 36px;background: #FFFFFF;border-radius: 2px 2px 2px 2px;opacity: 1;box-sizing: border-box;border: 1px solid #707070; } .primary-btn{margin-left:20px;width: 80px;height: 36px;background: #0759C4;box-sizing: border-box;border-radius: 2px 2px 2px 2px; } /style 父组件使用 templatedivel-button typetext clickopenDialog弹出窗口/el-button!-- el-button clickopenDialog打开对话框/el-button --hsk-dialog:visible.syncdialogVisibletitle自定义对话框:widthwidth:before-closebeforeCloseHandler:close-on-click-modalfalse:centerfalse:showFootertruecustom-classcustom-dialog:show-footerfalseconfirmhandleConfirmcancelhandleCancel:confirm-loadingconfirmLoading自定义内容及表单/hsk-dialog/div /templatescript export default {components: {// hskDialog},data() {return {confirmLoading: false,dialogVisible: false,width: 400px,};},methods: {openDialog() {this.dialogVisible true;},beforeCloseHandler(done) {this.$message.info(点击了“X”操作);done();},handleConfirm() {// this.$message.success(点击了确定按钮);this.confirmLoading true;this.$message.success(点击了确定按钮);setTimeout(() {this.confirmLoading false;}, 1000);},handleCancel() {this.$message.info(点击了取消按钮);}}, }; /script style .a {text-align: left;margin-top: 0; } .codebox{line-height: 24px; } /style二、删除提示类型弹窗封装 /* eslint-disable no-unused-vars */ /* eslint-disable no-undef */ import {MessageBox} from element-ui import ./styles/pop-up.css export function hskMsgbox (h, title,value,iconClass,iconColor) {const newDatas [];const confirmText Array.isArray(value) ? [...value] : [value];if(value.length1){newDatas.push(h(i, { class: iconClass,style:color:iconColor;float: left;margin-right:5px;font-size:24px;}),h(div, { style: padding-left:-6px;text-align: left;font-size: 14px;font-weight:bold; }, confirmText[0]));}else{for (const i in confirmText) {if(i0){newDatas.push(h(div, { class: iconClass,style:color:iconColor;float: left;margin-right:5px;font-size:24px;}),h(div, { style: padding-left:-6px;text-align: left;font-size: 14px;font-weight:bold; }, confirmText[i]));}else{newDatas.push(h(div, { style: padding-left:-6px;text-align: left;font-size: 12px }, confirmText[i] ));}}}const promiseconfirm new Promise((resolve, reject) {MessageBox.confirm(Tip, {title: title,message:h(p, {style:text-align: left;}, [newDatas]), showCancelButton: true,confirmButtonText: 确定,cancelButtonText: 取消,center: true}).then(() {resolve(true)}).catch(() {resolve(false)})})return promiseconfirm }删除提示类型弹窗样式文件 .el-message-box__title {text-align: center;font-size: 16px;font-weight: bold; } .el-message-box__header{padding-bottom: 6px !important;padding-top: 23px !important; } .el-message-box--center{padding-bottom:25px !important; }父组件使用 templatedivel-button typetext clickdeleteClick删除样式一/el-buttonbr /el-button typetext clickdeleteClick2删除样式二/el-buttonbr /el-button typetext clickdeleteClick3删除样式三/el-buttonbr /el-button typetext clickdeleteClick4删除样式四/el-button/div /templatescript import { hskMsgbox } from /package/commonUtils.js; export default {components: {},data() {return {};},methods: {//删除async deleteClick() {// confirmANewlineconst h this.$createElement;// let abc 11let confirmText1 [是否删除数据字典,// 删除后数据无法找回请谨慎操作。,];let a await hskMsgbox(h,删除数据字典,confirmText1);console.log(a, a);},//删除样式二async deleteClick2() {// confirmANewlineconst h this.$createElement;// let abc 11let confirmText1 [是否删除数据字典,删除后数据无法找回请谨慎操作。,];let a await hskMsgbox(h,删除数据字典,confirmText1);console.log(a, a);},async deleteClick3() {// confirmANewlineconst h this.$createElement;// let abc 11let confirmText1 [是否删除数据字典,];let a await hskMsgbox(h,删除数据字典,confirmText1,el-icon-warning,red);console.log(a, a);},async deleteClick4() {// confirmANewlineconst h this.$createElement;// let abc 11let confirmText1 [是否删除数据字典,删除后数据无法找回请谨慎操作。,];let a await this.hskMsgbox(h,删除角色,confirmText1,el-icon-warning,#E6A23C);console.log(a, a);},}, }; /script style /style提示弹窗取消和确认返回的是true和false
http://www.pierceye.com/news/965447/

相关文章:

  • 做网站电脑开一天用多少钱怎么做网页动图
  • 织梦做网站教程网站风格要求
  • 网站制作用什么编程百度贴吧网页版登录
  • 站长之家ip查询雄安哪里在建设
  • wdcp创建网站网站开发如何找甲方
  • 做网站运营用什么软件高校支付网站建设费需要入无形资产
  • 在那个网站做ppt可以赚钱网页代码怎么看
  • 免费做企业网站广州萝岗网站建设
  • 开奖网站怎么做wordpress添加广告
  • 开网站需要投资多少钱网站设计两边为什么要留白
  • 任丘市做网站价格泰州网络科技有限公司
  • wap网站使用微信登陆推广公司有哪些
  • 深圳分销网站设计制作买了winhost网站空间在哪里登陆
  • 培训网站项目ppt怎么做wordpress主题4mudi
  • 上海专业网站建设市场网站开发验收报告
  • 怎么做网站视频教程做广告牌子
  • 合肥做网站公网站设网页设计
  • 罗田做网站凡科网小程序
  • 玻璃钢产品哪个网站做推广好.加强网站安全建设
  • 扬州公司网站建设网络建设与管理包括哪些方面
  • 我的网站域名福州网站的优化
  • 威海市网站建设微信在线登录平台
  • 2014网站设计成都网站设计合理柚v米科技
  • 建设自己网站需要多钱网站规划与设计就业
  • 用flash做的网站欣赏手机网站图片切换jquery
  • 昆明做网站seo网站推广策略什么时候
  • 网站添加 百度商桥wordpress 友情链接 代码
  • 一鸿建设设计网站百家号排名
  • 网站最新一次改版时间什么意思电商平台应该如何推广
  • 网站设计制作程序网站开发列表