Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(design): fixed the issue of duplicate keys in the `SelectList` (#410)
白熱118927ddf4d1
diff --git a/packages/design/src/components/select-list/SelectList.tsx b/packages/design/src/components/select-list/SelectList.tsxindex 13de8306b7..0dd06d01c9 100644--- a/packages/design/src/components/select-list/SelectList.tsx+++ b/packages/design/src/components/select-list/SelectList.tsx@@ -39,9 +39,9 @@ export function SelectList(props: ISelectListProps) {return (<ul className={styles.selectList}>- {options.map((option) => (+ {options.map((option, index) => (<li- key={option.value}+ key={index}className={clsx(styles.selectListItem, { [styles.selectListItemSelect]: value === option.value })}><a onClick={() => handleSelect(option.value)}>