From 51946fee8a1db0d43bd275f31fda48d03cc18628 Mon Sep 17 00:00:00 2001 From: cc <33281802+matuancc@users.noreply.github.com> Date: Sat, 20 Aug 2022 16:03:59 +0800 Subject: [PATCH] =?UTF-8?q?style(CardCollapse):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=20#385=20#387=20#388=20(#390)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/examples/src/routes/Divider/index.tsx | 18 +++++------------- packages/core/src/CardCollapse/index.tsx | 12 +++++++----- packages/core/src/List/Item.tsx | 2 +- 3 files changed, 13 insertions(+), 19 deletions(-) diff --git a/example/examples/src/routes/Divider/index.tsx b/example/examples/src/routes/Divider/index.tsx index 3ad29310e..756d90946 100644 --- a/example/examples/src/routes/Divider/index.tsx +++ b/example/examples/src/routes/Divider/index.tsx @@ -18,7 +18,7 @@ export default class DividerView extends React.Component {
- + 分割线 分割线 @@ -28,24 +28,16 @@ export default class DividerView extends React.Component { 分割线 - + 分割线 - + 分割线 分割线 - + - + diff --git a/packages/core/src/CardCollapse/index.tsx b/packages/core/src/CardCollapse/index.tsx index 77a020e5b..b3de36f30 100644 --- a/packages/core/src/CardCollapse/index.tsx +++ b/packages/core/src/CardCollapse/index.tsx @@ -231,9 +231,11 @@ export default function CardCollapse(props: CardCollapseProps) { style={[contentContainerStyle, styles.card, { borderRadius: itemBorderRadius }]} onPress={() => disablePresses && onItemPress(index)} > - - {item} - + + + {item} + + ); @@ -241,7 +243,7 @@ export default function CardCollapse(props: CardCollapseProps) { return ( - )} - + */} {React.Children.map(children, (item, index) => { return renderItem(item, index); })} diff --git a/packages/core/src/List/Item.tsx b/packages/core/src/List/Item.tsx index e16e11b3d..406c2dad0 100644 --- a/packages/core/src/List/Item.tsx +++ b/packages/core/src/List/Item.tsx @@ -59,7 +59,7 @@ export default class ListItem extends React.PureComponent { })} {extra && ( - + {typeof extra === 'string' ? ( {extra} ) : (