vue script内容推荐顺序使用

<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>


你可能感兴趣的:(vue,javascript)