Typescript Class

import _ from "lodash";

/**类 ${NAME}*/
export default class ${NAME} {
  /**v-for :key*/
  forKey?: string = _.uniqueId()

  constructor(obj?: ${NAME}) {
    if (obj) {
      _.assign(this, obj)
    }
  }
}

Vue Component with Typescript and Stylus

<template>
  <div class="${NAME}">
    
  </div>
</template>

<script lang="ts">
import {Vue, Component, Prop, Watch} from "vue-property-decorator";

@Component
export default class ${NAME} extends Vue {
  
}
</script>

<style scoped lang="stylus">

.${NAME}
  padding 0

</style>

本文地址:

https://www.cnblogs.com/stumpx/p/13359109.html

相关文章:

  • 2022-12-23
  • 2021-04-01
  • 2021-10-03
  • 2021-12-25
  • 2021-04-10
  • 2021-08-06
  • 2021-05-20
  • 2022-01-17
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2021-05-13
  • 2021-11-03
  • 2022-02-01
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案