mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00
fix: add http params focus & ui (#2611)
This commit is contained in:
@@ -10,6 +10,7 @@ type Props<ValueType = string> = Omit<GridProps, 'onChange'> & {
|
||||
size?: 'sm' | 'md' | 'lg';
|
||||
inlineStyles?: FlexProps;
|
||||
activeColor?: string;
|
||||
defaultColor?: string;
|
||||
onChange: (value: ValueType) => void;
|
||||
};
|
||||
|
||||
@@ -18,6 +19,7 @@ const LightRowTabs = <ValueType = string,>({
|
||||
size = 'md',
|
||||
value,
|
||||
activeColor = 'primary.600',
|
||||
defaultColor = 'transparent',
|
||||
onChange,
|
||||
inlineStyles,
|
||||
...props
|
||||
@@ -63,7 +65,8 @@ const LightRowTabs = <ValueType = string,>({
|
||||
py={sizeMap.inlineP}
|
||||
alignItems={'center'}
|
||||
justifyContent={'center'}
|
||||
borderBottom={'2px solid transparent'}
|
||||
borderBottom={'2px solid'}
|
||||
borderColor={defaultColor}
|
||||
px={3}
|
||||
whiteSpace={'nowrap'}
|
||||
{...(value === item.value
|
||||
|
@@ -106,6 +106,7 @@ export default function Editor({
|
||||
cursor={'text'}
|
||||
color={'myGray.700'}
|
||||
bg={focus ? 'white' : bg}
|
||||
borderRadius={'md'}
|
||||
>
|
||||
<LexicalComposer initialConfig={initialConfig} key={key}>
|
||||
<PlainTextPlugin
|
||||
|
@@ -77,10 +77,7 @@ export default function VariableLabelPickerPlugin({
|
||||
onSelectOption={onSelectOption}
|
||||
triggerFn={checkForTriggerMatch}
|
||||
options={variableFilter(variables, queryString || '')}
|
||||
menuRenderFn={(
|
||||
anchorElementRef,
|
||||
{ selectedIndex, selectOptionAndCleanUp, setHighlightedIndex }
|
||||
) => {
|
||||
menuRenderFn={(anchorElementRef, { selectedIndex, selectOptionAndCleanUp }) => {
|
||||
if (anchorElementRef.current == null) {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user