HomeOnSale / HomeOnSale.module.less / HomeOnSaleItem VirtualGridList 포커싱 시 이동 안하는 현상 수정
This commit is contained in:
@@ -6,7 +6,6 @@ import { VirtualGridList } from "@enact/sandstone/VirtualList";
|
|||||||
import { SpotlightContainerDecorator } from "@enact/spotlight/SpotlightContainerDecorator";
|
import { SpotlightContainerDecorator } from "@enact/spotlight/SpotlightContainerDecorator";
|
||||||
import ri from "@enact/ui/resolution";
|
import ri from "@enact/ui/resolution";
|
||||||
|
|
||||||
import { getOnSaleInfo } from "../../../actions/onSaleActions";
|
|
||||||
import TGrid from "../../../components/TGrid/TGrid";
|
import TGrid from "../../../components/TGrid/TGrid";
|
||||||
import { $L } from "../../../utils/helperMethods";
|
import { $L } from "../../../utils/helperMethods";
|
||||||
import HomeOnSaleItem from "../HomeOnSaleItem/HomeOnSaleItem";
|
import HomeOnSaleItem from "../HomeOnSaleItem/HomeOnSaleItem";
|
||||||
@@ -35,11 +34,10 @@ const HomeOnSale = ({ ...rest }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<HomeOnSaleItem
|
<HomeOnSaleItem
|
||||||
|
{...rest}
|
||||||
|
key={index}
|
||||||
homeOnSaleInfos={homeOnSaleInfos}
|
homeOnSaleInfos={homeOnSaleInfos}
|
||||||
itemData={itemData}
|
itemData={itemData}
|
||||||
index={index}
|
|
||||||
{...rest}
|
|
||||||
className={css.VirtualGridList}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -53,6 +51,7 @@ const HomeOnSale = ({ ...rest }) => {
|
|||||||
<TGrid type="onSaleItem">
|
<TGrid type="onSaleItem">
|
||||||
{homeOnSaleInfos && homeOnSaleInfos.length > 0 && (
|
{homeOnSaleInfos && homeOnSaleInfos.length > 0 && (
|
||||||
<VirtualGridList
|
<VirtualGridList
|
||||||
|
className={css.grid}
|
||||||
dataSize={homeOnSaleInfos.length}
|
dataSize={homeOnSaleInfos.length}
|
||||||
direction="horizontal"
|
direction="horizontal"
|
||||||
horizontalScrollbar="hidden"
|
horizontalScrollbar="hidden"
|
||||||
|
|||||||
@@ -13,4 +13,8 @@
|
|||||||
font-family: "LGSmartUIBold";
|
font-family: "LGSmartUIBold";
|
||||||
font-size: 42px;
|
font-size: 42px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grid {
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,8 +33,9 @@ export default function HomeOnSaleItem({ homeOnSaleInfos, itemData, ...rest }) {
|
|||||||
const { originalPrice, discountedPrice, discountRate } = parsePriceInfo(
|
const { originalPrice, discountedPrice, discountRate } = parsePriceInfo(
|
||||||
itemData.priceInfo
|
itemData.priceInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SpottableComponent key={itemData.expsOrd} className={css.onSaleItemList}>
|
<SpottableComponent className={css.onSaleItemList} {...rest}>
|
||||||
<img src={itemData.imgUrl} className={css.onSaleItemListImg} />
|
<img src={itemData.imgUrl} className={css.onSaleItemListImg} />
|
||||||
<div className={css.onSaleItemListBox}>
|
<div className={css.onSaleItemListBox}>
|
||||||
<div className={css.onSaleItemListBoxTitle}>{itemData.catNm}</div>
|
<div className={css.onSaleItemListBoxTitle}>{itemData.catNm}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user