Skip to content

Commit 9d97341

Browse files
authoredJan 23, 2024
feat(jsx-explorer): add resolveType option (#692)
1 parent 0838a22 commit 9d97341

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎packages/jsx-explorer/src/options.ts

+16
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const compilerOptions: VueJSXPluginOptions = reactive({
88
optimize: false,
99
transformOn: false,
1010
enableObjectSlots: true,
11+
resolveType: false,
1112
});
1213

1314
const App = {
@@ -86,6 +87,21 @@ const App = {
8687
}),
8788
h('label', { for: 'enableObjectSlots' }, 'enableObjectSlots'),
8889
]),
90+
91+
// resolveType
92+
h('li', [
93+
h('input', {
94+
type: 'checkbox',
95+
id: 'resolveType',
96+
checked: compilerOptions.resolveType,
97+
onChange(e: Event) {
98+
compilerOptions.resolveType = (
99+
e.target as HTMLInputElement
100+
).checked;
101+
},
102+
}),
103+
h('label', { for: 'resolveType' }, 'resolveType'),
104+
]),
89105
]),
90106
]),
91107
];

0 commit comments

Comments
 (0)
Please sign in to comment.