首页 > 技术文章 > vue 中 script 中内容推荐顺序

wanghao-boke 2021-05-13 17:11 原文

<template>
  <div class="test">
    test
  </div>
</template>

<script>
export default {
  name: "Test",
  props: [''],
  components: {},
  data() {
    return {};
  },
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {},
  beforeUpdate() {},
  updated() {},
  computed: {},
  watch: {},
  methods: {},
  filters: {},
  beforeDestroy() {},
  destroyed() {}
};
</script>

<style lang="scss" scoped>
.test {
  width: 100%;
  height: 100%;
}
</style>

 

推荐阅读