1. ctrl+shift+A
  2. 输入live
  3. webstorm中配置vue代码片段

    webstorm中配置vue代码片段

  4.  

    上述红框插入一下代码:
    <template> #[[$END$]]# </template> <script> export default { name: '${COMPONENT_NAME}', props: {}, components: { }, data () { return { } }, computed: { name () { return this.data } }, watch: { data (newValue, oldValue) { } }, methods: { name () { } }, filters: { fnName: function (value) { return value } } } </script> <style scoped> </style>

     以上操作满足组件/实例的选项的顺序

    - name
    - props
    - components
    - data
    - computed
    - watch
    - directives
    - methods
    - filters

     

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
  • 2022-02-16
  • 2021-09-15
  • 2021-10-01
  • 2017-12-06
  • 2022-12-23
猜你喜欢
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-11-23
相关资源
相似解决方案