mirror of
https://github.com/PlayEdu/h5.git
synced 2025-06-08 03:04:09 +08:00
首页分类筛选框优化
This commit is contained in:
parent
1b93895b52
commit
37b034c555
@ -90,15 +90,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
}
|
.act-category-child-tit {
|
||||||
|
|
||||||
.active-child-item {
|
|
||||||
width: 100%;
|
|
||||||
float: left;
|
|
||||||
height: auto;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding-left: 20px;
|
|
||||||
.category-child-tit {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
@ -163,16 +163,13 @@ const IndexPage = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{data.map((item: any) => (
|
{data.map((item: any) => (
|
||||||
|
<div key={item.key} className={styles["child-item"]}>
|
||||||
<div
|
<div
|
||||||
key={item.key}
|
|
||||||
className={
|
className={
|
||||||
item.key === categoryId
|
item.key === categoryId
|
||||||
? styles["active-child-item"]
|
? styles["act-category-child-tit"]
|
||||||
: styles["child-item"]
|
: styles["category-child-tit"]
|
||||||
}
|
}
|
||||||
>
|
|
||||||
<div
|
|
||||||
className={styles["category-child-tit"]}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setCategoryId(item.key);
|
setCategoryId(item.key);
|
||||||
setCategoryText(item.title);
|
setCategoryText(item.title);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user