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

Support Vue 2 #38

Closed
John60676 opened this issue Apr 26, 2021 · 11 comments
Closed

Support Vue 2 #38

John60676 opened this issue Apr 26, 2021 · 11 comments
Labels

Comments

@John60676
Copy link
Member

Feature Description

Use composition-api to be compatible with Vue 2

@ModyQyW
Copy link

ModyQyW commented May 17, 2021

或许可以考虑一下 vue-demi?:D

@John60676
Copy link
Member Author

这个有考虑过,我都实现一遍。最后看看采取什么方案比较好

@John60676 John60676 pinned this issue Jul 7, 2021
@byoungd
Copy link

byoungd commented Aug 24, 2021

这个有考虑过,我都实现一遍。最后看看采取什么方案比较好

Does it support Vue2 now or when will it be released?

@John60676
Copy link
Member Author

@byoungd
😅 Not sure. But hoping to make at least alpha release soon enough!

@CracKerMe
Copy link

期待 vue2 的实现

@kylee0325
Copy link

你好,尝试了一下vue-demi的方式实现同时支持vue2和3,目前看起来是能用,除了vue2下需要在src目录中加入shims.d.ts来规避defineComponent导致的编译错误

declare module '*.vue' {
    import { defineComponent } from '@vue/composition-api';
    const component: ReturnType<typeof defineComponent>;
    export default component;
}

这是我fork出来的分支地址https://github.com/kylee0325/vue-request/tree/compatible
你可以看下是否能帮上忙,如有问题,也请知会一下。

@John60676
Copy link
Member Author

你好,尝试了一下vue-demi的方式实现同时支持vue2和3,目前看起来是能用,除了vue2下需要在src目录中加入shims.d.ts来规避defineComponent导致的编译错误

declare module '*.vue' {
    import { defineComponent } from '@vue/composition-api';
    const component: ReturnType<typeof defineComponent>;
    export default component;
}

这是我fork出来的分支地址https://github.com/kylee0325/vue-request/tree/compatible 你可以看下是否能帮上忙,如有问题,也请知会一下。

感谢,2.0 已经在做了

@luyi2008
Copy link

Hello John. Is there a release schedule?

@John60676
Copy link
Member Author

I hope to have an alpha release by April.

@John60676
Copy link
Member Author

2.x Roadmap

@John60676 John60676 unpinned this issue Mar 24, 2022
@John60676
Copy link
Member Author

alpha 版本已发布

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

No branches or pull requests

6 participants