mirror of
				https://github.com/Tencent/tmagic-editor.git
				synced 2025-11-04 02:28:04 +08:00 
			
		
		
		
	feat(editor): menu配置支持事件
This commit is contained in:
		
							parent
							
								
									33fcee66df
								
							
						
					
					
						commit
						fcede5c0ac
					
				@ -39,7 +39,12 @@
 | 
			
		||||
      </template>
 | 
			
		||||
    </TMagicDropdown>
 | 
			
		||||
 | 
			
		||||
    <component v-else-if="data.type === 'component'" v-bind="data.props || {}" :is="data.component"></component>
 | 
			
		||||
    <component
 | 
			
		||||
      v-else-if="data.type === 'component'"
 | 
			
		||||
      v-bind="data.props || {}"
 | 
			
		||||
      v-on="(data as MenuComponent).listeners || {}"
 | 
			
		||||
      :is="data.component"
 | 
			
		||||
    ></component>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user