Subscribe on changes!

defineAsyncComponent 支持Props传值么 ?

avatar
Jul 22nd 2022

What problem does this feature solve?

` export function detail(info) { const data = '我的后端请求的数据'; asyncComp.value = defineAsyncComponent({ loader: () => import('@/components/index/account/accountInfo.vue'), props: data, }); }

`

What does the proposed API look like?

` export declare interface AsyncComponentOptions<T = any> { loader: AsyncComponentLoader; loadingComponent?: Component; errorComponent?: Component; delay?: number; timeout?: number; suspensible?: boolean; onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => any; }

`

avatar
Jul 22nd 2022

Hello ..

Thank your for your interest in this project.

However, your issue is a usage/support question, and the issue tracker is reserved exclusively for bug reports and feature requests (as outlined in our Contributing Guide).

We encourage you to ask the community for help. Possible places for your to do that: