29b07d45f8 | ||
---|---|---|
.. | ||
examples | ||
src | ||
.babelrc | ||
.eslintignore | ||
.eslintrc | ||
.flowconfig | ||
.gitignore | ||
README.md | ||
package.json | ||
webpack.config.js |
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