diff --git a/src/Form/Props.ts b/src/Form/Props.ts index 9fc75e1ac..38c2e20a2 100644 --- a/src/Form/Props.ts +++ b/src/Form/Props.ts @@ -17,7 +17,7 @@ export interface FieldSetChildrenFunc { params: { list: any value: Value - onChange: (value: Value) => void + onChange: (value: Value[]) => void onRemove: () => void index: number onInsert: (value: Value) => void diff --git a/src/Pagination/Props.ts b/src/Pagination/Props.ts index 68f54f24a..3685fd1a8 100644 --- a/src/Pagination/Props.ts +++ b/src/Pagination/Props.ts @@ -1,3 +1,4 @@ +import { ReactNode } from 'react' import { StandardProps } from '../@types/common' import { SelectProps } from '../Select/Props' @@ -44,7 +45,7 @@ export interface PaginationProps extends StandardProps { * @cn 子组件布局,可选值为:'links': 页码;'simple': 简约页码(和links不要同时使用);'list': 每页数量选择。'jumper': 跳转页码;function({ current, total, pageSize }): 匿名函数,用来信息展示 * @default ['links'] */ - layout?: Array<'links' | 'simple' | 'list' | 'jumper' | ((props: PaginationProps) => string)> + layout?: Array<'links' | 'simple' | 'list' | 'jumper' | ((props: PaginationProps) => ReactNode)> /** * @en The callback function when current page or pageSize is changing。current: new page number。pageSize: number of each page diff --git a/src/index.js b/src/index.js index eafd56bdb..0f44df893 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ import * as utils from './utils' -export default { utils, version: '2.0.3-beta.4' } +export default { utils, version: '2.0.3-beta.5' } export { utils } export { setLocale } from './locale' export { color, style } from './utils/expose'