@bchr/bchr-front-lib 0.3.148 → 0.3.149

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.
@@ -42,7 +42,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
42
42
  var ButtonGroup = _antd.Button.Group;
43
43
 
44
44
  var FormModifyModal = function FormModifyModal(props, ref) {
45
- (0, _react.useImperativeMethods)(ref, function () {
45
+ (0, _react.useImperativeHandle)(ref, function () {
46
46
  return {
47
47
  closeLoading: closeLoading
48
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bchr/bchr-front-lib",
3
- "version": "0.3.148",
3
+ "version": "0.3.149",
4
4
  "description": "bchr front lib",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- import React, {useEffect, useState, forwardRef, useImperativeMethods} from 'react';
1
+ import React, {useEffect, useState, forwardRef, useImperativeHandle} from 'react';
2
2
  import SModal from "../../modal/SModal";
3
3
  import {Button, message, Spin} from "antd";
4
4
  import FormForModify from "../form/FormForModify";
@@ -7,7 +7,7 @@ import $ from 'jquery';
7
7
  const ButtonGroup = Button.Group;
8
8
  const FormModifyModal = (props, ref) => {
9
9
 
10
- useImperativeMethods(ref, () => ({
10
+ useImperativeHandle(ref, () => ({
11
11
  closeLoading
12
12
  }));
13
13