@sheinx/hooks 3.4.2-beta.5 → 3.4.2-beta.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-tree.d.ts","sourceRoot":"","sources":["use-tree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAKb,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AASjD,eAAO,MAAM,IAAI;IACf;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEJ,CAAC;AAEF,QAAA,MAAM,OAAO;;;;
|
1
|
+
{"version":3,"file":"use-tree.d.ts","sourceRoot":"","sources":["use-tree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAKb,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AASjD,eAAO,MAAM,IAAI;IACf;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEJ,CAAC;AAEF,QAAA,MAAM,OAAO;;;;CA8aZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -226,8 +226,9 @@ var useTree = function useTree(props) {
|
|
226
226
|
// 重复 id 警告
|
227
227
|
if (context.dataMap.get(id)) {
|
228
228
|
console.error("There is already a key \"".concat(id, "\" exists. The key must be unique."));
|
229
|
-
|
229
|
+
continue;
|
230
230
|
}
|
231
|
+
|
231
232
|
// 制作 data mapping
|
232
233
|
context.dataMap.set(id, item);
|
233
234
|
var _isDisabled = !!disabled;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-tree.d.ts","sourceRoot":"","sources":["use-tree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAKb,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AASjD,eAAO,MAAM,IAAI;IACf;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEJ,CAAC;AAEF,QAAA,MAAM,OAAO;;;;
|
1
|
+
{"version":3,"file":"use-tree.d.ts","sourceRoot":"","sources":["use-tree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,aAAa,EAKb,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AASjD,eAAO,MAAM,IAAI;IACf;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEJ,CAAC;AAEF,QAAA,MAAM,OAAO;;;;CA8aZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -219,8 +219,9 @@ var useTree = function useTree(props) {
|
|
219
219
|
// 重复 id 警告
|
220
220
|
if (context.dataMap.get(id)) {
|
221
221
|
console.error("There is already a key \"".concat(id, "\" exists. The key must be unique."));
|
222
|
-
|
222
|
+
continue;
|
223
223
|
}
|
224
|
+
|
224
225
|
// 制作 data mapping
|
225
226
|
context.dataMap.set(id, item);
|
226
227
|
var _isDisabled = !!disabled;
|