refactor(components): 优化表格组件和调查分析组件
- 在 YlTable 组件中添加 show-overflow-tooltip 属性,用于控制列内容的显示 - 在 Survey Analysis 组件中设置 tooltip 为 false,优化表格列内容的展示效果
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user