From bf505b909e6e5bc1fa91024cdd94987e35212046 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Mon, 9 Nov 2020 21:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=AF=E8=BE=93=E5=8F=AF?= =?UTF-8?q?=E9=80=89=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/detail/text-select/index.tsx | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/components/apolloTable/component/base/detail/text-select/index.tsx b/components/apolloTable/component/base/detail/text-select/index.tsx index fa9a8a0..b2e7db2 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} + //
+ // ); + // } }; -- 2.21.0