Skip to content

Commit fb46263

Browse files
committed
remove drawerStyle
1 parent 0d860ad commit fb46263

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ History
22

33
---
44

5+
## 3.0.0
6+
7+
- Remove `drawerStyle`.
8+
59
## 2.1.0
610

711
- Add `drawerStyle`.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ ReactDom.render(
6565
| showMask | boolean | true | mask is show |
6666
| maskClosable | boolean | true | Clicking on the mask (area outside the Drawer) to close the Drawer or not. |
6767
| maskStyle | CSSProperties | null | mask style |
68-
| drawerStyle | CSSProperties | null | style of the drawer popup element |
6968
| onChange | func | null | change callback(open) |
7069
| afterVisibleChange | func | null | transition end callback(open) |
7170
| onClose | func | null | close click function |

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"@types/react-dom": "^16.9.1",
5353
"@types/react-lifecycles-compat": "^3.0.1",
5454
"@types/warning": "^3.0.0",
55+
"@umijs/fabric": "^1.1.10",
5556
"enzyme": "^3.10.0",
5657
"enzyme-adapter-react-16": "^1.14.0",
5758
"enzyme-to-json": "^3.4.2",

src/DrawerChild.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ class DrawerChild extends React.Component<IDrawerChildProps, IState> {
450450
showMask,
451451
maskClosable,
452452
maskStyle,
453-
drawerStyle,
454453
onClose,
455454
onHandleClick,
456455
keyboard,
@@ -516,7 +515,6 @@ class DrawerChild extends React.Component<IDrawerChildProps, IState> {
516515
msTransform: transform,
517516
width: isNumeric(width) ? `${width}px` : width,
518517
height: isNumeric(height) ? `${height}px` : height,
519-
...drawerStyle,
520518
}}
521519
ref={c => {
522520
this.contentWrapper = c as HTMLElement;

src/IDrawerPropTypes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ interface IProps extends Omit<React.HTMLAttributes<any>, 'onChange'> {
2828
showMask?: boolean;
2929
maskClosable?: boolean;
3030
maskStyle?: React.CSSProperties;
31-
drawerStyle?: React.CSSProperties;
3231
onChange?: ((open?: boolean) => void);
3332
afterVisibleChange?: ((open: boolean) => void);
3433
onHandleClick?: ((e: React.MouseEvent | React.KeyboardEvent) => void);

typings/custom.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ declare module 'rc-util/lib/*' {
1414
}
1515

1616
declare module 'raf';
17-

0 commit comments

Comments
 (0)