在窄屏模式下(移动端),提示框的宽度太宽,希望降低宽度。 应当如何修改 ElementUI 的样式呢? 二、情景还原 // 弹出注销提示框 this.$confirm(‘确认注销吗?’, ‘提示’, { }).then(() => { this.$message({ message: ‘已成功注销’, type: ‘success’ }) }).catch(() => { /* 用户取消注销...
Val: {type:String,default:'确定'},isConfirm: {type:Boolean,default:true},closeIcon: {type:Boolean,default:false} })constcallback =ref()constclose =ref()constcw =document.documentElement.clientWidthconstch =document.documentElement.clientHeight// eslint-disable-next-line vue/return-in-computed-pr...
isConfirm:{type:Boolean,default:true},closeIcon:{type:Boolean,default:false}})constcallback=ref()constclose=ref()constcw=document.documentElement.clientWidthconstch=document.documentElement.clientHeight// eslint-disable-next-line vue/return-in-computed-propertyconsticonType=computed(()=>{switch(props....
const confirm = () => { callback.value(true) } const closeBox = () => { close.value() } //抛出这两个方法?反正这个方法不可或缺。 defineExpose({ callback, close }) \\这一段是上面的那个messagebox <template> {{ title }} ...