mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 10:49:51 +08:00 
			
		
		
		
	style(table): 完善ts定义
This commit is contained in:
		
							parent
							
								
									d5354c11d6
								
							
						
					
					
						commit
						24d029574f
					
				@ -28,9 +28,9 @@ export interface ColumnActionConfig {
 | 
				
			|||||||
  tooltipPlacement?: string;
 | 
					  tooltipPlacement?: string;
 | 
				
			||||||
  icon?: any;
 | 
					  icon?: any;
 | 
				
			||||||
  handler?: (row: any, index: number) => Promise<any> | any;
 | 
					  handler?: (row: any, index: number) => Promise<any> | any;
 | 
				
			||||||
  before?: (row: any, index: number) => void;
 | 
					  before?: (row: any, index: number) => Promise<void> | void;
 | 
				
			||||||
  after?: (row: any, index: number) => void;
 | 
					  after?: (row: any, index: number) => Promise<void> | void;
 | 
				
			||||||
  action?: (data: { data: any }) => void;
 | 
					  action?: (data: { data: any }) => Promise<void> | void;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface ColumnConfig<T = any> {
 | 
					export interface ColumnConfig<T = any> {
 | 
				
			||||||
@ -53,7 +53,7 @@ export interface ColumnConfig<T = any> {
 | 
				
			|||||||
    placement: string;
 | 
					    placement: string;
 | 
				
			||||||
    width: string;
 | 
					    width: string;
 | 
				
			||||||
    trigger: string;
 | 
					    trigger: string;
 | 
				
			||||||
    tableEmbed: string;
 | 
					    tableEmbed: boolean;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  sortable?: boolean | 'custom';
 | 
					  sortable?: boolean | 'custom';
 | 
				
			||||||
  action?: 'tip' | 'actionLink' | 'img' | 'link' | 'tag';
 | 
					  action?: 'tip' | 'actionLink' | 'img' | 'link' | 'tag';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user