¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | /** |
| | | * 黿¢é»è®¤æ¿æ´»checké项 |
| | | */ |
| | | 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 |
| | | } |