mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	refactor: 代码小优化
This commit is contained in:
		@@ -314,8 +314,16 @@ onMounted(() => {
 | 
			
		||||
    } else {
 | 
			
		||||
        state.inputWidth = props.inputWidth;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    window.addEventListener('resize', () => {
 | 
			
		||||
        calcuTableHeight();
 | 
			
		||||
    });
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
const calcuTableHeight = () => {
 | 
			
		||||
    state.tableMaxHeight = window.innerHeight - 240 + 'px';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const formatText = (data: any)=> {
 | 
			
		||||
    state.formatVal = '';
 | 
			
		||||
    try {
 | 
			
		||||
@@ -362,7 +370,7 @@ const reset = () => {
 | 
			
		||||
    for (let qi of props.query) {
 | 
			
		||||
        state.queryForm[qi.prop] = null;
 | 
			
		||||
    }
 | 
			
		||||
    console.log(state.queryForm);
 | 
			
		||||
 | 
			
		||||
    changePageNum(1);
 | 
			
		||||
    emit('update:queryForm', state.queryForm);
 | 
			
		||||
    execQuery();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user