Skip to content

Commit ed77810

Browse files
atzclanyuxuan
atzcl
authored andcommitted
fix: ButtonGroup missing the definition of align prop (alibaba#297)
1 parent dc118b9 commit ed77810

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/antd/src/type.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ export interface IFormButtonGroupProps {
120120
style?: React.CSSProperties
121121
itemStyle?: React.CSSProperties
122122
className?: string
123-
123+
align?: 'left' | 'right' | 'start' | 'end' | 'top' | 'bottom' | 'center'
124124
triggerDistance?: number
125125
zIndex?: number
126-
span?: number
127-
offset?: number
126+
span?: ColSpanType
127+
offset?: ColSpanType
128128
}
129129

130130
export interface ISubmitProps extends Omit<BaseButtonProps, 'loading'> {

packages/next/src/type.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ export interface IFormButtonGroupProps {
9999
style?: React.CSSProperties
100100
itemStyle?: React.CSSProperties
101101
className?: string
102-
102+
align?: 'left' | 'right' | 'start' | 'end' | 'top' | 'bottom' | 'center'
103103
triggerDistance?: number
104104
zIndex?: number
105-
span?: number
106-
offset?: number
105+
span?: ColSpanType
106+
offset?: ColSpanType
107107
}
108108

109109
export interface SchemaFormProps<V = unknown> {

0 commit comments

Comments
 (0)