@ecoding/components.antd 0.0.9 → 0.1.1
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.
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, open: this.
|
|
52
|
+
return (React.createElement(Drawer, { className: this.props.className, bodyStyle: this.props.bodyStyle, 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, { key: "submit", type: this.props.okType, loading: this.state.loading, onClick: this.ok }, this.props.okText),
|
|
@@ -5,7 +5,8 @@ import { createRoot } from "react-dom/client";
|
|
|
5
5
|
class Notification extends React.Component {
|
|
6
6
|
static newInstance() {
|
|
7
7
|
const notification = createRef();
|
|
8
|
-
const div = document.createElement("
|
|
8
|
+
const div = document.createElement("div");
|
|
9
|
+
document.body.appendChild(div);
|
|
9
10
|
const root = createRoot(div);
|
|
10
11
|
root.render(createElement(Notification, { ref: notification }));
|
|
11
12
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/components.antd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"author": "cxc",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"react-quill": "^2.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ceb7610b08ba21a9f8617ef1ec29bc8ce68de1ea"
|
|
46
46
|
}
|