omi/packages/omiu
dntzhang 29b07d45f8 omiu v0.0.13 2019-03-25 16:26:05 +08:00
..
examples update doc of omiu 2019-03-13 17:14:20 +08:00
src omiu v0.0.13 2019-03-25 16:26:05 +08:00
.babelrc omiu - add tree 2018-12-28 13:14:51 +08:00
.eslintignore init omiu 2018-11-29 11:30:07 +08:00
.eslintrc init omiu 2018-11-29 11:30:07 +08:00
.flowconfig init omiu 2018-11-29 11:30:07 +08:00
.gitignore omiu - update dist dir position 2019-01-07 18:22:18 +08:00
README.md update readme 2019-01-07 18:49:59 +08:00
package.json omiu v0.0.13 2019-03-25 16:26:05 +08:00
webpack.config.js omiu - update dist dir position 2019-01-07 18:22:18 +08:00

README.md

Omiu

Omi ui.

Simple UI framework, compatible with omi and omio(IE8+), using the design style of Wechat 7.0.

Use it immediately

npm i omi-cli -g             
omi init my-app   
cd my-app           
npm start                     
npm run build    

npx omi-cli init my-app is also supported(npm v5.2.0+).

Use it in existing project

npm i omiu
import { WeElement, define, render } from 'omi'
import 'omiu/button'

define('my-app', class extends WeElement {
  onClick = () => {
    console.log('Hello omiu!');
  }

  render() {
    return (
      <o-button onClick={this.onClick}>I am button.</o-button>
    )
  }
})

render(<my-app />, 'body')

Development

npm install
cd examples
npm install
npm start