-
-
Notifications
You must be signed in to change notification settings - Fork 337
Open
Description
在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
Labels
No labels