mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 02:28:04 +08:00 
			
		
		
		
	fix(editor): 编辑器中间列宽度出现负值
This commit is contained in:
		
							parent
							
								
									b9d4e8c66c
								
							
						
					
					
						commit
						a6226cba18
					
				@ -41,7 +41,7 @@ const props = withDefaults(
 | 
			
		||||
  {
 | 
			
		||||
    minLeft: 46,
 | 
			
		||||
    minRight: 1,
 | 
			
		||||
    minCenter: 1,
 | 
			
		||||
    minCenter: 5,
 | 
			
		||||
  },
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -122,8 +122,11 @@ watch(
 | 
			
		||||
  },
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
const columnWidthChange = (columnWidth: GetColumnWidth) => {
 | 
			
		||||
  uiService?.set('columnWidth', columnWidth);
 | 
			
		||||
const columnWidthChange = (columnW: GetColumnWidth) => {
 | 
			
		||||
  columnWidth.value.left = columnW.left;
 | 
			
		||||
  columnWidth.value.center = columnW.center;
 | 
			
		||||
  columnWidth.value.right = columnW.right;
 | 
			
		||||
  uiService?.set('columnWidth', columnW);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const saveCode = (value: string) => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user