Skip to content

初次装载Tabs组件报错 #368

@Darwin666

Description

@Darwin666
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.2.4

Environment

vue3.2.1

Reproduction link

https://vuecomponent.github.io/ant-design-vue/components/tabs-cn/#components-tabs-demo-basic-usage

Steps to reproduce

使用vue-cli3搭建的工程,在.vue中按需引入Tabs组件,并使用Tabs文档中的基础用法

What is expected?

console无报错,页面正常展示

What is actually happening?

页面正常展示,console报一系列错:
[Vue warn]: Failed to resolve directive: ant-ref (found in )
[Vue warn]: Failed to resolve directive: ant-ref (found in )
[Vue warn]: Failed to resolve directive: ant-ref (found in )
[Vue warn]: Failed to resolve directive: ant-ref (found in )
[Vue warn]: Failed to resolve directive: ant-ref (found in )
[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'style' of undefined" found in
--->






at src/views/About.vue








at src/App.vue

TypeError: Cannot read property 'style' of undefined
at componentDidUpdate (InkTabBarNode.js?027b:38)
at VueComponent.eval (InkTabBarNode.js?027b:123)
at Array.eval (vue.runtime.esm.js?2b0e:1916)
at flushCallbacks (vue.runtime.esm.js?2b0e:1835)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions