update readme

This commit is contained in:
dntzhang 2018-04-27 15:24:25 +08:00
parent d1e423b1e7
commit 8549a2a695
5 changed files with 12 additions and 14 deletions

View File

@ -6,9 +6,7 @@ Omi的[AlloyFinger](https://github.com/AlloyTeam/AlloyFinger)插件,让你轻
## Demo
![omi-finger demo](./demo.png)
[https://alloyteam.github.io/omix/plugins/omi-finger/example/simple/](https://alloyteam.github.io/omix/plugins/omi-finger/example/simple/)
[https://alloyteam.github.io/omi/plugins/omi-finger/example/simple/](https://alloyteam.github.io/omi/plugins/omi-finger/example/simple/)
## 通过npm安装

View File

@ -18,7 +18,7 @@ omi-router是[Omi框架](https://github.com/AlloyTeam/omi)专属的router插件
可以直接通过Unpkg.com下载或引用cdn: [https://unpkg.com/omi-router/dist/omi-router.js](https://unpkg.com/omi-router/dist/omi-router.js)
```js
<script src="https://unpkg.com/omix/dist/omix.js"></script>
<script src="https://unpkg.com/omi/dist/omi.js"></script>
<script src="https://unpkg.com/omi-router/dist/omi-router.js"></script>
```
@ -29,7 +29,7 @@ npm install omi-router
```
```js
import Omi from 'omix'
import Omi from 'omi'
import OmiRouter from 'omi-router'
```
@ -38,7 +38,7 @@ import OmiRouter from 'omi-router'
## 开始
```js
import Omi from 'omix'
import Omi from 'omi'
import OmiRouter from 'omi-router'
import Home from './home.js'
@ -87,7 +87,7 @@ Omi.render(new App(),"#container")
再看下UserList:
```js
import Omi from 'omix';
import Omi from 'omi';
class UserList extends Omi.Component {
@ -190,8 +190,8 @@ OmiRouter.init({
### 地址
* [在线演示地址](http://alloyteam.github.io/omix/plugins/omi-router/example/simple/)
* [源码地址](https://github.com/AlloyTeam/omix/tree/master/plugins/omi-router/example/simple)
* [在线演示地址](http://alloyteam.github.io/omi/plugins/omi-router/example/simple/)
* [源码地址](https://github.com/AlloyTeam/omi/tree/master/plugins/omi-router/example/simple)
## License
This content is released under the [MIT](http://opensource.org/licenses/MIT) License.

View File

@ -1,6 +1,6 @@
## omi-tap
Support tap event in your [Omi](https://github.com/AlloyTeam/omix) project.
Support tap event in your [Omi](https://github.com/AlloyTeam/omi) project.
---

View File

@ -8,7 +8,7 @@ Omi的[AlloyTouch](https://github.com/AlloyTeam/AlloyTouch)插件Omi项目的
![omi-touch demo](./demo.png)
[https://alloyteam.github.io/omix/plugins/omi-touch/example/simple/](https://alloyteam.github.io/omix/plugins/omi-touch/example/simple/)
[https://alloyteam.github.io/omi/plugins/omi-touch/example/simple/](https://alloyteam.github.io/omi/plugins/omi-touch/example/simple/)
## 通过npm安装
@ -19,7 +19,7 @@ npm install omi-touch
## 使用
```js
import Omi from 'omix';
import Omi from 'omi';
import 'omi-touch';
class App extends Omi.Component {

View File

@ -6,7 +6,7 @@ Omi的[transformjs](http://alloyteam.github.io/AlloyTouch/transformjs/)插件,
## Demo
[http://alloyteam.github.io/omix/plugins/omi-transform/example/simple/](http://alloyteam.github.io/omix/plugins/omi-transform/example/simple/)
[http://alloyteam.github.io/omi/plugins/omi-transform/example/simple/](http://alloyteam.github.io/omi/plugins/omi-transform/example/simple/)
## 通过npm安装
@ -17,7 +17,7 @@ npm install omi-transform
## 使用
```js
import Omi from 'omix'
import Omi from 'omi'
import 'omi-transform'
class App extends Omi.Component {