Skip to content

Commit

Permalink
fix(option): prop.label or prop.value is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jxzho committed May 6, 2024
1 parent 056b00b commit 84df755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fighting-design/option/src/option.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
/** 获取到 label */
const label = slotLabel.value || prop.label.toString() || prop.value.toString()
const label = slotLabel.value || prop.label?.toString() || prop.value?.toString()
/** 获取到选中的项目 */
const currentItem = parentInject.childrenLabels.find(item => {
return item.slot === label
Expand Down

0 comments on commit 84df755

Please sign in to comment.