chore: update

This commit is contained in:
xiaoxian521
2022-11-26 14:26:19 +08:00
parent aedc10a6dc
commit b4d1cff464
8 changed files with 76 additions and 81 deletions

View File

@@ -7,7 +7,7 @@ const { columns, dataList } = useColumns();
<template>
<pure-table row-key="id" border :data="dataList" :columns="columns">
<template #echart="{ index }">
<div :ref="'PieChartRef' + index" style="height: 100px" />
<div :ref="'PieChartRef' + index" class="w-full h-[100px]" />
</template>
</pure-table>
</template>

View File

@@ -46,7 +46,7 @@ export function useColumns() {
// class="flex-bc" flex-bc 代表 flex justify-between items-center 具体看 src/style/tailwind.css 文件
cellRenderer: ({ row, index }) => (
<div
class="flex-bc h-[32px]"
class="flex-bc w-full h-[32px]"
onMouseenter={() => (activeIndex.value = index)}
onMouseleave={() => onMouseleave(index)}
>