@beisen-platform/area-selector
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -57,5 +57,25 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
var china = ['', '', [chinaPart1].concat(_toConsumableArray(chinaPart2))]; | ||
var foreignData = disableForeignArea ? null : buildTree(foreign, index); | ||
if (disableForeignArea) { | ||
foreignData = null; | ||
} else { | ||
foreignData = buildTree(foreign, index); | ||
foreignData.children.unshift({ | ||
code: "2", | ||
name: '国外', | ||
parentCode: null, | ||
children: null | ||
}); | ||
index['2'] = { | ||
code: "2", | ||
name: '国外', | ||
parentCode: null, | ||
children: null | ||
}; | ||
} | ||
return { | ||
chinaData: buildTree(china, index), | ||
foreignData: disableForeignArea ? null : buildTree(foreign, index), | ||
foreignData: foreignData, | ||
index: index | ||
@@ -62,0 +82,0 @@ }; |
{ | ||
"name": "@beisen-platform/area-selector", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "用于选择地区,多配合着选择器一起使用,可配置单选或多选", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1825712
56661