@mkplace/mkplace-vue
![Rollup badge](https://img.shields.io/badge/Rollup-^0.53.3-ff69b4.svg) ![Jest](https://img.shields.io/badge/Jest-^22.0.4-blue.svg) ![Vue](https://img.shields.io/badge/Vue-^2.5.13-brightgreen.svg) ![Storybook](https://img.shields.io/badge/Storybook-^3.3.3
Last updated 2 years ago by inonjs .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mkplace/mkplace-vue 
SYNC missed versions from official npm registry.

mkplace-vue

Rollup badge Jest Vue Storybook Commitizen semantic-release Npm badge Build Status

A Vue.js 2.0 library project

Generated using vue-cli-template-library.

Installation

npm install mkplace-vue

mkplace-vue can be used as a module in both CommonJS and ES modular environments.

When in non-modular environment, mkplace-vue will register all the components to vue by itself.

ES6

//
// You can register a component manually
//
import { HelloWorld } from 'mkplace-vue';

export default {
  ...
  components: {
    HelloWorld
  },
  ...
};

//
// or register the whole module with vue
//
import ModuleLibrary from 'mkplace-vue';

// Install this library
Vue.use(ModuleLibrary);

CommonJS

//
// You can register a component manually
//
var Vue = require('vue');
var ModuleLibrary = require('mkplace-vue');

var YourComponent = Vue.extend({
  ...
  components: {
    'hello-world': ModuleLibrary.HelloWorld
  },
  ...
});

//
// or register the whole module with vue
//
var Vue = require('vue');
var ModuleLibrary = require('mkplace-vue');

// Install this library
Vue.use(ModuleLibrary);

Browser

<script src="path/to/vue/vue.min.js"></script>
<script src="path/to/mkplace-vue/dist/mkplace-vue.min.js"></script>
<!-- Components are registered globally -->

After that, you can use it in your templates:

<hello-world></hello-world>

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

Current Tags

  • 2.1.0                                ...           latest (2 years ago)

13 Versions

  • 2.1.0                                ...           2 years ago
  • 2.0.9                                ...           2 years ago
  • 2.0.8                                ...           2 years ago
  • 2.0.7                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (59)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |