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

Composition API snippets #2741

Closed
1 task done
Namchee opened this issue Mar 1, 2021 · 1 comment
Closed
1 task done

Composition API snippets #2741

Namchee opened this issue Mar 1, 2021 · 1 comment

Comments

@Namchee
Copy link

Namchee commented Mar 1, 2021

  • I have searched through existing issues

Feature Request

Composition API is a new way to write your Vue components. However, currently Vetur only provides quick snippets for Options API for the script tag. It would be awesome if Vetur provides snippets to quickly scaffold Composition API-based components, both with and without TypeScript.

For example, we can type composition-ts to quickly write

<script lang="ts">
import { defineComponent } from '@vue/composition-api';

export default defineComponent({
  setup() {
  
  },
});
</script>

And composition-js to write

<script>
export default {
  setup() {
  
  },
};
</script>
@yoyo930021
Copy link
Member

Fixed #2761

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

No branches or pull requests

2 participants