TS定义类型

export type OrcInsuranceRecordsTypeBarForm = {
  id?: number
  carNumber?: string
  subCompanyId?: string
  remarkDesc?: string
  insuranceVos?: {
    insuranceType?: number
    insuranceBillcode?: string
    insuranceCompany?: string
    insuranceInsuredDate?: any
    insuranceInsuredCost?: number
    insuranceDueDate?: string
  }[]
  attachmentCos?: {
    fileCategory?: string
    fileSuffix?: string
    fileName?: string
    fileSize?: string
    fileUrl?: string
  }[]
}
定义数组对象时   直接定义好对象后在后面加 [ ]  表示为数组 
posted @ 2022-08-25 08:37  宝乐  阅读(84)  评论(0)    收藏  举报