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(sheets-data-validation-ui): data validation style (#4000)
zhangwd79318851c8a
diff --git a/packages/sheets-data-validation-ui/src/views/components/formula-input/list-formula-input.tsx b/packages/sheets-data-validation-ui/src/views/components/formula-input/list-formula-input.tsxindex e512c99ffd..5e0532106f 100644--- a/packages/sheets-data-validation-ui/src/views/components/formula-input/list-formula-input.tsx+++ b/packages/sheets-data-validation-ui/src/views/components/formula-input/list-formula-input.tsx@@ -357,13 +357,11 @@ export function ListFormulaInput(props: IFormulaInputProps) {onFocus={() => isFocusFormulaEditorSet(true)}actions={formulaEditorActionsRef.current}/>- <FormLayout>- <div ref={containerRef}>- {refFinalList.map((item) => {- return <Template key={item.id} item={item} commonProps={{ onItemChange: handleRefItemChange }} style={{ marginBottom: 12 }} />;- })}- </div>- </FormLayout>+ <div ref={containerRef} style={{ marginTop: '12px' }}>+ {refFinalList.map((item) => {+ return <Template key={item.id} item={item} commonProps={{ onItemChange: handleRefItemChange }} style={{ marginBottom: 12 }} />;+ })}+ </div></>): (diff --git a/packages/sheets-data-validation-ui/src/views/components/list-dropdown/index.tsx b/packages/sheets-data-validation-ui/src/views/components/list-dropdown/index.tsxindex b97089f03b..8b3f2a4616 100644--- a/packages/sheets-data-validation-ui/src/views/components/list-dropdown/index.tsx+++ b/packages/sheets-data-validation-ui/src/views/components/list-dropdown/index.tsx@@ -196,7 +196,7 @@ export function ListDropDown(props: IDropdownComponentProps) {const options = list.map((item) => ({label: item.label,value: item.label,- color: showColor ? item.color : 'transparent',+ color: (showColor || item.color) ? item.color : 'transparent',}));return (