cultivationApp/node_modules/uview-plus/components/u-checkbox-group/props.js

93 lines
2.5 KiB
JavaScript
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.

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