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>
        """
相關文章
相關標籤/搜索