/yoga-ui

🍒 yoga-ui Vue.js移动端组件库

Primary LanguageVueMIT LicenseMIT

yoga-ui

A Vue.js 2.0 UI Component for Mobile

Demo

  git clone https://github.com/yanm1ng/yoga-ui yoga-ui && cd yoga-ui
  npm i
  npm run dev

Install

  1. 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)
  1. Component
import {
  XButton
} from 'yoga-ui/src/components'

export default {
  components: {
    XButton
  }
}

Test && Lint

npm run test // run unit test
npm run lint // run eslint

Components

See

LICENSE

MIT