xiahan cb6ddd3787 feature 代码提交 5 月之前
..
README.en-US.md cb6ddd3787 feature 代码提交 5 月之前
README.md cb6ddd3787 feature 代码提交 5 月之前
props.d.ts cb6ddd3787 feature 代码提交 5 月之前
props.js cb6ddd3787 feature 代码提交 5 月之前
radio.d.ts cb6ddd3787 feature 代码提交 5 月之前
radio.js cb6ddd3787 feature 代码提交 5 月之前
radio.json cb6ddd3787 feature 代码提交 5 月之前
radio.wxml cb6ddd3787 feature 代码提交 5 月之前
radio.wxss cb6ddd3787 feature 代码提交 5 月之前
type.d.ts cb6ddd3787 feature 代码提交 5 月之前
type.js cb6ddd3787 feature 代码提交 5 月之前

README.en-US.md

:: BASE_DOC ::

API

Radio Props

name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N allow-uncheck | Boolean | false | - | N block | Boolean | true | - | N checked | Boolean | false | - | N default-checked | Boolean | undefined | uncontrolled property | N content | String / Slot | - | see more ts definition | N content-disabled | Boolean | false | - | N disabled | Boolean | undefined | - | N icon | String / Array / Slot | 'circle' | Typescript:'circle' \| 'line' \| 'dot' \| Array<string> | N label | String / Slot | - | see more ts definition | N max-content-row | Number | 5 | - | N max-label-row | Number | 3 | - | N name | String | - | - | N placement | String | - | options: left/right | N readonly | Boolean | undefined | - | N value | String / Number / Boolean | false | Typescript:T type RadioValue = string \| number \| booleansee more ts definition | N

Radio Events

name | params | description -- | -- | -- change | (checked: boolean) | -

Radio External Classes

className | Description -- | -- t-class | - t-class-border | - t-class-content | - t-class-icon | - t-class-label | -

RadioGroup Props

name | type | default | description | required -- | -- | -- | -- | -- style | Object | - | CSS(Cascading Style Sheets) | N custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N allow-uncheck | Boolean | false | - | N borderless | Boolean | false | - | N disabled | Boolean | undefined | - | N icon | String / Array | 'circle' | Typescript:'circle' \| 'line' \| 'dot' \| Array<string> | N keys | Object | - | Typescript:KeysTypesee more ts definition | N name | String | - | - | N options | Array | - | Typescript:Array<RadioOption> type RadioOption = string \| number \| RadioOptionObj interface RadioOptionObj { label?: string; value?: string \| number; readonly?: boolean; disabled?: boolean; allowUncheck?: boolean; }see more ts definition | N placement | String | left | options: left/right | N readonly | Boolean | undefined | - | N value | String / Number / Boolean | - | Typescript:T type RadioValue = string \| number \| booleansee more ts definition | N default-value | String / Number / Boolean | undefined | uncontrolled property。Typescript:T type RadioValue = string \| number \| booleansee more ts definition | N

RadioGroup Events

name | params | description -- | -- | -- change | (value: RadioValue) | -

CSS Variables

The component provides the following CSS variables, which can be used to customize styles. Name | Default Value | Description -- | -- | -- --td-radio-bg-color | @bg-color-container | - --td-radio-border-color | @component-stroke | - --td-radio-content-checked-color | @font-gray-2 | - --td-radio-content-color | @font-gray-2 | - --td-radio-content-disabled-color | @font-gray-4 | - --td-radio-content-font-size | 28rpx | - --td-radio-content-line-height | 44rpx | - --td-radio-font-size | 32rpx | - --td-radio-icon-checked-color | @brand-color | - --td-radio-icon-color | @component-border | - --td-radio-icon-disabled-bg-color | @bg-color-component-disabled | - --td-radio-icon-disabled-color | @brand-color-disabled | - --td-radio-icon-size | 48rpx | - --td-radio-label-checked-color | @font-gray-1 | - --td-radio-label-color | @font-gray-1 | - --td-radio-label-disabled-color | @font-gray-4 | - --td-radio-label-line-height | 48rpx | - --td-radio-vertical-padding | 32rpx | -