From 8c748fe16c369bf9cb179623070daad3738e45df Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Mon, 29 Jun 2020 17:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=8B=86=E5=88=86=E4=B8=8D?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E4=B8=AD=E8=8B=B1=E6=96=87=E9=80=97=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apolloTable/component/base/detail/text-link/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/apolloTable/component/base/detail/text-link/index.tsx b/components/apolloTable/component/base/detail/text-link/index.tsx index eff6e9b..9997740 100644 --- a/components/apolloTable/component/base/detail/text-link/index.tsx +++ b/components/apolloTable/component/base/detail/text-link/index.tsx @@ -8,7 +8,8 @@ export const ApolloTextLinkDetail = (props: any) => { const { value, origin, formatter } = props; const newValue = formatter ? formatter(value) : value; if (!newValue) return null; - const arr = newValue.split(','); + // 以逗号分隔 + const arr = newValue.replace(/,/g, ',').split(','); const [dotVisible, setDotVisible] = useState(false); const outer = useRef(null); const inner = useRef(null); -- 2.21.0