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