@nocobase/plugin-field-china-region 1.0.1-alpha.2 → 1.0.1-alpha.3
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/dist/externalVersion.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@formily/core": "2.3.0",
|
|
12
12
|
"@formily/react": "2.3.0",
|
|
13
|
-
"@nocobase/client": "1.0.1-alpha.
|
|
14
|
-
"@nocobase/server": "1.0.1-alpha.
|
|
13
|
+
"@nocobase/client": "1.0.1-alpha.3",
|
|
14
|
+
"@nocobase/server": "1.0.1-alpha.3",
|
|
15
15
|
"china-division": "2.7.0",
|
|
16
|
-
"@nocobase/database": "1.0.1-alpha.
|
|
16
|
+
"@nocobase/database": "1.0.1-alpha.3"
|
|
17
17
|
};
|
|
@@ -32,6 +32,9 @@ module.exports = __toCommonJS(china_region_interface_exports);
|
|
|
32
32
|
var import_database = require("@nocobase/database");
|
|
33
33
|
class ChinaRegionInterface extends import_database.BaseInterface {
|
|
34
34
|
async toValue(str, ctx) {
|
|
35
|
+
if (!str) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
35
38
|
const { field } = ctx;
|
|
36
39
|
const items = str.split("/");
|
|
37
40
|
const repository = field.database.getRepository(field.target);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-field-china-region",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.3",
|
|
4
4
|
"displayName": "Administrative divisions of China",
|
|
5
5
|
"displayName.zh-CN": "中国行政区划",
|
|
6
6
|
"description": "Provides data and field type for administrative divisions of China.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nocobase/server": "1.x",
|
|
23
23
|
"@nocobase/test": "1.x"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "3b2628db4eaea8973d5364e0674850591e156211",
|
|
26
26
|
"keywords": [
|
|
27
27
|
"Fields"
|
|
28
28
|
]
|