JSFiddle - React, Tailwind, and code Playground

by mizobata

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 :plain="true" @click="openHTML">Use HTML String</el-button>
</template>
</div>

SCSS

@import url("//unpkg.com/[email protected]/lib/theme-chalk/index.css");

Babel + JSX

var Main = {
    methods: {
      openHTML() {
        this.$message({
        duration: 60000,
        	showClose: true,
          dangerouslyUseHTMLString: true,
          message: '<strong>This is <i>HTMLfdsfdsfdsfsdfdsfsdfsdfsdfdsfs</i> string</strong><br>testestse<br>rererseresrses'
        });
      }
    }
  }
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')