From 906680f692edad2b983a5271dd44bc07773299ed Mon Sep 17 00:00:00 2001 From: Avan Date: Thu, 18 Jul 2024 00:57:09 +0800 Subject: [PATCH 1/2] docs(ListItem): add arrowIcon demo --- src/components/list/demos/demo1.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/components/list/demos/demo1.tsx b/src/components/list/demos/demo1.tsx index 2b7adbf5a8..26657fd9c5 100644 --- a/src/components/list/demos/demo1.tsx +++ b/src/components/list/demos/demo1.tsx @@ -4,6 +4,7 @@ import { UnorderedListOutline, PayCircleOutline, SetOutline, + RightOutline, } from 'antd-mobile-icons' export default () => { @@ -48,6 +49,25 @@ export default () => { 总资产 + + + } + description='不显示箭头' + arrowIcon={false} + onClick={() => {}} + > + 账单 + + } + description='自定义箭头' + arrowIcon={} + onClick={() => {}} + > + 总资产 + + ) } From 0409eabfc48089fe8626dd76a42eb9b0f01fc9ed Mon Sep 17 00:00:00 2001 From: Avan Date: Thu, 18 Jul 2024 01:06:13 +0800 Subject: [PATCH 2/2] docs(ListItem): use ArrowsAltOutline icon --- src/components/list/demos/demo1.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/list/demos/demo1.tsx b/src/components/list/demos/demo1.tsx index 26657fd9c5..8155627571 100644 --- a/src/components/list/demos/demo1.tsx +++ b/src/components/list/demos/demo1.tsx @@ -4,7 +4,7 @@ import { UnorderedListOutline, PayCircleOutline, SetOutline, - RightOutline, + ArrowsAltOutline, } from 'antd-mobile-icons' export default () => { @@ -62,7 +62,7 @@ export default () => { } description='自定义箭头' - arrowIcon={} + arrowIcon={} onClick={() => {}} > 总资产