Skip to content

Commit

Permalink
fix(tabs): change vnode.name
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Nov 20, 2023
1 parent 87dd87e commit 6311388
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/tabs/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/tabs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 6311388

Please sign in to comment.