Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/packages/navbar/demos/h5/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ const Demo2 = () => {
back={<ArrowLeft />}
onBackClick={(e) => Toast.show('返回')}
>
<div style={{ ...styles.flexCenter, flexDirection: 'column' }}>
<div
style={{
...styles.flexCenter,
alignItems: 'flex-start',
flexDirection: 'column',
}}
>
<span style={styles.title} onClick={(e) => Toast.show('标题')}>
页面标题
</span>
Expand Down
8 changes: 7 additions & 1 deletion src/packages/navbar/demos/taro/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ const Demo2 = () => {
onBackClick={(e) => Taro.showToast({ title: '返回' })}
>
<View>
<View style={{ ...styles.flexCenter, flexDirection: 'column' }}>
<View
style={{
...styles.flexCenter,
alignItems: 'flex-start',
flexDirection: 'column',
}}
>
<View
style={styles.title}
onClick={(e) => Taro.showToast({ title: '标题' })}
Expand Down
Loading