vue-laxxx

0.2.0 • Public • Published

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.

Package Sidebar

Install

npm i vue-laxxx

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

38.9 kB

Total Files

10

Last publish

Collaborators

  • muhibbudins