Skip to content

teana0953/t-vue-switch

Repository files navigation

t-vue-switch

Module Usage

npm i t-vue-switch

demo.vue

<template>
    <div id="app">
        <app-switch v-model="statuss[index]" :isRound="index"></app-switch>
    </div>
</template>

<script>
import Switch from 't-vue-switch';

export default {
    name: 'App',
    data: function() {
        return {
            statuss: [false, false],
        };
    },
    components: {
        appSwitch: Switch,
    },
};
</script>

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Customize configuration

See Configuration Reference.

Other Notes

  1. npm url
  2. demo