mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-15 10:43:12 +00:00
50 lines
1.1 KiB
Vue
50 lines
1.1 KiB
Vue
<template>
|
|
<section>
|
|
<h2 class="title">Switch</h2>
|
|
|
|
<div>
|
|
<md-switch :model.sync="checked0" id="my-test0" name="my-test0"></md-switch>
|
|
</div>
|
|
|
|
<div v-md-theme="'indigo'">
|
|
<md-switch :model.sync="checked1" id="my-test1" name="my-test1"></md-switch>
|
|
</div>
|
|
|
|
<div v-md-theme="'blue'">
|
|
<md-switch :model.sync="checked2" id="my-test2" name="my-test2"></md-switch>
|
|
</div>
|
|
|
|
<div v-md-theme="'orange'">
|
|
<md-switch :model.sync="checked3" id="my-test3" name="my-test3"></md-switch>
|
|
</div>
|
|
|
|
<div v-md-theme="'bottom-bar'">
|
|
<md-switch :model.sync="checked4" id="my-test4" name="my-test4"></md-switch>
|
|
</div>
|
|
|
|
<div v-md-theme="'bottom-bar'">
|
|
<md-switch :model.sync="checked5" id="my-test5" name="my-test5" disabled></md-switch>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
section {
|
|
padding: 0 24px;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
checked0: true,
|
|
checked1: true,
|
|
checked2: true,
|
|
checked3: true,
|
|
checked4: true,
|
|
checked5: true
|
|
};
|
|
}
|
|
};
|
|
</script>
|