Skip to content

单选框

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

INFO

无需引入,可直接使用

Usage

vue
<template>
  <w-radio v-model:value="radioValue" :options="radioOptions" />
</template>

Props

名称类型默认值说明
optionsRadioProps & { label?: string }[][]渲染 radio 组的数组,外加了个 label 字段

Type

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

import { props } from './props'

type ExtendProps = Partial<ExtractPropTypes<typeof props>>

export interface WRadioProps extends RadioGroupProps, ExtendProps {}

基于 MIT 许可发布