smaller demo improvements

This commit is contained in:
orangecoding
2026-01-29 09:46:23 +01:00
parent bc355fb5fe
commit 0663bd945f
9 changed files with 49 additions and 106 deletions

View File

@@ -8,12 +8,12 @@ import { Card } from '@douyinfe/semi-ui-19';
import './SegmentParts.less';
export const SegmentPart = ({ name, Icon = null, children, helpText = null }) => {
export const SegmentPart = ({ name, Icon = null, children, helpText = null, className = '' }) => {
const { Meta } = Card;
return (
<Card
className="segmentParts"
className={`segmentParts ${className}`}
title={
(helpText || name) && (
<Meta title={name} description={helpText} avatar={Icon == null ? null : <Icon size="extra-extra-small" />} />