mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
a73dacc92b
fix #82
29 lines
422 B
Vue
29 lines
422 B
Vue
<template>
|
|
<div>
|
|
<div>
|
|
use v-model
|
|
<el-switch v-model="v" />
|
|
</div>
|
|
<div>
|
|
use :value
|
|
<el-switch :value="true" />
|
|
</div>
|
|
<div>
|
|
use :model-value
|
|
<el-switch :model-value="true" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue'
|
|
export default defineComponent({
|
|
data() {
|
|
return {
|
|
v: true,
|
|
}
|
|
},
|
|
})
|
|
</script>
|
|
|