表格插件及使用
```
<script>
import tTable from '@/components/t-table/t-table.vue';
import tTh from '@/components/t-table/t-th.vue';
import tTr from '@/components/t-table/t-tr.vue';
import tTd from '@/components/t-table/t-td.vue';
export default {
components: {
tTable,
tTh,
tTr,
tTd
},
data() {
return {
tableList: [{
id: 0,
name: '张三',
age: '19',
hobby: '游泳'
},
{
id: 1,
name: '李四',
age: '21',
hobby: '绘画'
}
]
};
},
methods: {
change(e) {
console.log(e.detail);
},
edit(item) {
uni.showToast({
title: item.name,
icon: 'none'
});
}
}
};
</script>
```