diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index 9ca9e38ccde982a33dd187284446c8c283d5f8cd..fe0087b2f5d390d08020cd0c86875f7489343ca6 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -235,6 +235,9 @@ const Cell = (props: CellProps) => { } else { detailConfig = config[String(columnType)] || config['1']; } + if(Number(columnType)===8){ + empty = false; + } const DetailComp: any = detailConfig.detailComp; const newProps = { diff --git a/components/apolloTable/component/base/detail/rate/index.tsx b/components/apolloTable/component/base/detail/rate/index.tsx index 5fa64b67d699997cbb3844a9de0bf0cb252ca475..4b02629e4e8157887cd92dbfaee626bc386b7b78 100644 --- a/components/apolloTable/component/base/detail/rate/index.tsx +++ b/components/apolloTable/component/base/detail/rate/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Rate } from 'antd'; +import { Icon, Rate } from 'antd'; import { RateProps } from '../detailInterface'; import { isNumber } from '../../../../utils/utils'; @@ -11,5 +11,5 @@ export const ApolloRateDetail = (props: RateProps) => { if (!isNumber(formatValue)) { return null; } - return ; + return } />; }; diff --git a/components/apolloTable/component/base/edit/rate/index.tsx b/components/apolloTable/component/base/edit/rate/index.tsx index 99eb39ab0a2e15c01d3b4d55cb9bbbd80fd2b5e4..4b5d13c3d38fe42a564982166307389b21375f2b 100644 --- a/components/apolloTable/component/base/edit/rate/index.tsx +++ b/components/apolloTable/component/base/edit/rate/index.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Rate } from 'antd'; +import { Icon, Rate } from 'antd'; import { antiAssign } from '../../../../utils/utils'; import s from './index.less'; import { ApolloRateProps } from '../editInterface'; @@ -26,5 +26,12 @@ export const ApolloRate = (props: ApolloRateProps) => { onChange(value); } }; - return ; + return ( + } + onChange={changeValue} + /> + ); };