mirror of https://github.com/vuejs/vitepress
Merge 2ddd194f11
into 2b77fb3a72
commit
57047213c2
@ -0,0 +1,13 @@
|
|||||||
|
import { defineComponent, h } from 'vue'
|
||||||
|
|
||||||
|
export const LocalSearchBoxItem = defineComponent({
|
||||||
|
props: {
|
||||||
|
content: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
render() {
|
||||||
|
return h('span', { innerHTML: this.content })
|
||||||
|
}
|
||||||
|
})
|
@ -0,0 +1,17 @@
|
|||||||
|
import { defineComponent, h } from 'vue'
|
||||||
|
|
||||||
|
export const SidebarTextItem = defineComponent({
|
||||||
|
props: {
|
||||||
|
content: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
is: {
|
||||||
|
type: [Object, String],
|
||||||
|
default: 'p'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
render() {
|
||||||
|
return h(this.is, { innerHTML: this.content })
|
||||||
|
}
|
||||||
|
})
|
Loading…
Reference in new issue