From 85cc59d32ec2849b7a3a88b30a0b30cc478ab77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E6=9C=A8=E8=80=81=E7=A5=96?= Date: Mon, 1 Aug 2022 11:20:14 +0800 Subject: [PATCH] Update type.d.ts --- src/components/crudForm/type.d.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/crudForm/type.d.ts b/src/components/crudForm/type.d.ts index d03251c..d37ecb7 100644 --- a/src/components/crudForm/type.d.ts +++ b/src/components/crudForm/type.d.ts @@ -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 = { @@ -18,17 +18,17 @@ 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 你们分页的接口返回参数 @@ -36,5 +36,5 @@ export type Pagination = { //TODO 你们分页的接口返回参数 } export type FormEditRef = { - OpenEdit:(row: FormFields, title: string, idField: string = "id")=>void, + OpenEdit:(row: FormFields, title: string, idField: string = "id")=>void }