Skip to content

Commit

Permalink
fix(tabs): inject 数据增加 ?. (#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
2977938133 authored Apr 26, 2024
1 parent ab3542e commit 5c89604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages/__VUE/tabpane/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default create({
const paneStyle = computed(() => {
return {
display:
parentOption.animatedTime.value == 0 && props.paneKey != parentOption.activeKey.value ? 'none' : undefined
parentOption?.animatedTime.value == 0 && props.paneKey != parentOption?.activeKey.value ? 'none' : undefined
} as CSSProperties
})
return {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/tabpane/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default create({
const paneStyle = computed(() => {
return {
display:
parentOption.animatedTime.value == 0 && props.paneKey != parentOption.activeKey.value ? 'none' : undefined
parentOption?.animatedTime.value == 0 && props.paneKey != parentOption?.activeKey.value ? 'none' : undefined
} as CSSProperties
})
return {
Expand Down

0 comments on commit 5c89604

Please sign in to comment.