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
							
								
									7049b1ff45
								
							
						
					
					
						commit
						f92127e3d6
					
				@ -1,7 +1,16 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="m-fields-code-select" :class="config.className">
 | 
					  <div class="m-fields-code-select" :class="config.className">
 | 
				
			||||||
    <TMagicCard>
 | 
					    <TMagicCard>
 | 
				
			||||||
      <m-form-container :config="codeConfig" :model="model[name]" @change="changeHandler"> </m-form-container>
 | 
					      <MContainer
 | 
				
			||||||
 | 
					        :config="codeConfig"
 | 
				
			||||||
 | 
					        :size="size"
 | 
				
			||||||
 | 
					        :prop="prop"
 | 
				
			||||||
 | 
					        :disabled="disabled"
 | 
				
			||||||
 | 
					        :lastValues="lastValues"
 | 
				
			||||||
 | 
					        :model="model[name]"
 | 
				
			||||||
 | 
					        @change="changeHandler"
 | 
				
			||||||
 | 
					      >
 | 
				
			||||||
 | 
					      </MContainer>
 | 
				
			||||||
    </TMagicCard>
 | 
					    </TMagicCard>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
@ -12,7 +21,7 @@ import { isEmpty } from 'lodash-es';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import { TMagicCard } from '@tmagic/design';
 | 
					import { TMagicCard } from '@tmagic/design';
 | 
				
			||||||
import type { FieldProps, FormItem } from '@tmagic/form';
 | 
					import type { FieldProps, FormItem } from '@tmagic/form';
 | 
				
			||||||
import { FormState } from '@tmagic/form';
 | 
					import { FormState, MContainer } from '@tmagic/form';
 | 
				
			||||||
import { HookCodeType, HookType } from '@tmagic/schema';
 | 
					import { HookCodeType, HookType } from '@tmagic/schema';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import type { Services } from '@editor/type';
 | 
					import type { Services } from '@editor/type';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user