Skip to content

请问支持vue3吗?我在vue3中使用似乎用不了 #180

@orangeed

Description

@orangeed

在vue3按需引入报错了

import { App } from "vue";
import { WiredButton, WiredInput, WiredDialog } from 'wired-elements'

const wiredELments = [
    WiredButton, WiredInput, WiredDialog
]

export const setWired = (app: App<Element>) => {
    wiredELments.forEach(v => {
        app.use(v)  //这里类型错误了
    })
}

在控制台报错为
Uncaught TypeError: Class constructor WiredButton2 cannot be invoked without 'new'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions