@fruits-chain/dashu-bottom-bar-pro
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -8,2 +8,3 @@ "use strict"; | ||
var _reactNativeXiaoshu = require("@fruits-chain/react-native-xiaoshu"); | ||
var _ahooks = require("ahooks"); | ||
var _isUndefined = _interopRequireDefault(require("lodash/isUndefined")); | ||
@@ -43,2 +44,3 @@ var _noop = _interopRequireDefault(require("lodash/noop")); | ||
} : {}; | ||
// 当前显示几个按钮 | ||
@@ -53,3 +55,3 @@ /** 计算当前有多少个button的逻辑 */ | ||
}, [buttons === null || buttons === void 0 ? void 0 : buttons.length]); | ||
(0, _react.useEffect)(() => { | ||
(0, _ahooks.useDeepCompareEffect)(() => { | ||
if (wrapElementLayout && innerElementLayout) { | ||
@@ -69,4 +71,3 @@ let resCount = showCount; | ||
} | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [wrapElementLayout === null || wrapElementLayout === void 0 ? void 0 : wrapElementLayout.width, innerElementLayout === null || innerElementLayout === void 0 ? void 0 : innerElementLayout.width, showCount, isMagnify, buttons === null || buttons === void 0 ? void 0 : buttons.length]); | ||
}, [wrapElementLayout === null || wrapElementLayout === void 0 ? void 0 : wrapElementLayout.width, innerElementLayout === null || innerElementLayout === void 0 ? void 0 : innerElementLayout.width, isMagnify, buttons === null || buttons === void 0 ? void 0 : buttons.length]); | ||
(0, _react.useEffect)(() => { | ||
@@ -73,0 +74,0 @@ setIsMagnify(true); |
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import { ActionSheet, Button } from "@fruits-chain/react-native-xiaoshu"; | ||
import { useDeepCompareEffect } from "ahooks"; | ||
import isUndefined from "lodash/isUndefined"; | ||
@@ -33,2 +34,3 @@ import noop from "lodash/noop"; | ||
} : {}; | ||
// 当前显示几个按钮 | ||
@@ -43,3 +45,3 @@ /** 计算当前有多少个button的逻辑 */ | ||
}, [buttons === null || buttons === void 0 ? void 0 : buttons.length]); | ||
useEffect(() => { | ||
useDeepCompareEffect(() => { | ||
if (wrapElementLayout && innerElementLayout) { | ||
@@ -59,4 +61,3 @@ let resCount = showCount; | ||
} | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [wrapElementLayout === null || wrapElementLayout === void 0 ? void 0 : wrapElementLayout.width, innerElementLayout === null || innerElementLayout === void 0 ? void 0 : innerElementLayout.width, showCount, isMagnify, buttons === null || buttons === void 0 ? void 0 : buttons.length]); | ||
}, [wrapElementLayout === null || wrapElementLayout === void 0 ? void 0 : wrapElementLayout.width, innerElementLayout === null || innerElementLayout === void 0 ? void 0 : innerElementLayout.width, isMagnify, buttons === null || buttons === void 0 ? void 0 : buttons.length]); | ||
useEffect(() => { | ||
@@ -63,0 +64,0 @@ setIsMagnify(true); |
{ | ||
"name": "@fruits-chain/dashu-bottom-bar-pro", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "dist/commonjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/module/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
56947
806