Created
August 11, 2021 14:10
-
-
Save luiseok/eb41757ba580f9412783352cb2003700 to your computer and use it in GitHub Desktop.
IntelliJ Vue Single File Component File Template
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
#set( $regex = "([a-z])([A-Z]+)") | |
#set( $replacement = "$1-$2") | |
#set( $COMPONENT_NAME_KEBAB = $COMPONENT_NAME.replaceAll($regex, $replacement).toLowerCase()) | |
<template> | |
<div class="${COMPONENT_NAME_KEBAB}"> | |
#[[$END$]]# | |
</div> | |
</template> | |
<script> | |
export default { | |
name: "${COMPONENT_NAME}" | |
} | |
</script> | |
<style lang="scss" scoped> | |
.$COMPONENT_NAME_KEBAB {} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment