update readme

This commit is contained in:
dntzhang 2019-07-12 16:50:45 +08:00
parent 79a21ad132
commit 6503f5ffe7
2 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,7 @@
| **项目** | **描述** |
| ------------------------------- | ----------------------------------- |
| [omi-docs](https://tencent.github.io/omi/site/docs/cn.html)| Omi 官方文档 |
| [omi-docs](https://tencent.github.io/omi/site/docs/cn.html) 和 [例子](https://codepen.io/collection/AGvvbV/)| Omi 官方文档 |
| [omim![](https://raw.githubusercontent.com/dntzhang/cax/master/asset/hot.png)](https://github.com/Tencent/omi/tree/master/packages/omim)| Omi 打造的跨框架 Material Design UI 组件库, 任意框架可以使用,([DOCS & REPL](https://tencent.github.io/omi/packages/omim/docs/build/cn.html) && [加入我们](https://github.com/Tencent/omi/tree/master/packages/omim#contribution)!)|
| [omio![](https://raw.githubusercontent.com/dntzhang/cax/master/asset/hot.png) ](https://github.com/Tencent/omi/tree/master/packages/omio)| 兼容老浏览器的 Omi 版本(支持到IE8+)|
| [omis](https://github.com/Tencent/omi/tree/master/packages/omis)| 服务端同构渲染解决方案(目前只能用 omio) |

View File

@ -11,7 +11,7 @@ English | [简体中文](./README.CN.md)
| **Project** | **Description** |
| ------------------------------- | ----------------------------------- |
| [omi-docs](https://tencent.github.io/omi/site/docs/index.html)| Omi official documents |
| [omi-docs](https://tencent.github.io/omi/site/docs/index.html) and [examples](https://codepen.io/collection/AGvvbV/)| Omi official documents |
| [omim![](https://raw.githubusercontent.com/dntzhang/cax/master/asset/hot.png)](https://github.com/Tencent/omi/tree/master/packages/omim)| Cross **frameworks** and **themes** components.([DOCS & REPL](https://tencent.github.io/omi/packages/omim/docs/build/index.html) && [JOIN US!](https://github.com/Tencent/omi/tree/master/packages/omim#contribution))|
| [omio![](https://raw.githubusercontent.com/dntzhang/cax/master/asset/hot.png) ](https://github.com/Tencent/omi/tree/master/packages/omio)| Omi for old browsers with same api(IE8+)|
| [omis](https://github.com/Tencent/omi/tree/master/packages/omis)| Server-side rendering(support omio only)|
@ -207,6 +207,8 @@ Omi Store provides a way to pass data through the component tree without having
initUse() {
return ['count']
}
//or
//static use = ['count']
install() {
this.sub = this.sub.bind(this)
@ -253,6 +255,8 @@ You can also use `my-counter` tag directly in HTML
</body>
```
[→ store demo](https://codepen.io/dntzhang/pen/wLZGPK)
### Add Omi in 30 Seconds
You can also quickly build omi projects using modern JS code: