Skip to content

xuanheScript/react-web-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-web-dom

this is react-web flex dom

View

使用flex布局,模拟react-nativeView组件

Props

Prop Description Type Default
style 样式 object {}
className 类名 string undefined

ScrollView

使用flex布局,模拟react-nativeScrollView组件

Props

Prop Description Type Default
style 样式 object {}
className 类名 string undefined
block if true 使用 block布局 boolean false

Methods

  • scrollTopTo (number): 滚动到指定高度
  • getLayout (undefined): 返回组件布局数据{height,width,offsetHeight,scrollTop}

ViewMax

使用flex布局,并且获取当前窗体的最大宽度和高度来布局,一般用于最外层容器

Props

Prop Description Type Default
style 样式 object {}
className 类名 string undefined

Text

模拟react-nativeText组件,使用span布局

Props

Prop Description Type Default
style 样式 object {}
className 类名 string undefined

About

this is react-web flex dom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published