Skip to content

Commit

Permalink
fix: 类型报错
Browse files Browse the repository at this point in the history
  • Loading branch information
yxh01132861 committed Jan 24, 2024
1 parent 6f52892 commit 8cab6f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react';
import InternalSelect from './Select';
import type { FieldSelectOptionType } from './Select/types';

const FieldSelect: ReactFC<SelectProps<string, FieldSelectOptionType>> = connect(
const FieldSelect: ReactFC<SelectProps<string | string[], FieldSelectOptionType>> = connect(
InternalSelect,
mapProps(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const FilterContent: React.FC<FilterContentProps> = (props) => {
const openFieldSelect = outterValue.field ? false : true;

// 筛选字段变更
const onFieldChange = (field: string) => {
const onFieldChange = (field: string | string[]) => {
const _field = options.find((item) => item.value === field);
if (_field) {
setDomain(_field?.domain ?? []);
Expand Down

0 comments on commit 8cab6f6

Please sign in to comment.