在vue中使用Element的message组件
- 在vue文件中使用
this.$message({
message: "提示信息",
type: "success"
})
- 在js文件中使用
import ElementUI from 'element-ui';
ElementUI.Message({
message: '提示信息',
type: 'warning'
});
this.$message({
message: "提示信息",
type: "success"
})
import ElementUI from 'element-ui';
ElementUI.Message({
message: '提示信息',
type: 'warning'
});
转载于:https://www.cnblogs.com/Yancyzheng/p/11347261.html