@nutui/nutui-react 2.0.4 → 2.0.5-beta.0
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/CHANGELOG.md +10 -0
- package/dist/esm/ConfigProvider.js +0 -1
- package/dist/esm/Popover.js +4 -3
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/configprovider2.js +681 -12
- package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +3 -4
- package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +3 -4
- package/dist/esm/types/src/utils/use-memo.d.ts +1 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +720 -46
- package/dist/nutui.react.umd.js +705 -31
- package/dist/packages/searchbar/searchbar.scss +0 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/configprovider/configprovider.d.ts +3 -4
- package/dist/types/utils/use-memo.d.ts +1 -0
- package/package.json +2 -1
package/dist/nutui.react.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
return value;
|
|
10
10
|
};
|
|
11
11
|
/*!
|
|
12
|
-
* @nutui/nutui-react v2.0.
|
|
12
|
+
* @nutui/nutui-react v2.0.5 Wed Jul 19 2023 14:14:53 GMT+0800 (China Standard Time)
|
|
13
13
|
* (c) 2023 @jdf2e.
|
|
14
14
|
* Released under the MIT License.
|
|
15
15
|
*/
|
|
@@ -2409,7 +2409,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2409
2409
|
style: {}
|
|
2410
2410
|
};
|
|
2411
2411
|
const prefixCls = "nut-button";
|
|
2412
|
-
const defaultProps$
|
|
2412
|
+
const defaultProps$1p = {
|
|
2413
2413
|
...ComponentDefaults,
|
|
2414
2414
|
color: "",
|
|
2415
2415
|
type: "default",
|
|
@@ -2443,7 +2443,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2443
2443
|
nativeType,
|
|
2444
2444
|
...rest
|
|
2445
2445
|
} = {
|
|
2446
|
-
...defaultProps$
|
|
2446
|
+
...defaultProps$1p,
|
|
2447
2447
|
...props
|
|
2448
2448
|
};
|
|
2449
2449
|
const getStyle = React.useCallback(() => {
|
|
@@ -2497,7 +2497,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2497
2497
|
}
|
|
2498
2498
|
);
|
|
2499
2499
|
Button.displayName = "NutButton";
|
|
2500
|
-
const defaultProps$
|
|
2500
|
+
const defaultProps$1o = {
|
|
2501
2501
|
...ComponentDefaults,
|
|
2502
2502
|
title: "",
|
|
2503
2503
|
description: "",
|
|
@@ -2506,7 +2506,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2506
2506
|
const classPrefix$o = "nut-cell-group";
|
|
2507
2507
|
const CellGroup = (props) => {
|
|
2508
2508
|
const { children, className, style, title, description, divider, ...rest } = {
|
|
2509
|
-
...defaultProps$
|
|
2509
|
+
...defaultProps$1o,
|
|
2510
2510
|
...props
|
|
2511
2511
|
};
|
|
2512
2512
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$o, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__description` }, description) : null, /* @__PURE__ */ React.createElement(
|
|
@@ -2517,9 +2517,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2517
2517
|
children
|
|
2518
2518
|
));
|
|
2519
2519
|
};
|
|
2520
|
-
CellGroup.defaultProps = defaultProps$
|
|
2520
|
+
CellGroup.defaultProps = defaultProps$1o;
|
|
2521
2521
|
CellGroup.displayName = "NutCellGroup";
|
|
2522
|
-
const defaultProps$
|
|
2522
|
+
const defaultProps$1n = {
|
|
2523
2523
|
...ComponentDefaults,
|
|
2524
2524
|
title: null,
|
|
2525
2525
|
description: null,
|
|
@@ -2543,7 +2543,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2543
2543
|
style,
|
|
2544
2544
|
...rest
|
|
2545
2545
|
} = {
|
|
2546
|
-
...defaultProps$
|
|
2546
|
+
...defaultProps$1n,
|
|
2547
2547
|
...props
|
|
2548
2548
|
};
|
|
2549
2549
|
const handleClick2 = (event) => {
|
|
@@ -2575,7 +2575,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2575
2575
|
) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__divider` }))
|
|
2576
2576
|
);
|
|
2577
2577
|
};
|
|
2578
|
-
Cell.defaultProps = defaultProps$
|
|
2578
|
+
Cell.defaultProps = defaultProps$1n;
|
|
2579
2579
|
Cell.displayName = "NutCell";
|
|
2580
2580
|
Cell.Group = CellGroup;
|
|
2581
2581
|
var INFINITY = 1 / 0;
|
|
@@ -2862,6 +2862,672 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2862
2862
|
return string2.match(pattern2) || [];
|
|
2863
2863
|
}
|
|
2864
2864
|
var lodash_kebabcase = kebabCase;
|
|
2865
|
+
var lodash_isequalExports = {};
|
|
2866
|
+
var lodash_isequal = {
|
|
2867
|
+
get exports() {
|
|
2868
|
+
return lodash_isequalExports;
|
|
2869
|
+
},
|
|
2870
|
+
set exports(v) {
|
|
2871
|
+
lodash_isequalExports = v;
|
|
2872
|
+
}
|
|
2873
|
+
};
|
|
2874
|
+
(function(module2, exports3) {
|
|
2875
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
2876
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
2877
|
+
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
2878
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
2879
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag2 = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]";
|
|
2880
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
2881
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
2882
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
2883
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
2884
|
+
var typedArrayTags = {};
|
|
2885
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
2886
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
2887
|
+
var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
2888
|
+
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
2889
|
+
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
2890
|
+
var freeExports = exports3 && !exports3.nodeType && exports3;
|
|
2891
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
2892
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
2893
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
2894
|
+
var nodeUtil = function() {
|
|
2895
|
+
try {
|
|
2896
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
2897
|
+
} catch (e) {
|
|
2898
|
+
}
|
|
2899
|
+
}();
|
|
2900
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
2901
|
+
function arrayFilter(array2, predicate) {
|
|
2902
|
+
var index = -1, length = array2 == null ? 0 : array2.length, resIndex = 0, result = [];
|
|
2903
|
+
while (++index < length) {
|
|
2904
|
+
var value = array2[index];
|
|
2905
|
+
if (predicate(value, index, array2)) {
|
|
2906
|
+
result[resIndex++] = value;
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
return result;
|
|
2910
|
+
}
|
|
2911
|
+
function arrayPush(array2, values) {
|
|
2912
|
+
var index = -1, length = values.length, offset = array2.length;
|
|
2913
|
+
while (++index < length) {
|
|
2914
|
+
array2[offset + index] = values[index];
|
|
2915
|
+
}
|
|
2916
|
+
return array2;
|
|
2917
|
+
}
|
|
2918
|
+
function arraySome(array2, predicate) {
|
|
2919
|
+
var index = -1, length = array2 == null ? 0 : array2.length;
|
|
2920
|
+
while (++index < length) {
|
|
2921
|
+
if (predicate(array2[index], index, array2)) {
|
|
2922
|
+
return true;
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
return false;
|
|
2926
|
+
}
|
|
2927
|
+
function baseTimes(n, iteratee) {
|
|
2928
|
+
var index = -1, result = Array(n);
|
|
2929
|
+
while (++index < n) {
|
|
2930
|
+
result[index] = iteratee(index);
|
|
2931
|
+
}
|
|
2932
|
+
return result;
|
|
2933
|
+
}
|
|
2934
|
+
function baseUnary(func) {
|
|
2935
|
+
return function(value) {
|
|
2936
|
+
return func(value);
|
|
2937
|
+
};
|
|
2938
|
+
}
|
|
2939
|
+
function cacheHas(cache, key) {
|
|
2940
|
+
return cache.has(key);
|
|
2941
|
+
}
|
|
2942
|
+
function getValue2(object2, key) {
|
|
2943
|
+
return object2 == null ? void 0 : object2[key];
|
|
2944
|
+
}
|
|
2945
|
+
function mapToArray(map) {
|
|
2946
|
+
var index = -1, result = Array(map.size);
|
|
2947
|
+
map.forEach(function(value, key) {
|
|
2948
|
+
result[++index] = [key, value];
|
|
2949
|
+
});
|
|
2950
|
+
return result;
|
|
2951
|
+
}
|
|
2952
|
+
function overArg(func, transform) {
|
|
2953
|
+
return function(arg) {
|
|
2954
|
+
return func(transform(arg));
|
|
2955
|
+
};
|
|
2956
|
+
}
|
|
2957
|
+
function setToArray(set) {
|
|
2958
|
+
var index = -1, result = Array(set.size);
|
|
2959
|
+
set.forEach(function(value) {
|
|
2960
|
+
result[++index] = value;
|
|
2961
|
+
});
|
|
2962
|
+
return result;
|
|
2963
|
+
}
|
|
2964
|
+
var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto2 = Object.prototype;
|
|
2965
|
+
var coreJsData = root2["__core-js_shared__"];
|
|
2966
|
+
var funcToString = funcProto.toString;
|
|
2967
|
+
var hasOwnProperty = objectProto2.hasOwnProperty;
|
|
2968
|
+
var maskSrcKey = function() {
|
|
2969
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
2970
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
2971
|
+
}();
|
|
2972
|
+
var nativeObjectToString = objectProto2.toString;
|
|
2973
|
+
var reIsNative = RegExp(
|
|
2974
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2975
|
+
);
|
|
2976
|
+
var Buffer2 = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
2977
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
|
|
2978
|
+
var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set2 = getNative(root2, "Set"), WeakMap2 = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
|
|
2979
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
|
|
2980
|
+
var symbolProto2 = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
|
|
2981
|
+
function Hash(entries) {
|
|
2982
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
2983
|
+
this.clear();
|
|
2984
|
+
while (++index < length) {
|
|
2985
|
+
var entry = entries[index];
|
|
2986
|
+
this.set(entry[0], entry[1]);
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
function hashClear() {
|
|
2990
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
2991
|
+
this.size = 0;
|
|
2992
|
+
}
|
|
2993
|
+
function hashDelete(key) {
|
|
2994
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
2995
|
+
this.size -= result ? 1 : 0;
|
|
2996
|
+
return result;
|
|
2997
|
+
}
|
|
2998
|
+
function hashGet(key) {
|
|
2999
|
+
var data = this.__data__;
|
|
3000
|
+
if (nativeCreate) {
|
|
3001
|
+
var result = data[key];
|
|
3002
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
3003
|
+
}
|
|
3004
|
+
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
3005
|
+
}
|
|
3006
|
+
function hashHas(key) {
|
|
3007
|
+
var data = this.__data__;
|
|
3008
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
3009
|
+
}
|
|
3010
|
+
function hashSet(key, value) {
|
|
3011
|
+
var data = this.__data__;
|
|
3012
|
+
this.size += this.has(key) ? 0 : 1;
|
|
3013
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
3014
|
+
return this;
|
|
3015
|
+
}
|
|
3016
|
+
Hash.prototype.clear = hashClear;
|
|
3017
|
+
Hash.prototype["delete"] = hashDelete;
|
|
3018
|
+
Hash.prototype.get = hashGet;
|
|
3019
|
+
Hash.prototype.has = hashHas;
|
|
3020
|
+
Hash.prototype.set = hashSet;
|
|
3021
|
+
function ListCache(entries) {
|
|
3022
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
3023
|
+
this.clear();
|
|
3024
|
+
while (++index < length) {
|
|
3025
|
+
var entry = entries[index];
|
|
3026
|
+
this.set(entry[0], entry[1]);
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
function listCacheClear() {
|
|
3030
|
+
this.__data__ = [];
|
|
3031
|
+
this.size = 0;
|
|
3032
|
+
}
|
|
3033
|
+
function listCacheDelete(key) {
|
|
3034
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
3035
|
+
if (index < 0) {
|
|
3036
|
+
return false;
|
|
3037
|
+
}
|
|
3038
|
+
var lastIndex = data.length - 1;
|
|
3039
|
+
if (index == lastIndex) {
|
|
3040
|
+
data.pop();
|
|
3041
|
+
} else {
|
|
3042
|
+
splice.call(data, index, 1);
|
|
3043
|
+
}
|
|
3044
|
+
--this.size;
|
|
3045
|
+
return true;
|
|
3046
|
+
}
|
|
3047
|
+
function listCacheGet(key) {
|
|
3048
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
3049
|
+
return index < 0 ? void 0 : data[index][1];
|
|
3050
|
+
}
|
|
3051
|
+
function listCacheHas(key) {
|
|
3052
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
3053
|
+
}
|
|
3054
|
+
function listCacheSet(key, value) {
|
|
3055
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
3056
|
+
if (index < 0) {
|
|
3057
|
+
++this.size;
|
|
3058
|
+
data.push([key, value]);
|
|
3059
|
+
} else {
|
|
3060
|
+
data[index][1] = value;
|
|
3061
|
+
}
|
|
3062
|
+
return this;
|
|
3063
|
+
}
|
|
3064
|
+
ListCache.prototype.clear = listCacheClear;
|
|
3065
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
3066
|
+
ListCache.prototype.get = listCacheGet;
|
|
3067
|
+
ListCache.prototype.has = listCacheHas;
|
|
3068
|
+
ListCache.prototype.set = listCacheSet;
|
|
3069
|
+
function MapCache(entries) {
|
|
3070
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
3071
|
+
this.clear();
|
|
3072
|
+
while (++index < length) {
|
|
3073
|
+
var entry = entries[index];
|
|
3074
|
+
this.set(entry[0], entry[1]);
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
function mapCacheClear() {
|
|
3078
|
+
this.size = 0;
|
|
3079
|
+
this.__data__ = {
|
|
3080
|
+
"hash": new Hash(),
|
|
3081
|
+
"map": new (Map2 || ListCache)(),
|
|
3082
|
+
"string": new Hash()
|
|
3083
|
+
};
|
|
3084
|
+
}
|
|
3085
|
+
function mapCacheDelete(key) {
|
|
3086
|
+
var result = getMapData(this, key)["delete"](key);
|
|
3087
|
+
this.size -= result ? 1 : 0;
|
|
3088
|
+
return result;
|
|
3089
|
+
}
|
|
3090
|
+
function mapCacheGet(key) {
|
|
3091
|
+
return getMapData(this, key).get(key);
|
|
3092
|
+
}
|
|
3093
|
+
function mapCacheHas(key) {
|
|
3094
|
+
return getMapData(this, key).has(key);
|
|
3095
|
+
}
|
|
3096
|
+
function mapCacheSet(key, value) {
|
|
3097
|
+
var data = getMapData(this, key), size = data.size;
|
|
3098
|
+
data.set(key, value);
|
|
3099
|
+
this.size += data.size == size ? 0 : 1;
|
|
3100
|
+
return this;
|
|
3101
|
+
}
|
|
3102
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
3103
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
3104
|
+
MapCache.prototype.get = mapCacheGet;
|
|
3105
|
+
MapCache.prototype.has = mapCacheHas;
|
|
3106
|
+
MapCache.prototype.set = mapCacheSet;
|
|
3107
|
+
function SetCache(values) {
|
|
3108
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
3109
|
+
this.__data__ = new MapCache();
|
|
3110
|
+
while (++index < length) {
|
|
3111
|
+
this.add(values[index]);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
function setCacheAdd(value) {
|
|
3115
|
+
this.__data__.set(value, HASH_UNDEFINED);
|
|
3116
|
+
return this;
|
|
3117
|
+
}
|
|
3118
|
+
function setCacheHas(value) {
|
|
3119
|
+
return this.__data__.has(value);
|
|
3120
|
+
}
|
|
3121
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
3122
|
+
SetCache.prototype.has = setCacheHas;
|
|
3123
|
+
function Stack(entries) {
|
|
3124
|
+
var data = this.__data__ = new ListCache(entries);
|
|
3125
|
+
this.size = data.size;
|
|
3126
|
+
}
|
|
3127
|
+
function stackClear() {
|
|
3128
|
+
this.__data__ = new ListCache();
|
|
3129
|
+
this.size = 0;
|
|
3130
|
+
}
|
|
3131
|
+
function stackDelete(key) {
|
|
3132
|
+
var data = this.__data__, result = data["delete"](key);
|
|
3133
|
+
this.size = data.size;
|
|
3134
|
+
return result;
|
|
3135
|
+
}
|
|
3136
|
+
function stackGet(key) {
|
|
3137
|
+
return this.__data__.get(key);
|
|
3138
|
+
}
|
|
3139
|
+
function stackHas(key) {
|
|
3140
|
+
return this.__data__.has(key);
|
|
3141
|
+
}
|
|
3142
|
+
function stackSet(key, value) {
|
|
3143
|
+
var data = this.__data__;
|
|
3144
|
+
if (data instanceof ListCache) {
|
|
3145
|
+
var pairs = data.__data__;
|
|
3146
|
+
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
3147
|
+
pairs.push([key, value]);
|
|
3148
|
+
this.size = ++data.size;
|
|
3149
|
+
return this;
|
|
3150
|
+
}
|
|
3151
|
+
data = this.__data__ = new MapCache(pairs);
|
|
3152
|
+
}
|
|
3153
|
+
data.set(key, value);
|
|
3154
|
+
this.size = data.size;
|
|
3155
|
+
return this;
|
|
3156
|
+
}
|
|
3157
|
+
Stack.prototype.clear = stackClear;
|
|
3158
|
+
Stack.prototype["delete"] = stackDelete;
|
|
3159
|
+
Stack.prototype.get = stackGet;
|
|
3160
|
+
Stack.prototype.has = stackHas;
|
|
3161
|
+
Stack.prototype.set = stackSet;
|
|
3162
|
+
function arrayLikeKeys(value, inherited) {
|
|
3163
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
3164
|
+
for (var key in value) {
|
|
3165
|
+
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3166
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
3167
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
3168
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
3169
|
+
isIndex(key, length)))) {
|
|
3170
|
+
result.push(key);
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
return result;
|
|
3174
|
+
}
|
|
3175
|
+
function assocIndexOf(array2, key) {
|
|
3176
|
+
var length = array2.length;
|
|
3177
|
+
while (length--) {
|
|
3178
|
+
if (eq(array2[length][0], key)) {
|
|
3179
|
+
return length;
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
return -1;
|
|
3183
|
+
}
|
|
3184
|
+
function baseGetAllKeys(object2, keysFunc, symbolsFunc) {
|
|
3185
|
+
var result = keysFunc(object2);
|
|
3186
|
+
return isArray(object2) ? result : arrayPush(result, symbolsFunc(object2));
|
|
3187
|
+
}
|
|
3188
|
+
function baseGetTag(value) {
|
|
3189
|
+
if (value == null) {
|
|
3190
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
3191
|
+
}
|
|
3192
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString2(value);
|
|
3193
|
+
}
|
|
3194
|
+
function baseIsArguments(value) {
|
|
3195
|
+
return isObjectLike2(value) && baseGetTag(value) == argsTag;
|
|
3196
|
+
}
|
|
3197
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
3198
|
+
if (value === other) {
|
|
3199
|
+
return true;
|
|
3200
|
+
}
|
|
3201
|
+
if (value == null || other == null || !isObjectLike2(value) && !isObjectLike2(other)) {
|
|
3202
|
+
return value !== value && other !== other;
|
|
3203
|
+
}
|
|
3204
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
3205
|
+
}
|
|
3206
|
+
function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
3207
|
+
var objIsArr = isArray(object2), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object2), othTag = othIsArr ? arrayTag : getTag(other);
|
|
3208
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
3209
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
3210
|
+
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
3211
|
+
if (isSameTag && isBuffer(object2)) {
|
|
3212
|
+
if (!isBuffer(other)) {
|
|
3213
|
+
return false;
|
|
3214
|
+
}
|
|
3215
|
+
objIsArr = true;
|
|
3216
|
+
objIsObj = false;
|
|
3217
|
+
}
|
|
3218
|
+
if (isSameTag && !objIsObj) {
|
|
3219
|
+
stack || (stack = new Stack());
|
|
3220
|
+
return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
3221
|
+
}
|
|
3222
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
3223
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
3224
|
+
if (objIsWrapped || othIsWrapped) {
|
|
3225
|
+
var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
3226
|
+
stack || (stack = new Stack());
|
|
3227
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
3228
|
+
}
|
|
3229
|
+
}
|
|
3230
|
+
if (!isSameTag) {
|
|
3231
|
+
return false;
|
|
3232
|
+
}
|
|
3233
|
+
stack || (stack = new Stack());
|
|
3234
|
+
return equalObjects(object2, other, bitmask, customizer, equalFunc, stack);
|
|
3235
|
+
}
|
|
3236
|
+
function baseIsNative(value) {
|
|
3237
|
+
if (!isObject2(value) || isMasked(value)) {
|
|
3238
|
+
return false;
|
|
3239
|
+
}
|
|
3240
|
+
var pattern2 = isFunction2(value) ? reIsNative : reIsHostCtor;
|
|
3241
|
+
return pattern2.test(toSource(value));
|
|
3242
|
+
}
|
|
3243
|
+
function baseIsTypedArray(value) {
|
|
3244
|
+
return isObjectLike2(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
3245
|
+
}
|
|
3246
|
+
function baseKeys(object2) {
|
|
3247
|
+
if (!isPrototype(object2)) {
|
|
3248
|
+
return nativeKeys(object2);
|
|
3249
|
+
}
|
|
3250
|
+
var result = [];
|
|
3251
|
+
for (var key in Object(object2)) {
|
|
3252
|
+
if (hasOwnProperty.call(object2, key) && key != "constructor") {
|
|
3253
|
+
result.push(key);
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
return result;
|
|
3257
|
+
}
|
|
3258
|
+
function equalArrays(array2, other, bitmask, customizer, equalFunc, stack) {
|
|
3259
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array2.length, othLength = other.length;
|
|
3260
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
3261
|
+
return false;
|
|
3262
|
+
}
|
|
3263
|
+
var stacked = stack.get(array2);
|
|
3264
|
+
if (stacked && stack.get(other)) {
|
|
3265
|
+
return stacked == other;
|
|
3266
|
+
}
|
|
3267
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
|
|
3268
|
+
stack.set(array2, other);
|
|
3269
|
+
stack.set(other, array2);
|
|
3270
|
+
while (++index < arrLength) {
|
|
3271
|
+
var arrValue = array2[index], othValue = other[index];
|
|
3272
|
+
if (customizer) {
|
|
3273
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array2, stack) : customizer(arrValue, othValue, index, array2, other, stack);
|
|
3274
|
+
}
|
|
3275
|
+
if (compared !== void 0) {
|
|
3276
|
+
if (compared) {
|
|
3277
|
+
continue;
|
|
3278
|
+
}
|
|
3279
|
+
result = false;
|
|
3280
|
+
break;
|
|
3281
|
+
}
|
|
3282
|
+
if (seen) {
|
|
3283
|
+
if (!arraySome(other, function(othValue2, othIndex) {
|
|
3284
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
3285
|
+
return seen.push(othIndex);
|
|
3286
|
+
}
|
|
3287
|
+
})) {
|
|
3288
|
+
result = false;
|
|
3289
|
+
break;
|
|
3290
|
+
}
|
|
3291
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
3292
|
+
result = false;
|
|
3293
|
+
break;
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
3296
|
+
stack["delete"](array2);
|
|
3297
|
+
stack["delete"](other);
|
|
3298
|
+
return result;
|
|
3299
|
+
}
|
|
3300
|
+
function equalByTag(object2, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
3301
|
+
switch (tag) {
|
|
3302
|
+
case dataViewTag:
|
|
3303
|
+
if (object2.byteLength != other.byteLength || object2.byteOffset != other.byteOffset) {
|
|
3304
|
+
return false;
|
|
3305
|
+
}
|
|
3306
|
+
object2 = object2.buffer;
|
|
3307
|
+
other = other.buffer;
|
|
3308
|
+
case arrayBufferTag:
|
|
3309
|
+
if (object2.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object2), new Uint8Array2(other))) {
|
|
3310
|
+
return false;
|
|
3311
|
+
}
|
|
3312
|
+
return true;
|
|
3313
|
+
case boolTag:
|
|
3314
|
+
case dateTag:
|
|
3315
|
+
case numberTag:
|
|
3316
|
+
return eq(+object2, +other);
|
|
3317
|
+
case errorTag:
|
|
3318
|
+
return object2.name == other.name && object2.message == other.message;
|
|
3319
|
+
case regexpTag:
|
|
3320
|
+
case stringTag:
|
|
3321
|
+
return object2 == other + "";
|
|
3322
|
+
case mapTag:
|
|
3323
|
+
var convert = mapToArray;
|
|
3324
|
+
case setTag:
|
|
3325
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
3326
|
+
convert || (convert = setToArray);
|
|
3327
|
+
if (object2.size != other.size && !isPartial) {
|
|
3328
|
+
return false;
|
|
3329
|
+
}
|
|
3330
|
+
var stacked = stack.get(object2);
|
|
3331
|
+
if (stacked) {
|
|
3332
|
+
return stacked == other;
|
|
3333
|
+
}
|
|
3334
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
3335
|
+
stack.set(object2, other);
|
|
3336
|
+
var result = equalArrays(convert(object2), convert(other), bitmask, customizer, equalFunc, stack);
|
|
3337
|
+
stack["delete"](object2);
|
|
3338
|
+
return result;
|
|
3339
|
+
case symbolTag2:
|
|
3340
|
+
if (symbolValueOf) {
|
|
3341
|
+
return symbolValueOf.call(object2) == symbolValueOf.call(other);
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
return false;
|
|
3345
|
+
}
|
|
3346
|
+
function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
3347
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object2), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
3348
|
+
if (objLength != othLength && !isPartial) {
|
|
3349
|
+
return false;
|
|
3350
|
+
}
|
|
3351
|
+
var index = objLength;
|
|
3352
|
+
while (index--) {
|
|
3353
|
+
var key = objProps[index];
|
|
3354
|
+
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
3355
|
+
return false;
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
var stacked = stack.get(object2);
|
|
3359
|
+
if (stacked && stack.get(other)) {
|
|
3360
|
+
return stacked == other;
|
|
3361
|
+
}
|
|
3362
|
+
var result = true;
|
|
3363
|
+
stack.set(object2, other);
|
|
3364
|
+
stack.set(other, object2);
|
|
3365
|
+
var skipCtor = isPartial;
|
|
3366
|
+
while (++index < objLength) {
|
|
3367
|
+
key = objProps[index];
|
|
3368
|
+
var objValue = object2[key], othValue = other[key];
|
|
3369
|
+
if (customizer) {
|
|
3370
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object2, stack) : customizer(objValue, othValue, key, object2, other, stack);
|
|
3371
|
+
}
|
|
3372
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
3373
|
+
result = false;
|
|
3374
|
+
break;
|
|
3375
|
+
}
|
|
3376
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
3377
|
+
}
|
|
3378
|
+
if (result && !skipCtor) {
|
|
3379
|
+
var objCtor = object2.constructor, othCtor = other.constructor;
|
|
3380
|
+
if (objCtor != othCtor && ("constructor" in object2 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
3381
|
+
result = false;
|
|
3382
|
+
}
|
|
3383
|
+
}
|
|
3384
|
+
stack["delete"](object2);
|
|
3385
|
+
stack["delete"](other);
|
|
3386
|
+
return result;
|
|
3387
|
+
}
|
|
3388
|
+
function getAllKeys(object2) {
|
|
3389
|
+
return baseGetAllKeys(object2, keys, getSymbols);
|
|
3390
|
+
}
|
|
3391
|
+
function getMapData(map, key) {
|
|
3392
|
+
var data = map.__data__;
|
|
3393
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
3394
|
+
}
|
|
3395
|
+
function getNative(object2, key) {
|
|
3396
|
+
var value = getValue2(object2, key);
|
|
3397
|
+
return baseIsNative(value) ? value : void 0;
|
|
3398
|
+
}
|
|
3399
|
+
function getRawTag(value) {
|
|
3400
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
3401
|
+
try {
|
|
3402
|
+
value[symToStringTag] = void 0;
|
|
3403
|
+
var unmasked = true;
|
|
3404
|
+
} catch (e) {
|
|
3405
|
+
}
|
|
3406
|
+
var result = nativeObjectToString.call(value);
|
|
3407
|
+
if (unmasked) {
|
|
3408
|
+
if (isOwn) {
|
|
3409
|
+
value[symToStringTag] = tag;
|
|
3410
|
+
} else {
|
|
3411
|
+
delete value[symToStringTag];
|
|
3412
|
+
}
|
|
3413
|
+
}
|
|
3414
|
+
return result;
|
|
3415
|
+
}
|
|
3416
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object2) {
|
|
3417
|
+
if (object2 == null) {
|
|
3418
|
+
return [];
|
|
3419
|
+
}
|
|
3420
|
+
object2 = Object(object2);
|
|
3421
|
+
return arrayFilter(nativeGetSymbols(object2), function(symbol) {
|
|
3422
|
+
return propertyIsEnumerable.call(object2, symbol);
|
|
3423
|
+
});
|
|
3424
|
+
};
|
|
3425
|
+
var getTag = baseGetTag;
|
|
3426
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
|
|
3427
|
+
getTag = function(value) {
|
|
3428
|
+
var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3429
|
+
if (ctorString) {
|
|
3430
|
+
switch (ctorString) {
|
|
3431
|
+
case dataViewCtorString:
|
|
3432
|
+
return dataViewTag;
|
|
3433
|
+
case mapCtorString:
|
|
3434
|
+
return mapTag;
|
|
3435
|
+
case promiseCtorString:
|
|
3436
|
+
return promiseTag;
|
|
3437
|
+
case setCtorString:
|
|
3438
|
+
return setTag;
|
|
3439
|
+
case weakMapCtorString:
|
|
3440
|
+
return weakMapTag;
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
return result;
|
|
3444
|
+
};
|
|
3445
|
+
}
|
|
3446
|
+
function isIndex(value, length) {
|
|
3447
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
3448
|
+
return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
3449
|
+
}
|
|
3450
|
+
function isKeyable(value) {
|
|
3451
|
+
var type2 = typeof value;
|
|
3452
|
+
return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
|
|
3453
|
+
}
|
|
3454
|
+
function isMasked(func) {
|
|
3455
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
3456
|
+
}
|
|
3457
|
+
function isPrototype(value) {
|
|
3458
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto2;
|
|
3459
|
+
return value === proto;
|
|
3460
|
+
}
|
|
3461
|
+
function objectToString2(value) {
|
|
3462
|
+
return nativeObjectToString.call(value);
|
|
3463
|
+
}
|
|
3464
|
+
function toSource(func) {
|
|
3465
|
+
if (func != null) {
|
|
3466
|
+
try {
|
|
3467
|
+
return funcToString.call(func);
|
|
3468
|
+
} catch (e) {
|
|
3469
|
+
}
|
|
3470
|
+
try {
|
|
3471
|
+
return func + "";
|
|
3472
|
+
} catch (e) {
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
return "";
|
|
3476
|
+
}
|
|
3477
|
+
function eq(value, other) {
|
|
3478
|
+
return value === other || value !== value && other !== other;
|
|
3479
|
+
}
|
|
3480
|
+
var isArguments = baseIsArguments(function() {
|
|
3481
|
+
return arguments;
|
|
3482
|
+
}()) ? baseIsArguments : function(value) {
|
|
3483
|
+
return isObjectLike2(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
3484
|
+
};
|
|
3485
|
+
var isArray = Array.isArray;
|
|
3486
|
+
function isArrayLike(value) {
|
|
3487
|
+
return value != null && isLength(value.length) && !isFunction2(value);
|
|
3488
|
+
}
|
|
3489
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
3490
|
+
function isEqual2(value, other) {
|
|
3491
|
+
return baseIsEqual(value, other);
|
|
3492
|
+
}
|
|
3493
|
+
function isFunction2(value) {
|
|
3494
|
+
if (!isObject2(value)) {
|
|
3495
|
+
return false;
|
|
3496
|
+
}
|
|
3497
|
+
var tag = baseGetTag(value);
|
|
3498
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
3499
|
+
}
|
|
3500
|
+
function isLength(value) {
|
|
3501
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
3502
|
+
}
|
|
3503
|
+
function isObject2(value) {
|
|
3504
|
+
var type2 = typeof value;
|
|
3505
|
+
return value != null && (type2 == "object" || type2 == "function");
|
|
3506
|
+
}
|
|
3507
|
+
function isObjectLike2(value) {
|
|
3508
|
+
return value != null && typeof value == "object";
|
|
3509
|
+
}
|
|
3510
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
3511
|
+
function keys(object2) {
|
|
3512
|
+
return isArrayLike(object2) ? arrayLikeKeys(object2) : baseKeys(object2);
|
|
3513
|
+
}
|
|
3514
|
+
function stubArray() {
|
|
3515
|
+
return [];
|
|
3516
|
+
}
|
|
3517
|
+
function stubFalse() {
|
|
3518
|
+
return false;
|
|
3519
|
+
}
|
|
3520
|
+
module2.exports = isEqual2;
|
|
3521
|
+
})(lodash_isequal, lodash_isequalExports);
|
|
3522
|
+
const isequal = lodash_isequalExports;
|
|
3523
|
+
function useMemo(getValue2, condition, shouldUpdate) {
|
|
3524
|
+
const cacheRef = React__namespace.useRef({});
|
|
3525
|
+
if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
3526
|
+
cacheRef.current.value = getValue2();
|
|
3527
|
+
cacheRef.current.condition = condition;
|
|
3528
|
+
}
|
|
3529
|
+
return cacheRef.current.value;
|
|
3530
|
+
}
|
|
2865
3531
|
const zhCN = {
|
|
2866
3532
|
save: "保存",
|
|
2867
3533
|
confirm: "确认",
|
|
@@ -2991,10 +3657,6 @@ Check the top-level render call using <` + t + ">.");
|
|
|
2991
3657
|
errorCanvasTips: "当前环境不支持Canvas"
|
|
2992
3658
|
}
|
|
2993
3659
|
};
|
|
2994
|
-
const defaultProps$1n = {
|
|
2995
|
-
...ComponentDefaults,
|
|
2996
|
-
locale: zhCN
|
|
2997
|
-
};
|
|
2998
3660
|
const classPrefix$m = "nut-configprovider";
|
|
2999
3661
|
const defaultConfigRef = {
|
|
3000
3662
|
current: {
|
|
@@ -3016,24 +3678,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
3016
3678
|
return cssVars;
|
|
3017
3679
|
}
|
|
3018
3680
|
const ConfigProvider = (props) => {
|
|
3019
|
-
const {
|
|
3020
|
-
const
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
};
|
|
3025
|
-
return /* @__PURE__ */ React.createElement(
|
|
3026
|
-
ConfigContext.Provider,
|
|
3027
|
-
{
|
|
3028
|
-
value: {
|
|
3029
|
-
...parentConfig,
|
|
3681
|
+
const { style, className, children, ...config2 } = props;
|
|
3682
|
+
const mergedConfig = useMemo(
|
|
3683
|
+
() => {
|
|
3684
|
+
return {
|
|
3685
|
+
...getDefaultConfig(),
|
|
3030
3686
|
...config2
|
|
3031
|
-
}
|
|
3687
|
+
};
|
|
3032
3688
|
},
|
|
3033
|
-
|
|
3689
|
+
[config2],
|
|
3690
|
+
(prev, next) => prev.some((prevTheme, index) => {
|
|
3691
|
+
const nextTheme = next[index];
|
|
3692
|
+
return !isequal(prevTheme, nextTheme);
|
|
3693
|
+
})
|
|
3034
3694
|
);
|
|
3695
|
+
const cssVarStyle = React.useMemo(() => {
|
|
3696
|
+
return convertThemeVarsToCSSVars(mergedConfig.theme || {});
|
|
3697
|
+
}, [mergedConfig.theme]);
|
|
3698
|
+
return /* @__PURE__ */ React.createElement(ConfigContext.Provider, { value: mergedConfig }, /* @__PURE__ */ React.createElement(
|
|
3699
|
+
"div",
|
|
3700
|
+
{
|
|
3701
|
+
className: classNames(classPrefix$m, className),
|
|
3702
|
+
style: {
|
|
3703
|
+
...cssVarStyle,
|
|
3704
|
+
...style
|
|
3705
|
+
}
|
|
3706
|
+
},
|
|
3707
|
+
children
|
|
3708
|
+
));
|
|
3035
3709
|
};
|
|
3036
|
-
ConfigProvider.defaultProps = defaultProps$1n;
|
|
3037
3710
|
ConfigProvider.displayName = "NutConfigProvider";
|
|
3038
3711
|
const pxCheck = (value) => {
|
|
3039
3712
|
return Number.isNaN(Number(value)) ? String(value) : `${value}px`;
|
|
@@ -5486,7 +6159,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
5486
6159
|
const el = getElement();
|
|
5487
6160
|
el.addEventListener("scroll", handleScroll, false);
|
|
5488
6161
|
return () => {
|
|
5489
|
-
el.removeEventListener("
|
|
6162
|
+
el.removeEventListener("scroll", handleScroll);
|
|
5490
6163
|
};
|
|
5491
6164
|
}, [getElement, handleScroll]);
|
|
5492
6165
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -20035,6 +20708,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20035
20708
|
);
|
|
20036
20709
|
const getContentWidth = () => {
|
|
20037
20710
|
let rect = getRect(popoverRef.current);
|
|
20711
|
+
const scrollDis = document.documentElement.scrollTop || window.scrollY;
|
|
20038
20712
|
if (targetId) {
|
|
20039
20713
|
setTimeout(() => {
|
|
20040
20714
|
rect = getRect(document.querySelector(`#${targetId}`));
|
|
@@ -20042,7 +20716,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20042
20716
|
width: rect.width,
|
|
20043
20717
|
height: rect.height,
|
|
20044
20718
|
left: rect.left,
|
|
20045
|
-
top: rect.top,
|
|
20719
|
+
top: rect.top + scrollDis,
|
|
20046
20720
|
right: rect.right
|
|
20047
20721
|
});
|
|
20048
20722
|
if (popoverContentRef.current) {
|
|
@@ -20055,7 +20729,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20055
20729
|
width: rect.width,
|
|
20056
20730
|
height: rect.height,
|
|
20057
20731
|
left: rect.left,
|
|
20058
|
-
top: rect.top,
|
|
20732
|
+
top: rect.top + scrollDis,
|
|
20059
20733
|
right: rect.right
|
|
20060
20734
|
});
|
|
20061
20735
|
if (popoverContentRef.current) {
|
|
@@ -20166,7 +20840,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20166
20840
|
},
|
|
20167
20841
|
item.className
|
|
20168
20842
|
),
|
|
20169
|
-
key: item.key,
|
|
20843
|
+
key: item.key || index,
|
|
20170
20844
|
onClick: () => handleSelect(item, index)
|
|
20171
20845
|
},
|
|
20172
20846
|
item.icon ? item.icon : null,
|