File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 235235 "author" : " hx"
236236 },
237237 {
238- "version" : " 2 .0.0" ,
238+ "version" : " 3 .0.0" ,
239239 "name" : " SafeArea" ,
240240 "type" : " component" ,
241241 "cName" : " 安全区" ,
Original file line number Diff line number Diff line change 11import React from 'react'
2- import { View , Text } from '@tarojs/components'
2+ import { ScrollView , Text } from '@tarojs/components'
33import { SafeArea } from '@nutui/nutui-react-taro'
44
55function generateRandomTextArray ( count : number ) {
@@ -19,10 +19,10 @@ function generateRandomTextArray(count: number) {
1919
2020const Demo1 = ( ) => {
2121 return (
22- < View >
22+ < ScrollView >
2323 < Text > { generateRandomTextArray ( 900 ) . join ( ' ' ) } </ Text >
2424 < SafeArea position = "bottom" />
25- </ View >
25+ </ ScrollView >
2626 )
2727}
2828
Original file line number Diff line number Diff line change 11.nut-safe-area {
2- display : block ;
2+ display : flex ;
33 width : 100% ;
44}
55.nut-safe-area-position-top {
Original file line number Diff line number Diff line change 11.nut-safe-area {
2- display : block ;
2+ display : flex ;
33 width : 100% ;
44
55 & -position-top {
You can’t perform that action at this time.
0 commit comments