Skip to content

Commit

Permalink
Update type.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
xusenlin committed Aug 1, 2022
1 parent df5b9f8 commit 85cc59d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/crudForm/type.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FormRules } from "element-plus"
export type FormItemDesc = {
attrs?: object//组件的属性
title?: string, //修改新增时字段的标题,为空时显示字段名本身
editDisabled?: boolean,//编辑时禁用
componentName: string,//组件名称可自定义实现
title?: string //修改新增时字段的标题,为空时显示字段名本身
editDisabled?: boolean//编辑时禁用
componentName: string//组件名称可自定义实现
}

export type FormDesc = {
Expand All @@ -18,23 +18,23 @@ export type FormFields = {
} | undefined

export type TableColumns = {//表格的列
field: string
title?:string,//列的名字
show?: boolean,//是否显示
colAttrs?: boolean,//赋值给el-table-column的其他属性值
func?: (val:any)=> void,//表格field列的特殊处理
field: string //字段名称
title?:string//列的名字
show?: boolean//是否显示
colAttrs?: boolean//赋值给el-table-column的其他属性值
func?: (val:any)=> void//表格field列的特殊处理
}


export type PaginationRef = {
Refresh:()=>void,
QueryParams:()=>void,
Refresh:()=>void
QueryParams:()=>void
}

export type Pagination = { //TODO 你们分页的接口返回参数
records: never[]
}

export type FormEditRef = {
OpenEdit:(row: FormFields, title: string, idField: string = "id")=>void,
OpenEdit:(row: FormFields, title: string, idField: string = "id")=>void
}

0 comments on commit 85cc59d

Please sign in to comment.