12 lines
282 B
Vue
12 lines
282 B
Vue
<script setup lang="ts">
|
||
// 最基础用法:v-model 绑 boolean;change 回传新值与原生事件
|
||
import { ref } from 'vue'
|
||
import { G3Switch } from '@g3soft/ui'
|
||
|
||
const enabled = ref(true)
|
||
</script>
|
||
|
||
<template>
|
||
<G3Switch v-model="enabled">启用通知</G3Switch>
|
||
</template>
|