fix(Checkbox): bind-group prop not work #7447

This commit is contained in:
chenjiahan
2020-11-22 19:12:27 +08:00
parent 2cb5e5e566
commit ec5684c53e
3 changed files with 18 additions and 8 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ export default defineComponent({
role: String,
parent: Object,
checked: Boolean,
bindGroup: Boolean,
bem: {
type: Function,
required: true,
@@ -34,7 +35,7 @@ export default defineComponent({
const iconRef = ref<HTMLElement>();
const getParentProp = (name: string) => {
if (props.parent) {
if (props.parent && props.bindGroup) {
return props.parent.props[name];
}
return null;