vợ bảo okeoke
This commit is contained in:
15
src/components/VueHead.tsx
Normal file
15
src/components/VueHead.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useHead, UseHeadInput, UseHeadOptions } from "@unhead/vue";
|
||||
import { defineComponent, toRef } from "vue";
|
||||
interface VueHeadProps {
|
||||
input: UseHeadInput;
|
||||
options?: UseHeadOptions;
|
||||
}
|
||||
export const VueHead = defineComponent<VueHeadProps>({
|
||||
name: "VueHead",
|
||||
props: ["input", "options"],
|
||||
setup(props) {
|
||||
useHead(toRef(props, "input") as any, props.options);
|
||||
return () => null;
|
||||
}
|
||||
});
|
||||
export default VueHead;
|
||||
Reference in New Issue
Block a user