Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wujie-vue3 组件局部注册时类型错误 #393

Open
gadzan opened this issue Feb 14, 2023 · 2 comments
Open

wujie-vue3 组件局部注册时类型错误 #393

gadzan opened this issue Feb 14, 2023 · 2 comments

Comments

@gadzan
Copy link
Contributor

gadzan commented Feb 14, 2023

描述bug
wujie-vue3 组件局部注册时类型错误

如何复现

<template>
    <WujieVue width="100%" height="100%" :name="appId" :url="appPath"></WujieVue>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import WujieVue from "wujie-vue3";

export default defineComponent({
    components: {
        WujieVue
    },
    props: {
        app: {
            type: String,
            default: ''
        },
        appPath: {
            type: String,
            default: ''
        }
    },
}

错误截图
截图_2023-02-14_13-48-15

最小复现仓库或者地址

@yiludege
Copy link
Collaborator

改了vue2的忘了改vue3的了,可以先 ignore 一下

gadzan added a commit to gadzan/wujie that referenced this issue Feb 14, 2023
@gadzan
Copy link
Contributor Author

gadzan commented Feb 14, 2023

临时方案是只能通过 @ts-nocheck 关闭整个文件的类型检测...

<script lang="ts">
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import { defineComponent, computed } from 'vue';
import WujieVue from "wujie-vue3";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants