mirror of
				https://github.com/vuejs/babel-plugin-jsx.git
				synced 2025-10-31 09:22:19 +08:00 
			
		
		
		
	feat(jsx-explorer): add resolveType option (#692)
				
					
				
			This commit is contained in:
		| @@ -8,6 +8,7 @@ export const compilerOptions: VueJSXPluginOptions = reactive({ | ||||
|   optimize: false, | ||||
|   transformOn: false, | ||||
|   enableObjectSlots: true, | ||||
|   resolveType: false, | ||||
| }); | ||||
|  | ||||
| const App = { | ||||
| @@ -86,6 +87,21 @@ const App = { | ||||
|             }), | ||||
|             h('label', { for: 'enableObjectSlots' }, 'enableObjectSlots'), | ||||
|           ]), | ||||
|  | ||||
|           // resolveType | ||||
|           h('li', [ | ||||
|             h('input', { | ||||
|               type: 'checkbox', | ||||
|               id: 'resolveType', | ||||
|               checked: compilerOptions.resolveType, | ||||
|               onChange(e: Event) { | ||||
|                 compilerOptions.resolveType = ( | ||||
|                   e.target as HTMLInputElement | ||||
|                 ).checked; | ||||
|               }, | ||||
|             }), | ||||
|             h('label', { for: 'resolveType' }, 'resolveType'), | ||||
|           ]), | ||||
|         ]), | ||||
|       ]), | ||||
|     ]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user