pixuireactcomponents 1.5.42 → 1.5.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixuireactcomponents",
3
- "version": "1.5.42",
3
+ "version": "1.5.43",
4
4
  "description": "pixui react components",
5
5
  "main": "index.js",
6
6
  "sideEffects": false,
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../../../../../lib/preact/src';
2
2
  /**
3
3
  * 轮播组件
4
4
  * @param cRef - 组件引用,其中导出了3个方法:handleNext,handlePrev,setShowIndex
@@ -18,8 +18,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
18
  }
19
19
  return to.concat(ar || Array.prototype.slice.call(from));
20
20
  };
21
- import { h } from 'preact';
22
- import { useImperativeHandle, useState, useRef, useMemo, useEffect } from 'preact/hooks';
21
+ import { h } from '../../../../../lib/preact/src';
22
+ import { useImperativeHandle, useState, useRef, useMemo, useEffect } from '../../../../../lib/preact/hooks/src';
23
23
  // import { memo } from '../../../../../lib/preact/compat/src';
24
24
  //组件优化,防止组件的props没有改变但父组件刷新时导致组件刷新
25
25
  // export let Carousel = memo(Carouselinner, (prev, next) => {