Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Dec 14, 2024
1 parent c01a433 commit 37dfe01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vue/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
StateVersion,
VirtualStore,
} from "../core";
import { ItemProps } from './utils';
import { ItemProps } from "./utils";

/**
* @internal
Expand Down Expand Up @@ -76,7 +76,7 @@ export const ListItem = /*#__PURE__*/ defineComponent({
[isHorizontal ? (isRTLDocument() ? "right" : "left") : "top"]:
offset.value + "px",
visibility: !isHide || isSSR ? "visible" : "hidden",
...styleProp
...styleProp,
};
if (isHorizontal) {
style.display = "flex";
Expand Down
4 changes: 3 additions & 1 deletion src/vue/VList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
PropType,
} from "vue";
import { Virtualizer, VirtualizerHandle } from "./Virtualizer";
import { ItemProps } from './utils';
import { ItemProps } from "./utils";

interface VListHandle extends VirtualizerHandle {}

Expand Down Expand Up @@ -45,6 +45,8 @@ const props = {
ssrCount: Number,
/**
* A function that provides properties/attributes for item element
*
* **This prop will be merged into `item` prop in the future**
*/
itemProps: Function as PropType<ItemProps>,
/**
Expand Down
2 changes: 2 additions & 0 deletions src/vue/Virtualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ const props = {
item: { type: String as PropType<keyof NativeElements>, default: "div" },
/**
* A function that provides properties/attributes for item element
*
* **This prop will be merged into `item` prop in the future**
*/
itemProps: Function as PropType<ItemProps>,
/**
Expand Down

0 comments on commit 37dfe01

Please sign in to comment.