From 55bf797dcc730b37bc691ebab2b51ff9db8ed245 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周二, 06 5月 2025 17:37:23 +0800 Subject: [PATCH] 修改代码样式 --- HIAWms/web/src/components/Table/index.d.ts | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 108 insertions(+), 0 deletions(-) diff --git a/HIAWms/web/src/components/Table/index.d.ts b/HIAWms/web/src/components/Table/index.d.ts new file mode 100644 index 0000000..c6dbb55 --- /dev/null +++ b/HIAWms/web/src/components/Table/index.d.ts @@ -0,0 +1,108 @@ +export interface ParamsItem { + Sorting?: string + SkipCount?: string | number + MaxResultCount?: number + [key: string]: any +} + +export interface ColumnType { + title?: string + field?: string + width?: string | number + sortable?: boolean + required?: boolean + cellStyle?: CSSProperties + [key: string]: any +} + +export interface TablePropsItemType { + cellStyle?: () => CSSProperties | any + rowStyle?: () => any + rowClassName?: string | Function + headBorder?: boolean + emptyText?: string + selections?: string[] + autoFirstClickRow?: boolean + // 鍙傛暟 + params?: ParamsItem + // 鏁版嵁婧� + dataSource: any[] + // 鍒� + columns: ColumnType[] + // 褰撳墠椤靛ぇ灏� + pageSize?: number + // 鎬绘暟 + total?: number + // 鏄惁闅愯棌鍒嗛〉 + isHidePagination?: boolean + // 鏄惁澶氶�� + isChecked?: boolean | Function + // 鏄惁鏄剧ず搴忓彿 + isSeq?: boolean + // 鏄惁鎺掑簭 + isSort?: boolean + // id.. + id?: string + // 鏄惁鍑虹幇鎷栨嫿锛屽簾寮� + showDarg?: boolean | string + // 鏄惁鎷栨嫿 + isDrag?: boolean | string + // 鏄惁绂佺敤鎷栨嫿 锛堢瓫閫夌殑鏃跺�欎竴鑸鐢ㄦ嫋鎷斤級 + disabledDrag?: boolean + // 鏄惁鑷姩楂樺害 + height?: string + maxHeight?: string + // 鏄惁寮�鍚櫄鎷熸粴鍔� + isVScroll?: boolean + // 杈规 + border?: string | any + // 璇锋眰鍦板潃 + url?: string + // 鎺掑簭鍦板潃妯$増 + sortUrlTpl?: string + //鏄剧ず搴曢儴 + isFooter?: boolean + gt?: number + // 鍙抽敭鑿滃崟 + contextMenu?: Array<{ + label: string + fn: (item: any) => void + [key: string]: any + }> + rowConfig?: any + size?: SizeType | undefined + // 闃绘鍐掓场 + isStop?: boolean + LanguageScopeKey?: string + /** + * 闃绘榛樿婵�娲籧heck閫夐」 + */ + cancelEmitCheck?: boolean + /** + * 鍙栨秷琛岀偣鍑婚�変腑 + */ + cancelRowCheck?: boolean + // [key: string]: any + /** + * 鏄惁鍗曢�� + */ + radio?: boolean + /** + * 鏁版嵁杞崲 + * 褰撹姹傛暟鎹畬鍚庯紝鐢ㄦ潵鏁版嵁杞崲 + */ + dataTransformer?: (row: any) => any +} + +export interface MenuOptionType { + zIndex?: number + minWidth?: number + x?: number + y?: number +} + +export interface contextMenuItemType { + show: boolean + current: Record<string, any> | null + options: any +} -- Gitblit v1.9.3