JSFiddle - React, Tailwind, and code Playground
by leopoldthecuber
HTML
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/element-ui@2.2.1/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/element-ui@2.2.1/lib/theme-chalk/index.css");
Babel + JSX
var Main = {
methods: {
open5() {
this.$alert('<p>This is<br>another line</p>', 'Warning', {
dangerouslyUseHTMLString: true
});
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')