mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 10:49:51 +08:00 
			
		
		
		
	feat(form): 新增labelPosition配置
This commit is contained in:
		
							parent
							
								
									e421a58f4e
								
							
						
					
					
						commit
						7a8da68edb
					
				@ -40,6 +40,7 @@
 | 
			
		||||
        :class="{ 'tmagic-form-hidden': `${itemLabelWidth}` === '0' || !text }"
 | 
			
		||||
        :prop="itemProp"
 | 
			
		||||
        :label-width="itemLabelWidth"
 | 
			
		||||
        :label-position="config.labelPosition"
 | 
			
		||||
        :rules="rule"
 | 
			
		||||
      >
 | 
			
		||||
        <template #label><span v-html="type === 'checkbox' ? '' : text" :title="config.labelTitle"></span></template>
 | 
			
		||||
@ -96,6 +97,7 @@
 | 
			
		||||
        :class="{ 'tmagic-form-hidden': `${itemLabelWidth}` === '0' || !text }"
 | 
			
		||||
        :prop="itemProp"
 | 
			
		||||
        :label-width="itemLabelWidth"
 | 
			
		||||
        :label-position="config.labelPosition"
 | 
			
		||||
        :rules="rule"
 | 
			
		||||
        style="background: #f7dadd"
 | 
			
		||||
      >
 | 
			
		||||
@ -145,6 +147,7 @@
 | 
			
		||||
        :class="{ 'tmagic-form-hidden': `${itemLabelWidth}` === '0' || !text }"
 | 
			
		||||
        :prop="itemProp"
 | 
			
		||||
        :label-width="itemLabelWidth"
 | 
			
		||||
        :label-position="config.labelPosition"
 | 
			
		||||
        :rules="rule"
 | 
			
		||||
        style="background: #def7da"
 | 
			
		||||
      >
 | 
			
		||||
 | 
			
		||||
@ -116,6 +116,7 @@ export default {
 | 
			
		||||
    app.component('m-form-table', Table);
 | 
			
		||||
    app.component('m-form-tab', Tabs);
 | 
			
		||||
    app.component('m-fields-text', Text);
 | 
			
		||||
    app.component('m-fields-img-upload', Text);
 | 
			
		||||
    app.component('m-fields-number', Number);
 | 
			
		||||
    app.component('m-fields-number-range', NumberRange);
 | 
			
		||||
    app.component('m-fields-textarea', Textarea);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user