chore(NavBar): use tsx

This commit is contained in:
chenjiahan
2020-10-09 20:51:55 +08:00
parent a1b08babfc
commit dffa11959a
2 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import { useHeight } from './use-height';
import type { Ref, VNode } from 'vue';
import type { Ref } from 'vue';
import type { BEM } from '../utils/create/bem';
export function usePlaceholder(contentRef: Ref<Element>, bem: BEM) {
const height = useHeight(contentRef);
return (renderContent: () => VNode) => (
return (renderContent: () => JSX.Element) => (
<div
class={bem('placeholder')}
style={{ height: height.value ? `${height.value}px` : undefined }}