Files
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00

69 lines
1.9 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* eslint-disable */
/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */
import type { TdRadioGroupProps } from './type';
export default {
/** 是否允许取消选中 */
allowUncheck: Boolean,
/** 是否开启无边框模式 */
borderless: Boolean,
/** 是否禁用全部子单选框 */
disabled: {
type: Boolean,
default: undefined,
},
/** 自定义选中图标和非选中图标。示例:[选中态图标,非选中态图标]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标;仅在使用 options 时生效 */
icon: {
type: [String, Array],
default: 'circle' as TdRadioGroupProps['icon'],
},
/** 用来定义 value / label / disabled 在 `options` 中对应的字段别名 */
keys: {
type: Object,
},
/** HTML 元素原生属性 */
name: {
type: String,
default: '',
},
/** 单选组件按钮形式。RadioOption 数据类型为 string 或 number 时,表示 label 和 value 值相同 */
options: {
type: Array,
},
/** 复选框和内容相对位置。优先级低于 Radio.placement */
placement: {
type: String,
default: 'left' as TdRadioGroupProps['placement'],
validator(val: TdRadioGroupProps['placement']): boolean {
if (!val) return true;
return ['left', 'right'].includes(val);
},
},
/** 只读状态 */
readonly: {
type: Boolean,
default: undefined,
},
/** -1 时代表独立,不再寻找 parent用于头条小程序 */
relationKey: {
type: String,
default: '',
},
/** 选中的值 */
value: {
type: [String, Number, Boolean],
},
/** 选中的值,非受控属性 */
defaultValue: {
type: [String, Number, Boolean],
},
/** 选中值发生变化时触发 */
onChange: {
type: Function,
default: () => ({}),
},
};