question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have implemented the class API based on setup, which is friendly to TS types and supports vue2 and vue3

See original GitHub issue

vue-class-component has been widely used in our projects. vue-class-setup hopes to get official support and further promote the best practices of Vue class. @ktsn

See: https://github.com/fmfe/vue-class-setup

image

image

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

1reaction
rootuxcommented, Sep 6, 2022

Love it - will give it a try

1reaction
wlhylcommented, Sep 4, 2022

vue-class-setup正是所需要的。nice!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Vue 3 with TypeScript - LogRocket Blog
Build an example Vue app in TypeScript with class-based components, Vuex for state management, lifecycle hooks, and more.
Read more >
Using Vue with TypeScript - Vue.js
Vue is written in TypeScript itself and provides first-class TypeScript support. All official Vue packages come with bundled type declarations that should work ......
Read more >
Vue 3.0 support · Issue #294 - GitHub
Hi, do you plan to support this project when 3.0 arrives? Or the Vue core team would integrate classes API natively?
Read more >
What's new in Vue 3 — a roundup. Vue 3 - Medium
Having said vue doesn't have plans to deprecate options API anytime soon. Why should we care about composition API? Vue 2 supports a...
Read more >
Vue 3 Tutorial (for Vue 2 Users) - Vue.js Developers
What we'll build; Vue 3 installation and setup; Creating a new Vue 3 app; Adding state properties; Using a root component ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found