Skip to content

开关

基于 naive-ui 的switch二次封装。

INFO

无需引入,可直接使用

Usage

vue
<template>
  <w-switch v-model:value="switchValue" />
</template>

Props

名称类型默认值说明

Type

ts
import type { SwitchProps } from 'naive-ui'

import { props } from './props'

type ExtendProps = Partial<ExtractPropTypes<typeof props>>

export interface WSwitchProps extends SwitchProps, ExtendProps {}

Released under the MIT License.