fxi 导出table 序号
This commit is contained in:
		
							parent
							
								
									65a209fd8a
								
							
						
					
					
						commit
						01a43630c6
					
				| @ -1187,6 +1187,14 @@ const _sfc_main = defineComponent({ | ||||
|                 tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${item[name]}</td>`; | ||||
|               } | ||||
|             } | ||||
|             if (tableColumn.type == "number") { | ||||
|               const rowColSpan = props.spanMethod(item, tableColumn, rowIndex, columnIndex); | ||||
|               const rowspan = rowColSpan ? rowColSpan[0] : 1; | ||||
|               const colspan = rowColSpan ? rowColSpan[1] : 1; | ||||
|               if (rowspan != 0 && colspan != 0) { | ||||
|                 tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${columnIndex}</td>`; | ||||
|               } | ||||
|             } | ||||
|           }); | ||||
|         }); | ||||
|         tableStr += "</tr>"; | ||||
|  | ||||
| @ -19634,6 +19634,14 @@ const _sfc_main$D = defineComponent({ | ||||
|                 tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${item[name]}</td>`; | ||||
|               } | ||||
|             } | ||||
|             if (tableColumn.type == "number") { | ||||
|               const rowColSpan = props.spanMethod(item, tableColumn, rowIndex, columnIndex); | ||||
|               const rowspan = rowColSpan ? rowColSpan[0] : 1; | ||||
|               const colspan = rowColSpan ? rowColSpan[1] : 1; | ||||
|               if (rowspan != 0 && colspan != 0) { | ||||
|                 tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${columnIndex}</td>`; | ||||
|               } | ||||
|             } | ||||
|           }); | ||||
|         }); | ||||
|         tableStr += "</tr>"; | ||||
|  | ||||
| @ -417,6 +417,19 @@ const exportData = () => { | ||||
|             tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${item[name]}</td>`; | ||||
|           } | ||||
|         } | ||||
|         if(tableColumn.type == "number"){ | ||||
|           const rowColSpan = props.spanMethod( | ||||
|             item, | ||||
|             tableColumn, | ||||
|             rowIndex, | ||||
|             columnIndex | ||||
|           ); | ||||
|           const rowspan = rowColSpan ? rowColSpan[0] : 1; | ||||
|           const colspan = rowColSpan ? rowColSpan[1] : 1; | ||||
|           if (rowspan != 0 && colspan != 0) { | ||||
|             tableStr += `<td colspan=${colspan} rowspan=${rowspan}>${columnIndex}</td>`; | ||||
|           } | ||||
|         } | ||||
|       }); | ||||
|     }); | ||||
|     tableStr += "</tr>"; | ||||
|  | ||||
							
								
								
									
										144
									
								
								umd/index.js
									
									
									
									
									
								
							
							
						
						
									
										144
									
								
								umd/index.js
									
									
									
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user