Skip to content

Instantly share code, notes, and snippets.

@a9
Last active May 30, 2019 13:59
Show Gist options
  • Save a9/ebd9b1b772b0499ebcaf80fa1e8ee749 to your computer and use it in GitHub Desktop.
Save a9/ebd9b1b772b0499ebcaf80fa1e8ee749 to your computer and use it in GitHub Desktop.
Vue Typescript Component File Template as WebStorm #vue
#set( $ClassName = "${Prefix}-${NAME}" )
#set( $ComponentNamePrefix = ${StringUtils.removeAndHump(${Prefix}, "-")} )
#set( $ComponentName = ${StringUtils.removeAndHump(${NAME}, "-")} )
<template>
<div class="${ClassName}">#[[$END$]]#</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'
@Component({
name: '${ComponentNamePrefix}${ComponentName}'
})
export default class ${ComponentName} extends Vue {
}
</script>
<style lang="scss">
.${ClassName} {}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment