GitShow/vuejs/vue-class-component
vuejs

vue-class-component

ES / TypeScript decorator for class-style Vue components.

by vuejs
Star on GitHubForknpm

TypeScript

5.8k stars428 forks42 contributorsQuiet · 9mo agoSince 2015v7.2.6MIT

Meet the team

See all 42 on GitHub →
ktsn
ktsn129 contributions
yyx990803
yyx99080345 contributions
dependabot[bot]Bot
dependabot[bot]12 contributions
kaorun343
kaorun3434 contributions
kuitos
kuitos2 contributions
finico
finico2 contributions
AshtomGVA
AshtomGVA1 contribution
briangonzalez
briangonzalez1 contribution

Languages

View on GitHub →
TypeScript62.7%
JavaScript29.7%
Vue5.7%
Shell1.4%
HTML0.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
50
✓README✓License✓Contributing○Code of Conduct✓Issue Template○PR Template

Recent PRs & issues

Quiet · Last activity 9mo ago
See all on GitHub →
000Sonic
how to overwrite method of parent classOpenIssue

This is my code, got error: defines instance member property 'method', but extended class 'B' defines it as instance member function

000Sonic · 8mo ago
Mikilll94
Deprecate vue-class-componentOpenIssue

Here you can read a post from Evan You @yyx990803 https://github.com/vuejs/vue-next/issues/4744#issuecomment-937369062 I feel like this library is not maintained anymore. Maybe it's time to deprecate it? made sense for Vue 2.x when the TypeScript support was really bad. Currently this library provides no additional benefits, it just modifies the syntax of declaring a component. Additionally almost all users of are using (https://github.com/kaorun343/vue-property-decorator) which also seems abandoned. For Vue 3.x the author of @ktsn introduced a new way of declaring props in a component vuejs/vue-class-component#465 which IMO looks really ugly and most developers will not like it. This creates additional chaos in the Vue ecosystem because now you can use the new way of declaring props for class components or just install and use decorators like it was before. Additionally you can also use normal Options API or Composition API. In conclusion, my suggestion is to deprecate and do not further suggest new developers using it. There is no point to fragment the Vue ecosystem into class components and object components where class components provides no gain over the standard Vue syntax.

Mikilll94 · 8mo ago
toplyb
In Vue2 and vue-class-component 7.2.3, how can i add a properties to the Object 'this' OpenIssue

In the file: I want to add the '$messageBox' in 'this', but i got the error in Vue component file: My code is :

toplyb · 1y ago

Recent fixes

View closed PRs →
lmiller1990
Deprecate this and recommend Vue Facing DecoratorMergedPR

No-one in the Vue.js org is maintaining this. I think we should deprecate, or at least let people know it's not getting active updates, and point them to a more up to date alternative.

lmiller1990 · 9mo ago
lzxb
I have implemented the class API based on setup, which is friendly to TS types and supports vue2 and vue3ClosedIssue

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

lzxb · 1y ago
Maxttier
--ClosedIssue

Maxttier · 1y ago
Structured data for AI agents

Repository: vuejs/vue-class-component. Description: ES / TypeScript decorator for class-style Vue components. Stars: 5761, Forks: 428. Primary language: TypeScript. Languages: TypeScript (62.7%), JavaScript (29.7%), Vue (5.7%), Shell (1.4%), HTML (0.6%). License: MIT. Latest release: v7.2.6 (5y ago). Open PRs: 31, open issues: 70. Last activity: 9mo ago. Community health: 50%. Top contributors: ktsn, yyx990803, dependabot[bot], kaorun343, kuitos, finico, AshtomGVA, briangonzalez, ChristianKienle, decadef20 and others.

·@ofershap

Replace github.com with gitshow.dev