Skip to content

Commit 85cc59d

Browse files
committed
Update type.d.ts
1 parent df5b9f8 commit 85cc59d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/components/crudForm/type.d.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { FormRules } from "element-plus"
22
export type FormItemDesc = {
33
attrs?: object//组件的属性
4-
title?: string, //修改新增时字段的标题,为空时显示字段名本身
5-
editDisabled?: boolean,//编辑时禁用
6-
componentName: string,//组件名称可自定义实现
4+
title?: string //修改新增时字段的标题,为空时显示字段名本身
5+
editDisabled?: boolean//编辑时禁用
6+
componentName: string//组件名称可自定义实现
77
}
88

99
export type FormDesc = {
@@ -18,23 +18,23 @@ export type FormFields = {
1818
} | undefined
1919

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

2828

2929
export type PaginationRef = {
30-
Refresh:()=>void,
31-
QueryParams:()=>void,
30+
Refresh:()=>void
31+
QueryParams:()=>void
3232
}
3333

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

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

0 commit comments

Comments
 (0)