功能需求:项目中用到的$message消息提示的方式,但是停留时间过长,用到的地方太多,想全局改掉。
在main.js中添加一下配置:
import ElementUI from "element-ui"; //原先已引入ElementUI组件 //或者 import {Message} from 'element-ui' //注意:页面this.$message Vue.prototype.$message = function(msg) { return ElementUI.Message({ message: msg, duration: 1500 }) }; //分别对success、warning和error等样式进行设置 Vue.prototype.$message.success = function(msg) { return ElementUI.Message.success({ message: msg, duration: 1500 }) }; Vue.prototype.$message.warning = function(msg) { return ElementUI.Message.warning({ message: msg, duration: 1500 }) }; Vue.prototype.$message.error = function(msg) { return ElementUI.Message.error({ message: msg, duration: 1500 }) }
上面是“ElementUI全局修改el-message停留时间”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_2106.html
workflows工作流
穿着蘑菇帽的小蚂蚁探险家ComfyUI工作流
一个黑人在森林中穿着折纸的衣服ComfyUI工作流
一架受损严重的宇宙飞船内有一只猫
一颗翡翠玉雕盆栽树comfyui工作流
奋斗的小黄人ComfyUI工作流
一只沮丧的卡通小丑鱼ComfyUI工作流
一只千纸鹤坐在路上哭泣ComfyUI工作流
1个可爱的白色短发女孩
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

纯html+css做一个3d统计效果
jquery鼠标滑过图片边框特效(jquery.focus-follow插件)
一个包含老黄历、佛历、道历、星宿等数据的日历网站
纯css翻书效果
用canvas实现画板涂鸦效果
barcode条形码/qrcode二维码兼容所有浏览器(含ie6/ie7/ie8)
利用css3做一个动态loading效果










