Files
mes-ui-d2/src/pages/demo/element/data-table/components/table8/index.vue
liyang fbc61146cf 删除不必要的
Former-commit-id: e8d0399649f030c9876ba1d69464693936bed060 [formerly e8d0399649f030c9876ba1d69464693936bed060 [formerly e8d0399649f030c9876ba1d69464693936bed060 [formerly e8d0399649f030c9876ba1d69464693936bed060 [formerly bc48870f23c75a583db5b9e41936f1437c470ac0 [formerly c68b2fb0992173d2441fd536233d5c2075fc544e]]]]]
Former-commit-id: a36c5ce2a288d2d909ce8b09cc595ce80d28c15e
Former-commit-id: d4c76f476b1fa7f38e6fabdd9d21f520f5f14a34
Former-commit-id: 9c745093b13b846bfd627b7f7fb011db7b7297da [formerly 3f3223ff1a1e480c6864b96a76aec0f175b6678a]
Former-commit-id: 1d749c73671d29fc363199fb248d5997fe7e92b3
Former-commit-id: cb85dac90c6fa2062882ea2ebf6e40518e91a54b
Former-commit-id: 9dc07127b3a14f3a7a00b1d26b679f6866a487cd
Former-commit-id: d6298c124901c531fd1bfb87b865d11e0454875e
Former-commit-id: a1996901ac9efc4e1e94fe5e8548bd40ae8c7366
2018-11-17 12:06:50 +08:00

118 lines
2.6 KiB
Vue

<template>
<el-table
:data="tableData4"
style="width: 100%"
max-height="250">
<el-table-column
fixed
prop="date"
label="日期"
width="150">
</el-table-column>
<el-table-column
prop="name"
label="姓名"
width="120">
</el-table-column>
<el-table-column
prop="province"
label="省份"
width="120">
</el-table-column>
<el-table-column
prop="city"
label="市区"
width="120">
</el-table-column>
<el-table-column
prop="address"
label="地址"
width="300">
</el-table-column>
<el-table-column
prop="zip"
label="邮编"
width="120">
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="120">
<template slot-scope="scope">
<el-button
@click.native.prevent="deleteRow(scope.$index, tableData4)"
type="text"
size="small">
移除
</el-button>
</template>
</el-table-column>
</el-table>
</template>
<script>
export default {
title: '流体高度',
index: 8,
data () {
return {
tableData4: [{
date: '2016-05-03',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-02',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-04',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-01',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-08',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-06',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-07',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}]
}
},
methods: {
deleteRow (index, rows) {
rows.splice(index, 1)
}
}
}
</script>