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

vue3 Update docs e.g. @Component is show in all examples whit no reference to @Options #582

Open
SergioFaya opened this issue Dec 29, 2021 · 2 comments

Comments

@SergioFaya
Copy link

As a new Vue developer, I chose to start using vue-cli with typescript and vue-class-component. But when I started the project there was no @component annotation on the classes but a @options one.

After further investigating I discovered that this is a feature added for the Vue3 version but on the home page the Vue2 explanations are shown. Would be necessary to provide more comprehensive docs regarding the differences between the maintained versions like shown in here

@Irozaih
Copy link

Irozaih commented Jan 24, 2022

Any news on v8.0 documentation?

@akoidan
Copy link

akoidan commented Mar 3, 2022

https://github.com/akoidan/vue3-vite-vue-class-component

As I understand vue3 is far from being supported at all. Using this example:
package.json:

{
    "vue-class-component": "https://github.com/vuejs/vue-class-component#next"
}
<template>
  <div>{{ count }}</div>
  <button @click="increment">+1</button>
</template>

<script lang="ts">
import {Options, Vue} from 'vue-class-component'

@Options({})
export default class Counter extends Vue {
  count = 0

  increment() {
    this.count++
    console.log('as')
  }

  decrement() {
    this.count--
  }
}
</script>
rm -rf node_modules && \
yarn install && \
cd node_modules/vue-class-component && \
yarn install && \
yarn build && \
cd ../.. 

property count is not reactive. Upon pressing a button it stil shows 0

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

No branches or pull requests

3 participants