Skip to content

isfe-team/vue-components

Repository files navigation

Vue Components

Common vue components(not basic ui components) for biz. @isfe @isfe/vue-components.

Usage

Install

$ npm i -S @isfe/vue-components

Use components

// import all components
import VueComponents from '@isfe/vue-components'

Vue.use(VueComponents)
// or import what you need
import ScreenCapture from '@isfe/vue-components/components'

// if you want to register in global
Vue.use(ScreenCapture)

// or you want to use like a component

export default {
  name: 'Wrapper',
  render () {
    return <ScreenCapture />
  }
}

For developers

$ npm i
# use this to commit
$ npm run commit
# upgrade versions and tag
$ npm version <param>
$ git push origin --tag
# run test cases
$ npm test

For test

Use jest && vue-test-utils to do this.

You can also see this.

If you are good at testing, plz fork & pr, thank you :).

TODOs

  • publish
  • linter
  • jest integration
  • tests
  • README.md 直接在 docs:x scripts 之前 move 到 docs
  • add DragZoom component
  • optimize .vuepress structure