vue3 创建响应式对象数组


DensityCorrection.ts

export default class DensityCorrection {
  control_point = 0;
  x = 0;
  y = 0;
  def_x = 0;
  def_y = 0;
}

使用

import DensityCorrection from "src/entities/DensityCorrection";
let value = ref(<DensityCorrection[]>[]);

声明:小小博客|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - vue3 创建响应式对象数组


Carpe Diem and Do what I like