Last active
May 30, 2019 13:59
-
-
Save a9/ebd9b1b772b0499ebcaf80fa1e8ee749 to your computer and use it in GitHub Desktop.
Vue Typescript Component File Template as WebStorm #vue
This file contains 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
#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