pixuireactcomponents 1.5.43 → 1.5.45
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
|
@@ -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 '
|
|
22
|
-
import { useImperativeHandle, useState, useRef, useMemo, useEffect } from '
|
|
21
|
+
import { h } from 'preact';
|
|
22
|
+
import { useImperativeHandle, useState, useRef, useMemo, useEffect } from 'preact/hooks';
|
|
23
23
|
// import { memo } from '../../../../../lib/preact/compat/src';
|
|
24
24
|
//组件优化,防止组件的props没有改变但父组件刷新时导致组件刷新
|
|
25
25
|
// export let Carousel = memo(Carouselinner, (prev, next) => {
|