npm i t-vue-switch
<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>
npm install
npm run serve
npm run build