mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	refactor: 前端代码优化
This commit is contained in:
		@@ -86,13 +86,13 @@
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
            <el-table v-bind="$attrs" max-height="700" @selection-change="handleSelectionChange" :data="props.data" border
 | 
			
		||||
                highlight-current-row show-overflow-tooltip v-loading="loadingData">
 | 
			
		||||
                highlight-current-row v-loading="loadingData">
 | 
			
		||||
 | 
			
		||||
                <el-table-column v-if="props.showSelection" type="selection" width="40" />
 | 
			
		||||
 | 
			
		||||
                <template v-for="(item, index) in columns">
 | 
			
		||||
                    <el-table-column :key="index" v-if="item.show" :prop="item.prop" :label="item.label" :fixed="item.fixed"
 | 
			
		||||
                        :align="item.align" :show-overflow-tooltip="item.showOverflowTooltip || true"
 | 
			
		||||
                        :align="item.align" :show-overflow-tooltip="item.showOverflowTooltip"
 | 
			
		||||
                        :min-width="item.minWidth" :sortable="item.sortable || false" :type="item.type" :width="item.width">
 | 
			
		||||
 | 
			
		||||
                        <!-- 插槽:预留功能 -->
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user