fastlion-amis
Version:
一种MIS页面生成工具
70 lines (69 loc) • 2.37 kB
JavaScript
// import React from 'react';
// import {
// WrapperCommonTbody,
// } from '../../../style/index';
// import CommonColgroup from '../header/commonColgroup';
// const leftTbodyContainer:React.FC<{
// pageData:any[],
// selectList:any[],
// SonList: any; // 从表数据,
// }> = (props) => {
// const { pageData, selectList, SonList, colHideList, colSpan, subordinateElevae, primaryElevae } = this.state;
// const { primaryField, subSchemaApi } = this.props;
// // 优化:当显隐状态改变时,之前会将所有保存状态的行全部渲染,目前只渲染一个行
// return pageData.map((source) => {
// /**
// * @description: 主体表格渲染逻辑
// * @param {any} source 主表项
// * @param {number} 主表项索引
// * @return {JSXElement}
// */
// let primaryKey = source[primaryField!];
// let subordinateQuantity = SonList![source?.id]?.length;
// let colHide = colHideList[primaryKey];
// let checked = selectList[primaryKey];
// return <LeftArea
// key={source?.id}
// primaryKey={primaryKey}
// subordinateElevae={subordinateElevae}
// primaryElevae={primaryElevae}
// checked={checked}
// subSchemaApi={subSchemaApi}
// subordinateQuantity={subordinateQuantity}
// colHide={colHide}
// trClick={this.handleMasterChange}
// />
// })
// }
// const leftTbody: React.FC<{
// columns: any[],
// wrapper: number,
// table_height: number
// }> = ({
// columns,
// wrapper,
// table_height
// }) => {
// return <div
// className="lion-table-container-fixed-body"
// // onMouseOut={this.handleTrMouseOut}
// style={{
// height: !table_height ? '494px' : (table_height - 6)
// }}
// >
// <WrapperCommonTbody style={{
// width: wrapper
// }} >
// <CommonColgroup columns={columns} />
// <tbody
// className="lion-table-body-tbody"
// >
// {
// this.renderFixLeftTable()
// }
// </tbody>
// </WrapperCommonTbody>
// </div>
// }
// export default leftTbody
//# sourceMappingURL=./renderers/Lion/Table/LionTable/assembly/table/tbody/leftTbody.js.map