dykj-football/uni_modules/uview-plus/components/u-radio-group/props.js

95 lines
2.8 KiB
JavaScript
Raw Permalink Normal View History

2024-04-17 15:27:43 +08:00
import defProps from '../../libs/config/props.js';
export default {
props: {
// #ifdef VUE3
// 绑定的值
modelValue: {
type: [String, Number, Boolean],
default: () => defProps.radioGroup.value
},
// #endif
// #ifdef VUE2
// 绑定的值
value: {
type: [String, Number, Boolean],
default: () => defProps.radioGroup.value
},
// #endif
// 是否禁用全部radio
disabled: {
type: Boolean,
default: () => defProps.radioGroup.disabled
},
// 形状circle-圆形square-方形
shape: {
type: String,
default: () => defProps.radioGroup.shape
},
// 选中状态下的颜色如设置此值将会覆盖parent的activeColor值
activeColor: {
type: String,
default: () => defProps.radioGroup.activeColor
},
// 未选中的颜色
inactiveColor: {
type: String,
default: () => defProps.radioGroup.inactiveColor
},
// 标识符
name: {
type: String,
default: () => defProps.radioGroup.name
},
// 整个组件的尺寸默认px
size: {
type: [String, Number],
default: () => defProps.radioGroup.size
},
// 布局方式row-横向column-纵向
placement: {
type: String,
default: () => defProps.radioGroup.placement
},
// label的文本
label: {
type: [String],
default: () => defProps.radioGroup.label
},
// label的颜色 (默认 '#303133'
labelColor: {
type: [String],
default: () => defProps.radioGroup.labelColor
},
// label的字体大小px单位
labelSize: {
type: [String, Number],
default: () => defProps.radioGroup.labelSize
},
// 是否禁止点击文本操作checkbox(默认 false )
labelDisabled: {
type: Boolean,
default: () => defProps.radioGroup.labelDisabled
},
// 图标颜色
iconColor: {
type: String,
default: () => defProps.radioGroup.iconColor
},
// 图标的大小单位px
iconSize: {
type: [String, Number],
default: () => defProps.radioGroup.iconSize
},
// 竖向配列时,是否显示下划线
borderBottom: {
type: Boolean,
default: () => defProps.radioGroup.borderBottom
},
// 图标与文字的对齐方式
iconPlacement: {
type: String,
default: () => defProps.radio.iconPlacement
}
}
}