Vue Demi同时支持vue2和vue3模板

<template>
  <div>

  </div>
</template>
<script lang="ts">
//引入vue-demi之后就可以像vue3一样使用vue3里的api了需要那个引入那个
import { ref, reactive, defineComponent, nextTick, onActivated, onDeactivated, onMounted, onBeforeUnmount, provide, watch, computed, onUpdated, onBeforeUpdate } from 'vue-demi';
//引入moment这个是处理时间的
import Moment from 'moment';
export default defineComponent({
  name: 'operationStaff',
  computed: {},
  setup() {
    const vm = new operationStaff
    return {
      
    }
  }
})
class operationStaff {

}
</script>

你可能感兴趣的:(JavaScript,TypeScript,vue,vue.js,javascript,前端)