Switch add new prop: true-color & false-color
This commit is contained in:
parent
e3930b7ace
commit
485db11ee2
2 changed files with 24 additions and 1 deletions
|
@ -32,6 +32,8 @@
|
|||
<br><br>
|
||||
<i-switch :disabled="disabled"></i-switch>
|
||||
<Button type="primary" @click="disabled = !disabled">Toggle Disabled</Button>
|
||||
<Divider></Divider>
|
||||
<i-switch v-model="switch1" true-color="#13ce66" false-color="#ff4949" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -40,7 +42,8 @@
|
|||
return {
|
||||
m1: true,
|
||||
disabled: true,
|
||||
loading: false
|
||||
loading: false,
|
||||
switch1: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue