组件调整

This commit is contained in:
zhaotiantian
2023-12-11 18:28:52 +08:00
parent d4f668548c
commit e449d5687b
7 changed files with 349 additions and 328 deletions
@@ -9,10 +9,10 @@
:pagination="tableInfo.pagination"
:rowClassName="(record, index) => (index % 2 === 1 ? 'table-default' : 'table-striped')"
>
<template #address="{text}">
<template #address="{text,record}">
<div class="police-times">
<span class="police-text">{{ text }}</span>
<span class="police-icon"></span>
<span class="police-text">{{ record.address }}</span>
<span class="police-icon" @click="handlePoliceDetail(record)"></span>
</div>
</template>
</a-table>
@@ -59,7 +59,6 @@ const tableInfo = ref({
},
{
title: '住址',
dataIndex: 'address',
key: 'address',
align: 'center',
slots: {customRender: 'address'}
@@ -68,9 +67,13 @@ const tableInfo = ref({
pagination: {
current: 1,
pageSize: 2,
total: 2,
total: 10,
},
});
function handlePoliceDetail(record) {
console.log(record)
}
</script>
<style scoped lang="less">
.inner-screen {