wired-elements icon indicating copy to clipboard operation
wired-elements copied to clipboard

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

Open orangeed opened this issue 4 years ago • 2 comments

在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'

orangeed avatar Dec 06 '21 07:12 orangeed

See Vue and Web Components for your project setup.

Then copy the content of HelloWiredElements.vue.

At least that worked for me using webpack.

JamesBoon avatar Dec 12 '21 21:12 JamesBoon

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

orangeed avatar Dec 12 '21 21:12 orangeed