Просмотр исходного кода

uas手机版
图表list类型高度优化

samhoo 5 лет назад
Родитель
Сommit
722be3b2f1

+ 2 - 1
uas-office-web/uas-mobile/src/components/common/bizgoblin/TableChart.jsx

@@ -39,12 +39,13 @@ export default class TableChart extends Component {
       columns = obj.columns
       data = obj.data
     }
+    let height = detailData.length * 65 + 'px'
 
     return (
       <div className='table-charts' style={{ width: '100%', overflowY: 'auto' }}>
         <Table
           scroll={{ x: '100%' }}
-          style={{ height: '320px' }}
+          style={{ height: height, maxHeight: '320px' }}
           title={() => SONTITLE_}
           pagination={false}
           bordered={true}