Skip to content

Commit

Permalink
Merge pull request #9 from actiontech/fix_date_picker_style
Browse files Browse the repository at this point in the history
Fix date picker style
  • Loading branch information
LZS911 authored Oct 20, 2023
2 parents d2b1c71 + e58116a commit c9be7d0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/shared/lib/components/BasicRangePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type BasicRangePickerProps = RangePickerProps & {
};

const BasicRangePicker = (props: BasicRangePickerProps) => {
const { className, suffixIcon, prefix, ...otherParams } = props;
const { className, suffixIcon, prefix, size, ...otherParams } = props;

return (
<ConfigProvider
Expand All @@ -29,7 +29,7 @@ const BasicRangePicker = (props: BasicRangePickerProps) => {
className={classnames('basic-range-picker-wrapper', className, {
'custom-picker-prefix': !suffixIcon && !!prefix
})}
size="large"
size="middle"
{...otherParams}
/**
* when both suffixIcon and prefix exist, the former will force the latter to be overwritten
Expand Down
4 changes: 4 additions & 0 deletions packages/shared/lib/theme/dark/components/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { BasicTagTheme } from '../../theme.type';

const tagTheme: BasicTagTheme = {
default: {
color: '#575C66',
backgroundColor: '#fffff'
},
gray: {
color: '#7d8ca8',
backgroundColor: 'rgba(125, 140, 168, 0.1)'
},
Expand Down
4 changes: 4 additions & 0 deletions packages/shared/lib/theme/light/components/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { BasicTagTheme } from '../../theme.type';

const tagTheme: BasicTagTheme = {
default: {
color: '#575C66',
backgroundColor: '#fffff'
},
gray: {
color: '#7d8ca8',
backgroundColor: 'rgba(125, 140, 168, 0.1)'
},
Expand Down
3 changes: 2 additions & 1 deletion packages/shared/lib/theme/theme.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ export type BasicTagColor =
| 'geekblue'
| 'purple'
| 'Grape'
| 'lilac';
| 'lilac'
| 'gray';

export type BasicTagTheme = Record<
BasicTagColor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ const DatabaseInfo: React.FC<DatabaseInfoProps> = ({
allowClear={false}
prefix={<IconDatabase />}
valuePrefix={<IconDatabaseActive />}
size="large"
size="middle"
loading={instanceTipsLoading}
options={instanceOptions}
onChange={(value) =>
Expand All @@ -306,7 +306,7 @@ const DatabaseInfo: React.FC<DatabaseInfoProps> = ({
}
prefix={<IconDatabaseSchema />}
valuePrefix={<IconDatabaseSchemaActive />}
size="large"
size="middle"
options={instanceSchemaOptions(field.name)}
placeholder={t('order.order.schemaPlaceholder')}
loading={!!getSchemaListLoading.get(field.key)}
Expand Down

0 comments on commit c9be7d0

Please sign in to comment.