Skip to content

Commit

Permalink
fix: 优化 Pagination 和 FieldSet 的 ts 定义
Browse files Browse the repository at this point in the history
  • Loading branch information
leehaoChen committed Jul 10, 2023
1 parent 544078e commit be0204d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Form/Props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface FieldSetChildrenFunc<Value = any> {
params: {
list: any
value: Value
onChange: (value: Value) => void
onChange: (value: Value[]) => void
onRemove: () => void
index: number
onInsert: (value: Value) => void
Expand Down
3 changes: 2 additions & 1 deletion src/Pagination/Props.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ReactNode } from 'react'
import { StandardProps } from '../@types/common'
import { SelectProps } from '../Select/Props'

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit be0204d

Please sign in to comment.