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
feat(design): add `color` property to the options of the `SelectList` (#418)
白熱4954c09ab206
diff --git a/packages/design/src/components/select-list/SelectList.tsx b/packages/design/src/components/select-list/SelectList.tsxindex 0dd06d01c9..35728e069e 100644--- a/packages/design/src/components/select-list/SelectList.tsx+++ b/packages/design/src/components/select-list/SelectList.tsx@@ -16,6 +16,7 @@ export interface ISelectListProps {options?: Array<{label: string;value: string;+ color?: string;}>;/**@@ -50,7 +51,7 @@ export function SelectList(props: ISelectListProps) {{value === option.value && <CheckMarkSingle />}</span>)}- {option.label}+ <span style={{ color: option.color }}>{option.label}</span></a></li>))}