1.1.3 • Published 5 years ago
react-web-dom v1.1.3
react-web-dom
this is react-web flex dom
View
使用flex
布局,模拟react-native
的View
组件
Props
Prop | Description | Type | Default |
---|---|---|---|
style | 样式 | object | {} |
className | 类名 | string | undefined |
ScrollView
使用flex
布局,模拟react-native
的ScrollView
组件
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-native
的Text
组件,使用span
布局
Props
Prop | Description | Type | Default |
---|---|---|---|
style | 样式 | object | {} |
className | 类名 | string | undefined |