first commit
This commit is contained in:
14
node_modules/vant/es/composables/use-placeholder.mjs
generated
vendored
Normal file
14
node_modules/vant/es/composables/use-placeholder.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createVNode as _createVNode } from "vue";
|
||||
import { useHeight } from "./use-height.mjs";
|
||||
function usePlaceholder(contentRef, bem) {
|
||||
const height = useHeight(contentRef, true);
|
||||
return (renderContent) => _createVNode("div", {
|
||||
"class": bem("placeholder"),
|
||||
"style": {
|
||||
height: height.value ? `${height.value}px` : void 0
|
||||
}
|
||||
}, [renderContent()]);
|
||||
}
|
||||
export {
|
||||
usePlaceholder
|
||||
};
|
||||
Reference in New Issue
Block a user