Merge branch 'feat/filesystem_and_search' of github.com:toeverything/AFFiNE into feat/filesystem_and_search

This commit is contained in:
DiamondThree
2022-12-22 18:16:46 +08:00
34 changed files with 871 additions and 486 deletions
+8 -3
View File
@@ -87,6 +87,7 @@ export const StyledTextButton = styled('button', {
'hoverBackground',
'hoverColor',
'hoverStyle',
'bold',
].includes(prop);
},
})<
@@ -141,9 +142,13 @@ export const StyledTextButton = styled('button', {
export const StyledButton = styled('button', {
shouldForwardProp: prop => {
return !['hoverBackground', 'hoverColor', 'hoverStyle', 'type'].includes(
prop
);
return ![
'hoverBackground',
'hoverColor',
'hoverStyle',
'type',
'bold',
].includes(prop);
},
})<
Pick<
+3
View File
@@ -7,6 +7,7 @@ type inputProps = {
disabled?: boolean;
width?: number;
maxLength?: number;
minLength?: number;
onChange?: (value: string) => void;
onBlur?: (e: any) => void;
};
@@ -17,6 +18,7 @@ export const Input = (props: inputProps) => {
value: valueProp,
placeholder,
maxLength,
minLength,
width = 260,
onChange,
onBlur,
@@ -39,6 +41,7 @@ export const Input = (props: inputProps) => {
placeholder={placeholder}
width={width}
maxLength={maxLength}
minLength={minLength}
onChange={handleChange}
onBlur={handleBlur}
></StyledInput>