@nokecy/qc-ui 0.1.52 → 0.1.53

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.
@@ -43,7 +43,7 @@ export declare type ArrayBaseMixins = {
43
43
  }>>;
44
44
  Index?: React.FC;
45
45
  useArray?: () => IArrayBaseContext;
46
- useIndex?: (index?: number) => number;
46
+ useIndex: (index?: number) => number;
47
47
  useRecord?: (record?: number) => any;
48
48
  };
49
49
  export interface IArrayBaseProps {
@@ -9,7 +9,7 @@ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _antdV = require("@formily/antd-v5");
12
+ var _arrayBase = require("../array-table/arrayBase");
13
13
 
14
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
15
 
@@ -18,7 +18,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
18
18
  var _default = function _default(props) {
19
19
  var onChange = props.onChange;
20
20
 
21
- var index = _antdV.ArrayBase.useIndex();
21
+ var index = _arrayBase.ArrayBase.useIndex();
22
22
 
23
23
  (0, _react.useEffect)(function () {
24
24
  onChange(index + 1);
@@ -43,7 +43,7 @@ export declare type ArrayBaseMixins = {
43
43
  }>>;
44
44
  Index?: React.FC;
45
45
  useArray?: () => IArrayBaseContext;
46
- useIndex?: (index?: number) => number;
46
+ useIndex: (index?: number) => number;
47
47
  useRecord?: (record?: number) => any;
48
48
  };
49
49
  export interface IArrayBaseProps {
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { ArrayBase } from '@formily/antd-v5';
2
+ import { ArrayBase } from "../array-table/arrayBase";
3
3
  export default (function (props) {
4
4
  var onChange = props.onChange;
5
5
  var index = ArrayBase.useIndex();