diff --git a/src/packages/__VUE/tabs/index.taro.vue b/src/packages/__VUE/tabs/index.taro.vue index ec2c23bf6e..e7a871bf81 100644 --- a/src/packages/__VUE/tabs/index.taro.vue +++ b/src/packages/__VUE/tabs/index.taro.vue @@ -150,7 +150,7 @@ export default create({ vnodes.forEach((vnode: VNode, index: number) => { let type = vnode.type; type = (type as any).name || type; - if (type == 'nut-tab-pane') { + if (type == 'NutTabPane') { let title = new Title(); if (vnode.props?.title || vnode.props?.['pane-key'] || vnode.props?.['paneKey']) { let paneKeyType = TypeOfFun(vnode.props?.['pane-key']); diff --git a/src/packages/__VUE/tabs/index.vue b/src/packages/__VUE/tabs/index.vue index 94e2f5f6ff..5da40761f2 100644 --- a/src/packages/__VUE/tabs/index.vue +++ b/src/packages/__VUE/tabs/index.vue @@ -163,7 +163,7 @@ export default create({ vnodes.forEach((vnode: VNode, index: number) => { let type = vnode.type; type = (type as any).name || type; - if (type == 'nut-tab-pane') { + if (type == 'NutTabPane') { let title = new Title(); if (vnode.props?.title || vnode.props?.['pane-key'] || vnode.props?.['paneKey']) { let paneKeyType = TypeOfFun(vnode.props?.['pane-key']);