Skip to content

Commit 5c89604

Browse files
authored
fix(tabs): inject 数据增加 ?. (#3045)
1 parent ab3542e commit 5c89604

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/packages/__VUE/tabpane/index.taro.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default create({
3030
const paneStyle = computed(() => {
3131
return {
3232
display:
33-
parentOption.animatedTime.value == 0 && props.paneKey != parentOption.activeKey.value ? 'none' : undefined
33+
parentOption?.animatedTime.value == 0 && props.paneKey != parentOption?.activeKey.value ? 'none' : undefined
3434
} as CSSProperties
3535
})
3636
return {

src/packages/__VUE/tabpane/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default create({
3030
const paneStyle = computed(() => {
3131
return {
3232
display:
33-
parentOption.animatedTime.value == 0 && props.paneKey != parentOption.activeKey.value ? 'none' : undefined
33+
parentOption?.animatedTime.value == 0 && props.paneKey != parentOption?.activeKey.value ? 'none' : undefined
3434
} as CSSProperties
3535
})
3636
return {

0 commit comments

Comments
 (0)