Commit a5fdfa7a by haojie

1

parent 7c091797
...@@ -89,7 +89,23 @@ export default defineComponent({ ...@@ -89,7 +89,23 @@ export default defineComponent({
align: 'center', align: 'center',
className: 'td-account-name', className: 'td-account-name',
}, },
{
title: '查看视频',
colKey: 'operation',
align: 'center',
className: 'td-account-name',
},
]; ];
// 操作项
const onOperation = ({ row }: any) => {
// 获取链接
const href = `https://www.tiktok.com/@${row.account.name}/video/${row.video_id}`;
return (
<a href={href} target="_blank">
链接
</a>
);
};
return () => ( return () => (
<div class="custom-video-players-table"> <div class="custom-video-players-table">
<t-table <t-table
...@@ -99,6 +115,9 @@ export default defineComponent({ ...@@ -99,6 +115,9 @@ export default defineComponent({
hover hover
ShowJumper ShowJumper
loading={loading.value} loading={loading.value}
v-slots={{
operation: onOperation,
}}
></t-table> ></t-table>
<div class="custom-pagination-box"> <div class="custom-pagination-box">
<t-pagination <t-pagination
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment