Skip to content

按需引入Table,报错 runtime-core.d.ts(872, 5): 'install' is declared here. #3133

@lostimever

Description

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

Version

2.0.0-beta.13

Environment

Vue3.0 typescript

Reproduction link

https://2x.antdv.com/docs/vue/introduce-cn/

Steps to reproduce

import { createApp } from 'vue'
import App from '../App.vue'
import { Table } from 'ant-design-vue'

const app = createApp(App)
app.use(Table)

What is expected?

正常引用

What is actually happening?

Argument of type '{ new (...args: any[]): { $: ComponentInternalInstance; $data: {}; $props: Partial<{ footer: (...args: any[]) => any; title: (...args: any[]) => any; onChange: (...args: any[]) => any; prefixCls: string; ... 16 more ...; onRowClick: (...args: any[]) => any; }> & Pick<...>; ... 10 more ...; $watch(source: string | Fu...' is not assignable to parameter of type 'Plugin_2'.
Property 'install' is missing in type '{ new (...args: any[]): { $: ComponentInternalInstance; $data: {}; $props: Partial<{ footer: (...args: any[]) => any; title: (...args: any[]) => any; onChange: (...args: any[]) => any; prefixCls: string; ... 16 more ...; onRowClick: (...args: any[]) => any; }> & Pick<...>; ... 10 more ...; $watch(source: string | Fu...' but required in type '{ install: PluginInstallFunction; }'.
runtime-core.d.ts(872, 5): 'install' is declared here.

image

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