chore(NavBar): use tsx
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user