Skip to content

Commit

Permalink
docs: sync api
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Sep 19, 2024
1 parent 4d228f7 commit 183464d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/radio/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ export default {
},
},
/** 只读状态 */
readonly: Boolean,
readonly: {
type: Boolean,
default: undefined,
},
/** 单选按钮的值 */
value: {
type: [String, Number, Boolean] as PropType<TdRadioProps['value']>,
Expand Down
2 changes: 1 addition & 1 deletion src/radio/radio.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ maxContentRow | Number | 5 | \- | N
maxLabelRow | Number | 3 | \- | N
name | String | - | \- | N
placement | String | left | options: left/right | N
readonly | Boolean | false | \- | N
readonly | Boolean | undefined | \- | N
value | String / Number / Boolean | undefined | Typescript:`T` | N
onChange | Function | | Typescript:`(checked: boolean, context: { e: Event }) => void`<br/> | N

Expand Down
2 changes: 1 addition & 1 deletion src/radio/radio.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ maxContentRow | Number | 5 | 内容最大行数限制 | N
maxLabelRow | Number | 3 | 主文案最大行数限制 | N
name | String | - | HTML 元素原生属性 | N
placement | String | left | 复选框和内容相对位置。可选项:left/right | N
readonly | Boolean | false | 只读状态 | N
readonly | Boolean | undefined | 只读状态 | N
value | String / Number / Boolean | undefined | 单选按钮的值。TS 类型:`T` | N
onChange | Function | | TS 类型:`(checked: boolean, context: { e: Event }) => void`<br/>选中状态变化时触发 | N

Expand Down
1 change: 0 additions & 1 deletion src/radio/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export interface TdRadioProps<T = RadioValue> {
placement?: 'left' | 'right';
/**
* 只读状态
* @default false
*/
readonly?: boolean;
/**
Expand Down

0 comments on commit 183464d

Please sign in to comment.