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.
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export interface IContainer {
3
3
  loading?: boolean;
4
4
  className?: string;
5
+ containerRef?: any;
5
6
  }
6
7
  declare const Container: React.FC<IContainer>;
7
8
  export default Container;
@@ -20,15 +20,15 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import React from 'react';
24
24
  import { Spin } from 'antd';
25
25
  import classNames from 'classnames';
26
- var Container = forwardRef(function (_a, ref) {
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: 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "2.4.5",
3
+ "version": "2.4.6",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",