diff --git a/packages/designer/src/simulator/selection.tsx b/packages/designer/src/simulator/selection.tsx index 092b71e..3b71cbe 100644 --- a/packages/designer/src/simulator/selection.tsx +++ b/packages/designer/src/simulator/selection.tsx @@ -395,7 +395,7 @@ function InsertedDropdown({ options = [], onSelect, ...props }: InsertedDropdown key={item.name} label={item.label} icon={item.icon} - description={item.description} + description={item.description || '暂无组件描述'} onClick={() => onSelect?.(item.name)} /> ))} @@ -410,6 +410,7 @@ function InsertedDropdown({ options = [], onSelect, ...props }: InsertedDropdown const insertedItemStyle = css` cursor: pointer; + user-select: none; &:hover { background-color: var(--tango-colors-fill2); @@ -420,9 +421,18 @@ function InsertedItem({ label, icon = 'icon-placeholder', description, + ...rest }: HTMLCoralProps<'div'> & Omit) { return ( - +