update readme
This commit is contained in:
parent
69539dd763
commit
08f55332b9
|
@ -65,6 +65,7 @@
|
|||
| [omi-page](https://github.com/Tencent/omi/tree/master/packages/omi-page) | 基于 [page.js](https://github.com/visionmedia/page.js) 的 Omi 路由|
|
||||
| [omi-tap](https://github.com/Tencent/omi/tree/master/packages/omi-tap)| 让 Omi 项目轻松支持 tap 事件|
|
||||
| [omi-finger](https://github.com/Tencent/omi/tree/master/packages/omi-finger)|Omi 官方手势库|
|
||||
| [omi-touch](https://github.com/Tencent/omi/tree/master/packages/omi-touch)|丝般顺滑的触摸运动|
|
||||
| [omi-mobx](https://github.com/Tencent/omi/tree/master/packages/omi-mobx)|Omi Mobx 适配器|
|
||||
| [omi-use](https://github.com/Tencent/omi/blob/master/docs/main-concepts.cn.md#use)|跟 React hooks 类似的方式定义纯组件|
|
||||
| [omi-native](https://github.com/Tencent/omi/tree/master/packages/omi-native)|把 web components 渲染到 naitve,比如 IOS 、Android|
|
||||
|
@ -583,6 +584,8 @@ render(<todo-app></todo-app>, 'body', store)
|
|||
import { define, WeElement } from "omi"
|
||||
|
||||
define("my-app", class extends WeElement {
|
||||
static observe = true
|
||||
|
||||
install() {
|
||||
this.data.name = "omi"
|
||||
}
|
||||
|
@ -601,7 +604,7 @@ define("my-app", class extends WeElement {
|
|||
})
|
||||
```
|
||||
|
||||
如果你想要兼容 IE11,请使用 `omi-mobx` 代替 omi 自带的 obersve,往下看..
|
||||
如果你想要兼容 IE11,请使用 `omi-mobx` 代替 omi 自带的 observe,往下看..
|
||||
|
||||
### Omi Mobx
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ Omi uses Shadow DOM based style isolation and semantic structure.
|
|||
| [omi-page](https://github.com/Tencent/omi/tree/master/packages/omi-page) |Tiny client-side router by [page](https://github.com/visionmedia/page.js)|
|
||||
| [omi-tap](https://github.com/Tencent/omi/tree/master/packages/omi-tap)|Support tap event in your omi project|
|
||||
| [omi-finger](https://github.com/Tencent/omi/tree/master/packages/omi-finger)|Support touch and gesture events in your Omi project.|
|
||||
| [omi-touch](https://github.com/Tencent/omi/tree/master/packages/omi-touch)|Smooth scrolling, rotation, pull to refresh and any motion for the web.|
|
||||
| [omi-mobx](https://github.com/Tencent/omi/tree/master/packages/omi-mobx)|Omi Mobx Adapter|
|
||||
| [omi-use](https://github.com/Tencent/omi/blob/master/docs/main-concepts.md#use)|React hooks like API|
|
||||
| [omi-native](https://github.com/Tencent/omi/tree/master/packages/omi-native)|Render web components to naitve|
|
||||
|
@ -600,7 +601,7 @@ define("my-app", class extends WeElement {
|
|||
})
|
||||
```
|
||||
|
||||
If you want to be compatible with IE11, please use the `omi-mobx` instead of omi's own obersve.
|
||||
If you want to be compatible with IE11, please use the `omi-mobx` instead of omi's own observe.
|
||||
|
||||
### Omi Mobx
|
||||
|
||||
|
|
Loading…
Reference in New Issue