列晒筛选

This commit is contained in:
juguohong
2025-08-18 00:36:57 +08:00
parent db48e55b05
commit 169eaffb96
13 changed files with 193 additions and 50 deletions

View File

@@ -4,7 +4,6 @@
outline: none; // 移除浏览器默认的outline
background: #ffffff;
color: #333333;
font-size: 14px;
font-weight: 400;
text-align: center;
cursor: pointer;
@@ -12,9 +11,8 @@
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
white-space: nowrap;
font-size: 14px;
font-size: 12px;
border-radius: 28px;
margin: 0;
width: 116px;

View File

@@ -20,5 +20,8 @@
.bubbleGrid {
display: grid;
width: 100%;
.bubbleOption {
width: 100%;
}
}
}

View File

@@ -122,7 +122,7 @@ const Bubble: React.FC<BubbleProps> = ({
className={styles.bubbleGrid}
style={{
gridTemplateColumns: `repeat(${columns}, 1fr)`,
gap: size === "small" ? "8px" : size === "large" ? "16px" : "12px",
gap: size === "small" ? "6px" : size === "large" ? "16px" : "12px",
}}
>
{options.map((option) => (
@@ -133,7 +133,7 @@ const Bubble: React.FC<BubbleProps> = ({
size={size}
disabled={disabled}
onClick={handleOptionClick}
itemClassName={itemClassName}
itemClassName={itemClassName || styles.bubbleOption}
/>
))}
</div>