1.1.3 • Published 7 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 |