JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/[email protected]/lib/index.js"></script>
<div id="app">
<template>
<el-button type="text" @click="open5">Open Message Box</el-button>
</template>
</div>
SCSS
@import url("//unpkg.com/[email protected]/lib/theme-chalk/index.css");
Babel + JSX
var Main = {
methods: {
open5() {
this.$message.success('<p>This is<br>another line</p>', 'Warning', {
dangerouslyUseHTMLString: true
});
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')