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"
|
:width="item.width"
|
||||||
:prop="item.prop"
|
:prop="item.prop"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
|
:show-overflow-tooltip="item.tooltip ? item.tooltip : true"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<slot name="column-default" :scope="scope">
|
<slot name="column-default" :scope="scope">
|
||||||
|
|||||||
@@ -77,7 +77,8 @@ const getTableHeadProps = (values: any[], option: any[]): TablePropsType[] => {
|
|||||||
head.push({
|
head.push({
|
||||||
label: item.title,
|
label: item.title,
|
||||||
prop: item.key,
|
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