config_tools: hide required checkbox's & drop-down box label

Required fields with a checkbox or drop-down box will potentially
cause confusion. So hide the label when display them.

Tracked-On: #7864
Signed-off-by: Yuanyuan Zhao <yuanyuan.zhao@linux.intel.com>
This commit is contained in:
Yuanyuan Zhao 2022-07-01 14:46:02 +08:00 committed by acrnsi-robot
parent 8adf40293c
commit d8761ed7f0
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ export default {
label: () => h('span', {
class: {
genFormLabel: true,
genFormItemRequired: props.required,
genFormItemRequired: props.required && props.schema['ui:widget'] !== 'b-form-checkbox' && !props.uiProps.enumOptions,
},
}, [
...miniDescriptionVNode ? [miniDescriptionVNode] : [],