buqiyuan / vite-vue3-lowcode

vue3.x + vite2.x + vant + element-plus H5移动端低代码平台 lowcode 可视化拖拽 可视化编辑器 visual editor 类似易企秀的H5制作、建站工具、可视化搭建工具
https://buqiyuan.github.io/vite-vue3-lowcode
MIT License
3.15k stars 774 forks source link

这个错误是什么问题啊 #37

Open sdorein opened 2 months ago

sdorein commented 2 months ago

Type 'ModalOptions' is not assignable to type '{ title?: string | undefined; footer?: (() => Element) | null | undefined; content: (() => Element) | { uid: number; type: FunctionalComponent<{}, any, any> | { ...; }; ... 20 more ...; isDeactivated: boolean; }; onConfirm?: (() => void) | undefined; onCancel?: (() => void) | undefined; props?: { ...; } | undefined; }'. Types of property 'content' are incompatible. Type 'ComponentInternalInstance | (() => Element)' is not assignable to type '(() => Element) | { uid: number; type: FunctionalComponent<{}, any, any> | { [x: string]: any; setup?: ((this: void, props: LooseRequired<{}>, ctx: { ...; }) => any) | undefined; ... 48 more ...; beforeRouteLeave?: NavigationGuard | undefined; }; ... 20 more ...; isDeactivated: boolean; }'. Type 'ComponentInternalInstance' is not assignable to type '(() => Element) | { uid: number; type: FunctionalComponent<{}, any, any> | { [x: string]: any; setup?: ((this: void, props: LooseRequired<{}>, ctx: { ...; }) => any) | undefined; ... 48 more ...; beforeRouteLeave?: NavigationGuard | undefined; }; ... 20 more ...; isDeactivated: boolean; }'. Type 'ComponentInternalInstance' is not assignable to type '{ uid: number; type: FunctionalComponent<{}, any, any> | { [x: string]: any; setup?: ((this: void, props: LooseRequired<{}>, ctx: { attrs: Data; slots: Readonly; emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void); expose: (exposed?: Record<...> | undefined) =>...'. The types of 'appContext.app.config.globalProperties.$router.currentRoute' are incompatible between these types. Type 'Ref' is missing the following properties from type 'RouteLocationNormalizedLoadedGeneric': matched, name, params, fullPath, and 5 more. FILE E:/GitProject/My-vue-project/vite-vue3-lowcode/src/visual-editor/hooks/useModal.tsx:48:9

46 |     const methods = {
47 |       service: (options: ModalOptions) => {

48 | state.options = options; | ^^^^^^^^^^^^^ 49 | methods.show(); 50 | }, 51 | show: () => (state.visible = true),

[TypeScript] Found 1 error. Watching for file changes.

liaozhihao666 commented 2 months ago

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