Skip to content

Commit

Permalink
docs(Example): add open prop for initial code visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Aug 8, 2022
1 parent e1657ce commit 4073ba8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docs/src/components/examples/Example.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
type: String,
required: true,
},
open: Boolean,
})
function parseTemplate (target: string, template: string) {
Expand All @@ -110,7 +111,7 @@
const isLoaded = ref(false)
const isError = ref(false)
const showCode = ref(props.inline)
const showCode = ref(props.inline || props.open)
const component = shallowRef()
const code = ref<string>()
Expand Down

0 comments on commit 4073ba8

Please sign in to comment.