qmwts 1.1.24 → 1.1.25
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.
|
@@ -4,6 +4,6 @@ declare const _default: {
|
|
|
4
4
|
parseObject<T>(o: any): T;
|
|
5
5
|
parseArray<T_1>(o: any): T_1[];
|
|
6
6
|
optionalChaining(o: any, chain: string, substitute?: any): any;
|
|
7
|
-
setNull(o?: any, exclusions?: any):
|
|
7
|
+
setNull(o?: any, exclusions?: any): void;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
package/dist/utils/json-utils.js
CHANGED
|
@@ -42,13 +42,12 @@ exports.default = {
|
|
|
42
42
|
}
|
|
43
43
|
return o || substitute;
|
|
44
44
|
},
|
|
45
|
-
//
|
|
45
|
+
// 将一个object的值全部设为null,主要用于naive-ui
|
|
46
46
|
setNull: function (o, exclusions) {
|
|
47
47
|
if (o === void 0) { o = {}; }
|
|
48
48
|
if (exclusions === void 0) { exclusions = []; }
|
|
49
49
|
for (var key in o)
|
|
50
50
|
if (!exclusions.includes(key))
|
|
51
51
|
o[key] = null;
|
|
52
|
-
return o;
|
|
53
52
|
}
|
|
54
53
|
};
|