{"full_name":"vuejs/vue-class-component","owner":"vuejs","name":"vue-class-component","shard":"1","url":"https://github.com/vuejs/vue-class-component","description":"ES / TypeScript decorator for class-style Vue components.","homepage":"","topics":[],"tag_pages":[],"language":"TypeScript","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/6128107?v=4","created_at":"2015-06-25T20:10:06Z","pushed_at":"2025-10-03T22:24:43Z","metrics":{"stars":5744,"forks":425,"watchers":81,"issues":465,"prs":176,"releases":24,"issues_open":70,"issues_closed":395,"prs_open":31,"prs_closed":38,"prs_merged":107,"discussions":0},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[5745,5744,5744,5744,5744,5744,5744],"forks":[425,425,425,425,425,425,425],"watchers":[null,81,81,81,81,81,81],"issues_open":[null,70,70,70,70,70,70],"prs_open":[null,31,31,31,31,31,31]},"boards":{},"same_owner":[{"full_name":"vuejs/vue","name":"vue","shard":"1","boards":{"daily_watchers":97,"total":27}},{"full_name":"vuejs/awesome-vue","name":"awesome-vue","shard":"1","boards":{}},{"full_name":"vuejs/core","name":"core","shard":"1","boards":{}},{"full_name":"vuejs/docs","name":"docs","shard":"1","boards":{}},{"full_name":"vuejs/petite-vue","name":"petite-vue","shard":"1","boards":{}},{"full_name":"vuejs/vetur","name":"vetur","shard":"1","boards":{}},{"full_name":"vuejs/vitepress","name":"vitepress","shard":"1","boards":{}},{"full_name":"vuejs/vue-router","name":"vue-router","shard":"1","boards":{}},{"full_name":"vuejs/vuepress","name":"vuepress","shard":"1","boards":{}}],"issues":[{"number":584,"title":"[vue3] When is 8.0 releasing?","comments":61,"created_at":"2022-01-11T13:34:39Z"},{"number":406,"title":"[Vue v3] Changes for @Component decorator and Vue base class","comments":61,"created_at":"2020-03-19T11:37:26Z"},{"number":569,"title":"Deprecate vue-class-component","comments":60,"created_at":"2021-10-08T19:41:59Z"},{"number":465,"title":"Class style `props` definition","comments":31,"created_at":"2020-10-04T12:33:35Z"},{"number":416,"title":"Composition functions support and `this` value changes","comments":29,"created_at":"2020-04-26T15:50:27Z"},{"number":632,"title":"So ... still going to be supported for vue3 or ded?","comments":13,"created_at":"2023-01-21T14:36:41Z"},{"number":505,"title":"this.$t is not a function in a class component","comments":13,"created_at":"2021-01-13T18:57:56Z"},{"number":223,"title":"Feedback for ES decorator proposal","comments":13,"created_at":"2018-02-13T18:35:19Z"}],"discussions":[],"latest_release":{"name":"v7.2.6","tag":"v7.2.6","published_at":"2020-09-17T11:38:03Z","body":"\r\n\r\n### Bug Fixes\r\n\r\n* make mixins helper type compatible with previous usage ([#454](https://github.com/vuejs/vue-class-component/issues/454)) ([bdcec69](https://github.com/vuejs/vue-class-component/commit/bdcec69))\r\n\r\n  This is a fix to retain backward compatibility to the old `mixins` type. Although it is recommended not to manually specify mixin types via the type parameters of `mixins`. e.g.\r\n\r\n  ```ts\r\n  // NOT recommended\r\n  @Component\r\n  class MyComp extends mixins<Foo & Bar>(Foo, Bar) {\r\n    // ...\r\n  }\r\n  ```\r\n\r\n  Because you can pass any type to the parameter even if it is not matched with the actual mixin structure.\r\n\r\n  If you want to specify a generic type parameter for your class component, you can extend it before passing in `mixins` helper.\r\n\r\n  ```ts\r\n  @Component\r\n  class GenricComponent<T> extends Vue {\r\n    value: T\r\n  }\r\n\r\n  // Specify the generic parameter by extending it\r\n  @Component\r\n  class SpecialComponent extends GenericComponent<string> {}\r\n\r\n  // Use the specified one as a mixin\r\n  @Component\r\n  class MyComp extends mixins(SpecialComponent) {\r\n    // ...\r\n  }\r\n  ```\r\n\r\n","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}