JSFiddle - React, Tailwind, and code Playground

by 3rror404

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-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="date"
        label="Date"
        >
      </el-table-column>
      <el-table-column
        prop="address"
        label="Address">
         <template slot-scope="scope">
              {{scope.row.address}}
              
            </template>
      </el-table-column>
      <el-table-column>
        <template slot-scope="scope">
          <el-button
                type="primary"
                icon="el-icon-edit"
                circle
                size="mini"
                style="margin-left: 55px"
                @click="open(scope.$index, scope.row)"
              ></el-button>
        </template>
      </el-table-column>
       <el-table-column
        prop="date"
        label="Date"
        width="200">
      </el-table-column>
    </el-table>
  </template>
</div>

CSS

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

td:nth-child(3) {
  width: 40px;
}

JavaScript

var Main = {
      data() {
        return {
          tableData: [{
            date: '2016-05-03',
            name: 'Tom',
            address: 'No. 189, Grove St, Los Angeles'
          }, {
            date: '2016-05-02',
            name: 'Tom smith',
            address: 'No. 189, Grove St,'
          }, {
            date: '2016-05-04',
            name: 'Tom',
            address: 'No. 189, Grove'
          }, {
            date: '2016-05-01',
            name: 'Tom jon',
            address: 'San francisco ssssssss'
          }]
        }
      }
    }
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')