feat: 新增 switch 组件 onswitch-value 与 unswitch-value 属性

This commit is contained in:
就眠儀式
2022-04-01 00:57:49 +08:00
parent d4436c6c16
commit 32afaeef53
6 changed files with 49 additions and 10 deletions

View File

@@ -146,6 +146,32 @@ export default {
:::
::: title 自定义值
:::
::: demo
<template>
<lay-switch v-model="active6" onswitch-value="dark" unswitch-value="light"></lay-switch>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const active6 = ref('dark')
return {
active6
}
}
}
</script>
:::
::: title Switch 属性
:::