vue类型

组件类型

import {ComponentPublicInstance, getCurrentInstance} from "vue";


export abstract class CommonComponent {
  proxy?: ComponentPublicInstance = null;
  constructor() {
    this.proxy = getCurrentInstance()?.proxy;
  }
}
posted @ 2024-07-29 10:39  fight139  阅读(2)  评论(0编辑  收藏  举报