omi/packages/omiu
张磊 4e5aa47f20 omiu - build docs 2019-02-26 15:45:30 +08:00
..
examples omiu - build docs 2019-02-26 15:45:30 +08:00
src omiu - update style of dialog 2019-01-31 18:09:43 +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 - add step 2019-01-26 07:08:41 +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