Last active
November 5, 2021 22:22
-
-
Save juliovedovatto/75d573c6b6c7e07b00c34f4f91434ad8 to your computer and use it in GitHub Desktop.
VSCode Vetur Snippet for Vue 2.x components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="${TM_FILENAME_BASE/(^[A-Z])|([A-Z])/${2:+-}${2:/downcase}${1:/downcase}/g}"></div> | |
</template> | |
<script> | |
export default { | |
name: '${TM_FILENAME_BASE}', | |
components: {}, | |
props: {}, | |
data() { | |
return {} | |
}, | |
computed: {}, | |
watch: {}, | |
mounted() {}, | |
methods: {} | |
} | |
</script> | |
<style lang="scss" scoped> | |
.${TM_FILENAME_BASE/(^[A-Z])|([A-Z])/${2:+-}${2:/downcase}${1:/downcase}/g} { | |
position: relative; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
TrackerSearchForm.vue
Output: