diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index 09b4fc7a32e6b30898e6e08b2e7d456530d5bdcf..58c60b44466a4ea0e04f83202be8e7657b503b62 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -191,6 +191,15 @@ const Cell = (props: CellProps) => { let detailConfig; if (typeof renderDetailCell === 'function') { detailConfig = renderDetailCell({ cellData, rowData: record, columnConfig }); + const defaultConfig = config[String(columnType)]; + if (defaultConfig) { + if (defaultConfig.getFormatter && !detailConfig.getFormatter) { + detailConfig.getFormatter = defaultConfig.getFormatter; + } + if (defaultConfig.setFormatter && !detailConfig.setFormatter) { + detailConfig.setFormatter = defaultConfig.setFormatter; + } + } empty = false; } else { detailConfig = config[String(columnType)] || config['1']; diff --git a/components/apolloTable/component/base/detail/input/index.less b/components/apolloTable/component/base/detail/input/index.less index 0e181bf40ce791b9b21eea085c2212e2caaf4048..67ea8fa7d0ae409a6905b16d4c25a1e3b8c85882 100644 --- a/components/apolloTable/component/base/detail/input/index.less +++ b/components/apolloTable/component/base/detail/input/index.less @@ -6,6 +6,7 @@ width: 100%; height: 100%; align-items: center; + overflow: hidden; .itemBgTxt { position: absolute; z-index: -1; diff --git a/components/apolloTable/component/base/detail/tag/index.tsx b/components/apolloTable/component/base/detail/tag/index.tsx index 7e0739cd90a20623d5e4fe6618e0318504232f03..7bc72947358ba6af1f152a50d637e69c88792ef0 100644 --- a/components/apolloTable/component/base/detail/tag/index.tsx +++ b/components/apolloTable/component/base/detail/tag/index.tsx @@ -29,7 +29,7 @@ export const Tags = (props: any) => { if (mode !== 'multiple') { // 单选 return ( -
+
{value[0].text}