@ecoding/components.antd 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,8 +8,9 @@ export interface IDrawerProps {
|
|
|
8
8
|
closable?: boolean;
|
|
9
9
|
maskClosable?: boolean;
|
|
10
10
|
open?: boolean;
|
|
11
|
-
width?: string;
|
|
11
|
+
width?: string | number;
|
|
12
12
|
zIndex?: number;
|
|
13
|
+
height?: string | number;
|
|
13
14
|
placement?: DrawerProps["placement"];
|
|
14
15
|
okDanger?: boolean;
|
|
15
16
|
title?: React.ReactNode;
|
|
@@ -30,6 +31,7 @@ export declare class Drawers extends React.Component<IDrawerProps> {
|
|
|
30
31
|
className: string;
|
|
31
32
|
open: boolean;
|
|
32
33
|
bodyStyle: {};
|
|
34
|
+
height: string;
|
|
33
35
|
width: string;
|
|
34
36
|
zIndex: number;
|
|
35
37
|
mask: boolean;
|
package/lib/core/drawer/index.js
CHANGED
|
@@ -49,7 +49,7 @@ export class Drawers extends React.Component {
|
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
51
|
// if (!this.props.visible) return null;
|
|
52
|
-
return (React.createElement(Drawer, { className: this.props.className, bodyStyle: this.props.bodyStyle, placement: this.props.placement, open: this.state.open, destroyOnClose: true, maskClosable: this.props.maskClosable, keyboard: false, title: this.props.title, footer: this.props.footer === null ? null : this.props.footer ? (this.props.footer) : (React.createElement("div", { className: "tac" },
|
|
52
|
+
return (React.createElement(Drawer, { className: this.props.className, bodyStyle: this.props.bodyStyle, placement: this.props.placement, height: this.props.height, open: this.state.open, destroyOnClose: true, maskClosable: this.props.maskClosable, keyboard: false, title: this.props.title, footer: this.props.footer === null ? null : this.props.footer ? (this.props.footer) : (React.createElement("div", { className: "tac" },
|
|
53
53
|
this.props.addonBefore ? this.props.addonBefore : null,
|
|
54
54
|
React.createElement(Button, { className: "mr10", key: "back", onClick: this.cancel }, this.props.cancelText),
|
|
55
55
|
React.createElement(Button, { danger: this.props.okDanger, key: "submit", type: this.props.okType, loading: this.state.loading, onClick: this.ok }, this.props.okText),
|
|
@@ -60,6 +60,7 @@ Drawers.defaultProps = {
|
|
|
60
60
|
className: "g-drawer",
|
|
61
61
|
open: false,
|
|
62
62
|
bodyStyle: {},
|
|
63
|
+
height: "50vh",
|
|
63
64
|
width: "60vw",
|
|
64
65
|
zIndex: 900,
|
|
65
66
|
mask: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/components.antd",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"author": "cxc",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"react-quill": "^2.0.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "04b073fbe3794d41e10954744ee44e1059434b0d"
|
|
48
48
|
}
|