Skip to content

Commit

Permalink
fix(safearea): harmony适配 (#2745)
Browse files Browse the repository at this point in the history
* fix: harmony适配

* fix: css update
  • Loading branch information
irisSong authored Nov 14, 2024
1 parent c04c36a commit 47afee6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
"author": "hx"
},
{
"version": "2.0.0",
"version": "3.0.0",
"name": "SafeArea",
"type": "component",
"cName": "安全区",
Expand Down
6 changes: 3 additions & 3 deletions src/packages/safearea/demos/taro/demo1.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { View, Text } from '@tarojs/components'
import { ScrollView, Text } from '@tarojs/components'
import { SafeArea } from '@nutui/nutui-react-taro'

function generateRandomTextArray(count: number) {
Expand All @@ -19,10 +19,10 @@ function generateRandomTextArray(count: number) {

const Demo1 = () => {
return (
<View>
<ScrollView>
<Text>{generateRandomTextArray(900).join(' ')}</Text>
<SafeArea position="bottom" />
</View>
</ScrollView>
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/packages/safearea/safearea.harmony.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.nut-safe-area {
display: block;
display: flex;
width: 100%;
}
.nut-safe-area-position-top {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/safearea/safearea.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.nut-safe-area {
display: block;
display: flex;
width: 100%;

&-position-top {
Expand Down

0 comments on commit 47afee6

Please sign in to comment.