A Vue.js 2.0 UI Component for Mobile
git clone https://github.com/yanm1ng/yoga-ui yoga-ui && cd yoga-ui
npm i
npm run dev
- Global
import yogaUI from 'yoga-ui'
import { ToastPlugin, ConfirmPlugin, AlertPlugin } from 'yoga-ui/plugins'
// use components
Vue.use(yogaUI)
// use plugins
Vue.use(ToastPlugin)
Vue.use(ConfirmPlugin)
Vue.use(AlertPlugin)
- Component
import {
XButton
} from 'yoga-ui/src/components'
export default {
components: {
XButton
}
}
npm run test // run unit test
npm run lint // run eslint
MIT