ztxkui 2.4.5 → 2.4.6
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.
|
@@ -20,15 +20,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import React
|
|
23
|
+
import React from 'react';
|
|
24
24
|
import { Spin } from 'antd';
|
|
25
25
|
import classNames from 'classnames';
|
|
26
|
-
var Container =
|
|
27
|
-
var loading = _a.loading, children = _a.children, className = _a.className, restProps = __rest(_a, ["loading", "children", "className"]);
|
|
26
|
+
var Container = function (_a) {
|
|
27
|
+
var loading = _a.loading, children = _a.children, className = _a.className, containerRef = _a.containerRef, restProps = __rest(_a, ["loading", "children", "className", "containerRef"]);
|
|
28
28
|
var classes = classNames('zt-container', className);
|
|
29
|
-
return (React.createElement("div", __assign({ className: classes }, restProps, { ref:
|
|
29
|
+
return (React.createElement("div", __assign({ className: classes }, restProps, { ref: containerRef }),
|
|
30
30
|
loading && (React.createElement("div", { className: "zt-container__loading" },
|
|
31
31
|
React.createElement(Spin, { size: "large", spinning: loading }))),
|
|
32
32
|
children));
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
export default Container;
|