0.1.0 • Published 5 years ago

@hitchy/vue-widgets v0.1.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

@hitchy/vue-widgets

common Vue.js components for use with Hitchy-based applications

License

MIT

Usage

Install this package:

npm i @hitchy/vue-widgets

In your application's main.js pass this package to Vue.use():

import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import HitchyVueWidgets from "@hitchy/vue-widgets";

Vue.config.productionTip = false;

Vue.use( HitchyVueWidgets );

new Vue( {
	router,
	store,
	render: h => h( App )
} ).$mount( "#app" );

This will register components of this package with prefix hitchy- as global components of your application. Using options on calling Vue.use() you can pick a different prefix to use:

Vue.use( HitchyVueWidgets, { prefix: "my-custom" } );

In this case, component hitchy-list will be exposed as my-custom-list instead.

Styling Components

Basically, this plugin doesn't come with a particular design applied to provided components, by default. You might want to apply a provided design instead of your own explicitly, though.

In your application's main.js file import the design definition you like to use by inserting

import "@hitchy/vue-widgets/theme/default.scss";
0.1.1-alpha.2

5 years ago

0.1.1-alpha.4

5 years ago

0.1.1-alpha.3

5 years ago

0.1.1-alpha.1

5 years ago

0.1.0

5 years ago

0.1.0-alpha.2

5 years ago

0.1.0-alpha.1

5 years ago