workflow: add inline option to template explorer
This commit is contained in:
parent
bb343383f2
commit
27fca66c89
@ -11,6 +11,7 @@ export const compilerOptions: CompilerOptions = reactive({
|
|||||||
hoistStatic: false,
|
hoistStatic: false,
|
||||||
cacheHandlers: false,
|
cacheHandlers: false,
|
||||||
scopeId: null,
|
scopeId: null,
|
||||||
|
inline: false,
|
||||||
ssrCssVars: `{ color }`,
|
ssrCssVars: `{ color }`,
|
||||||
bindingMetadata: {
|
bindingMetadata: {
|
||||||
TestComponent: BindingTypes.SETUP,
|
TestComponent: BindingTypes.SETUP,
|
||||||
@ -151,6 +152,19 @@ const App = {
|
|||||||
h('label', { for: 'scope-id' }, 'scopeId')
|
h('label', { for: 'scope-id' }, 'scopeId')
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
// inline mode
|
||||||
|
h('li', [
|
||||||
|
h('input', {
|
||||||
|
type: 'checkbox',
|
||||||
|
id: 'inline',
|
||||||
|
checked: compilerOptions.inline,
|
||||||
|
onChange(e: Event) {
|
||||||
|
compilerOptions.inline = (e.target as HTMLInputElement).checked
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
h('label', { for: 'inline' }, 'inline')
|
||||||
|
]),
|
||||||
|
|
||||||
// toggle optimizeImports
|
// toggle optimizeImports
|
||||||
h('li', [
|
h('li', [
|
||||||
h('input', {
|
h('input', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user