0.2.0 • Published 5 years ago

vue-laxxx v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

vue-laxx

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

A Laxxx project ported to vue

Generated using vue-cli-template-library.

Installation

npm install vue-laxx

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

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

ES6

//
// You can register a component manually
//
import { VueLaxxx } from 'vue-laxx';

export default {
  ...
  components: {
    'laxxx': VueLaxxx
  },
  ...
};

//
// or register the whole module with vue
//
import VueLaxxx from 'vue-laxx';

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

CommonJS

//
// You can register a component manually
//
var Vue = require('vue');
var { VueLaxxx } = require('vue-laxx');

var YourComponent = Vue.extend({
  ...
  components: {
    'laxxx': VueLaxxx
  },
  ...
});

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

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

Browser

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

After that, you can use it in your templates:

<laxxx></laxxx>

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.