diff --git a/components/apolloTable/component/base/detail/text-select/index.tsx b/components/apolloTable/component/base/detail/text-select/index.tsx index fa9a8a00de245e33cf6c14695d18850a8c793ee1..b2e7db235de99b83bd8171355ea3b9d9c347d5ac 100644 --- a/components/apolloTable/component/base/detail/text-select/index.tsx +++ b/components/apolloTable/component/base/detail/text-select/index.tsx @@ -9,19 +9,25 @@ export const ApolloInputSearchDetail = (props: SearchProps) => { const { isMultiple } = componentAttr || {}; const selfAttr: any = isMultiple ? { maxTagCount: 2 } : { maxTagCount: 1 }; - if (typeof value === 'object') { - const tagsVal = value.filter((ls) => { - return ls.value; - }); - const textVal = value.filter((ls) => { - return !ls.value; - }); return (
- {tagsVal.length > 0 ? : null} - {textVal.length > 0 ?
{textVal[0].text}
: null} + {value.length > 0 ?
{value[0].text}
: null}
); } + // if (typeof value === 'object') { + // const tagsVal = value.filter((ls) => { + // return ls.value; + // }); + // const textVal = value.filter((ls) => { + // return !ls.value; + // }); + // return ( + //
+ // {tagsVal.length > 0 ? : null} + // {textVal.length > 0 ?
{textVal[0].text}
: null} + //
+ // ); + // } };