radio-abandon
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

ant-desgin单选可取消组件

NPM version NPM Downloads Build Status

这是一个基于react、ant-desgin的可以取消的单选组件

安装

npm i --S radio-abandon

使用

import React, { PureComponent } from 'react';
import { RadioAbandon } from 'radio-abandon';
 
const options = [
  { lable: '选项一', value: 1 },
  { lable: '选项二', value: 1 },
];
 
class BasicComponent extends PureComponent {
  render () {
    return (
      <RadioAbandon options={options} />
    )
  }
}

Options

属性 说明 类型 默认值
disabled 整组失效 boolean false
name CheckboxGroup 下所有 input[type="checkbox"] 的 name 属性 string -
options 指定可选项 string[] []
value 指定选中的选项 any -
onChange 变化时回调函数 Function(checkedValue) -

/radio-abandon/

    Package Sidebar

    Install

    npm i radio-abandon

    Weekly Downloads

    0

    Version

    1.0.13

    License

    ISC

    Unpacked Size

    14.7 kB

    Total Files

    11

    Last publish

    Collaborators

    • dutao200