atom添加代码提示片断

# vue文件中使用
#/**
#* @description 添加vue文件代码片断
#* @author 柴建锋 2019-04-01
#*/
'.text.html.vue':
    # ==================================
    # 建立初始化文件
    # ==================================
    'VUE文件初始化':
        'prefix': 'template'
        'body': """
            <template lang="${1:html}">
                $4
            </template>
            <script>
            export default {

            };
            </script>
            <style lang="${2:scss}" ${3:scoped}>

            </style>
        """
    'VUE连接':
        'prefix': 'router-link'
        'body': """
            <router-link :to="{ name: '', params: {} }"></router-link>
        """
    'VUE SLOT':
        'prefix': 'slot'
        'body': """
            <slot ${1:name="${2:name}"}>$3</slot>
        """
相关文章
相关标签/搜索