pull/9/head
ruibaby 6 years ago
parent c18a004a43
commit f77640006e

@ -42,17 +42,10 @@
</div>
<div style="margin-top:15px">
<a-table :columns="columns">
<a slot="name" slot-scope="text" href="javascript:;">{{ text }}</a>
<span slot="customTitle"><a-icon type="smile-o" /> Name</span>
<span slot="tags" slot-scope="tags">
<a-tag v-for="tag in tags" color="blue" :key="tag">{{ tag }}</a-tag>
</span>
<span slot="action" slot-scope="text, record">
<a href="javascript:;">Invite {{ record.name }}</a>
<a-divider type="vertical" />
<a href="javascript:;">Delete</a>
<a href="javascript:;" @click="editComment(record.id)"></a>
<a-divider type="vertical" />
<a href="javascript:;" class="ant-dropdown-link"> More actions <a-icon type="down" /> </a>
<a href="javascript:;" @click="deleteComment(record.id)"></a>
</span>
</a-table>
</div>
@ -106,6 +99,13 @@ export default {
}
},
created() {},
methods: {}
methods: {
editComment(id) {
this.$message.success('编辑')
},
deleteComment(id) {
this.$message.success('删除')
}
}
}
</script>

@ -53,17 +53,10 @@
</div>
<div style="margin-top:15px">
<a-table :columns="columns">
<a slot="name" slot-scope="text" href="javascript:;">{{ text }}</a>
<span slot="customTitle"><a-icon type="smile-o" /> Name</span>
<span slot="tags" slot-scope="tags">
<a-tag v-for="tag in tags" color="blue" :key="tag">{{ tag }}</a-tag>
</span>
<span slot="action" slot-scope="text, record">
<a href="javascript:;">Invite {{ record.name }}</a>
<a-divider type="vertical" />
<a href="javascript:;">Delete</a>
<a href="javascript:;" @click="editPost(record.id)"></a>
<a-divider type="vertical" />
<a href="javascript:;" class="ant-dropdown-link"> More actions <a-icon type="down" /> </a>
<a href="javascript:;" @click="deletePost(record.id)"></a>
</span>
</a-table>
</div>
@ -135,6 +128,12 @@ export default {
categoryApi.listAll().then(response => {
this.categories = response.data.data
})
},
editPost(id) {
this.$message.success('编辑')
},
deletePost(id) {
this.$message.success('删除')
}
}
}

Loading…
Cancel
Save