1.0.4 • Published 5 years ago

@aligov/mobile-c-radio v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@aligov/mobile-c-radio

Install

$ npm install @aligov/mobile-c-radio --save

Usage

import MobileCRadio from '@aligov/mobile-c-radio';

API

Props

nametypedefaultdescribe
iconString'right'icon 位置,left,right
checkedBoolfalse选中态,受控状态
defaultCheckedBoolfalse默认选中态,非受控状态
disabledBoolfalse禁用选择
valueString/Number/Bool/给定 radio 选中 value 值

Function

nameparamreturndescribe
onChangeFunc/点选回调函数

CSS API

名称说明
container组件容器
leftContainer组件内部左侧容器
leftIcon左侧 icon
rightIcon右侧 icon
textWrap中间文本区域容器
textWrap--mainTitle文本区域主标题
textWrap__subTitle文本区域副标题
textWrap__mainTitle--checked主标题选中

Example

import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import MobileCRadio from '@aligov/mobile-c-radio';

render(<MobileCRadio />, document.body, { driver: DriverUniversal });