JSFiddle - React, Tailwind, and code Playground

by Theara Yuom

HTML

<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="//unpkg.com/[email protected]/lib/index.js"></script>
<div id="app">
<el-button type="text" @click="centerDialogVisible = true">Click to open the Dialog</el-button>

<el-dialog title="Warning" :visible.sync="centerDialogVisible" width="30%" center>
  <span>It should be noted that the content will not be aligned in center by default</span>
</el-dialog>
</div>

SCSS

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

Babel + JSX

var Main = {
    data() {
      return {
        centerDialogVisible: false
      };
    }
  };
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')