mirror of
				https://github.com/vuejs/babel-plugin-jsx.git
				synced 2025-11-01 01:42:21 +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, |   optimize: false, | ||||||
|   transformOn: false, |   transformOn: false, | ||||||
|   enableObjectSlots: true, |   enableObjectSlots: true, | ||||||
|  |   resolveType: false, | ||||||
| }); | }); | ||||||
|  |  | ||||||
| const App = { | const App = { | ||||||
| @@ -86,6 +87,21 @@ const App = { | |||||||
|             }), |             }), | ||||||
|             h('label', { for: 'enableObjectSlots' }, 'enableObjectSlots'), |             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