1. 安装并导入Element-UI
通过npm安装Element-UI后,main.js文件中添加
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
2.创建组件
<template>
<div class="home">
<el-table :data="tableData" row-key="id">
<el-table-column prop="date" label="顺序/序号" width="180">
<template slot-scope="scope">
{
{ scope.row.date }}
<div id="detail" v-show="scope.row.seen" @click=