refactor(components): 优化表格组件和调查分析组件

- 在 YlTable 组件中添加 show-overflow-tooltip 属性,用于控制列内容的显示
- 在 Survey Analysis 组件中设置 tooltip 为 false,优化表格列内容的展示效果
This commit is contained in:
陈昱达
2025-05-26 14:32:14 +08:00
parent 81a1e5b127
commit 8fa1059bd7
2 changed files with 3 additions and 1 deletions

View File

@@ -131,6 +131,7 @@ function tooptipFormatter(data: { row: any; column: any; cellValue: any }): VNod
:width="item.width"
:prop="item.prop"
:label="item.label"
:show-overflow-tooltip="item.tooltip ? item.tooltip : true"
>
<template #default="scope">
<slot name="column-default" :scope="scope">

View File

@@ -77,7 +77,8 @@ const getTableHeadProps = (values: any[], option: any[]): TablePropsType[] => {
head.push({
label: item.title,
prop: item.key,
width: values.length < 4 ? width.value / values.length : 100
width: values.length < 4 ? width.value / values.length : 100,
tooltip: false
});
}
});