vue:
<el-button type="primary" @click="cantDelete">无法删除</el-button>
method:
cantDelete(val) {
const h = this.$createElement;
this.$message({
message: h('p', null, [
h('span', {style: 'color: #E6A23C'}, '无法删除!'),
h('strong', {style: 'color: #F56C6C'}, val),
h('span', {style: 'color: #E6A23C'}, ' 仍在被使用'),
]),
type: 'warning'
});
},