mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-01-10 08:19:10 +08:00
feat(jsx-explorer): add resolveType
option (#692)
This commit is contained in:
parent
0838a222d9
commit
9d97341d04
@ -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'),
|
||||||
|
]),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user