Initial commit
This commit is contained in:
20
node_modules/@astrojs/vue/dist/static-html.js
generated
vendored
Normal file
20
node_modules/@astrojs/vue/dist/static-html.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { defineComponent, h } from "vue";
|
||||
const StaticHtml = defineComponent({
|
||||
props: {
|
||||
value: String,
|
||||
name: String,
|
||||
hydrate: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
setup({ name, value, hydrate }) {
|
||||
if (!value) return () => null;
|
||||
let tagName = hydrate ? "astro-slot" : "astro-static-slot";
|
||||
return () => h(tagName, { name, innerHTML: value });
|
||||
}
|
||||
});
|
||||
var static_html_default = StaticHtml;
|
||||
export {
|
||||
static_html_default as default
|
||||
};
|
||||
Reference in New Issue
Block a user