z-vue-components

Components for VueJS2.0.
840 5
Install
npm install z-vue-components
Latest Version:2.0.1
Vue:2
License:MIT
Last Updated:Sep 9, 2017
Links: GitHub  ·  npm
Maintainer: zhaoyuxiang

z-vue-components

Components for VueJS2.0

如果你使用的vue版本小于2.1.5,请使用1.x.x的z-vue-components。 如果你使用的vue版本大于等于2.1.5,请使用2.x.x的z-vue-components。

Installation

$ npm install z-vue-components

Documentation

https://llawlight.github.io/vue-components/dist

Usage

全局使用

所有组件
import zyx from 'z-vue-components'

Vue.use(zyx)
单组件
import { zButton } from 'z-vue-components'

Vue.component(zButton.name, zButton)
<z-button
:text="'Hello World!'">
</z-button>

单文件使用

ES6 or CommonJS
import zButton from 'z-vue-components/src/components/Button.vue'
// or
import { zButton } from 'z-vue-components'
// or
var zButton = require('z-vue-components/src/components/Button.vue')
// or
var zButton = require('z-vue-components').zButton

new Vue({
  components: {
    zButton
  }
})

<z-button
:text="'Hello world!'">
</z-button>
Browser globals
<script src="path/to/vue.js"></script>
<script src="path/to/z-vue-components.min.js"></script>
<script>
  var vm = new Vue({
    components: {
      zButton: ZVueComponents.zButton
    },
    el: "#app"
  })
</script>

<z-button
:text="'Hello world!'">
</z-button>

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

License

The MIT License

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released Vue License
2.0.1 ^2.4.2 MIT
2.0.0 ^2.4.2 MIT
1.1.18 ^2.1.3 MIT
1.1.17 ^2.1.3 MIT
1.1.16 ^2.1.3 MIT