@oinone/kunlun-vue-admin-base 6.2.4 → 6.2.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oinone/kunlun-vue-admin-base",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.5",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf dist",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"doc": "typedoc --out docs src/index.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@oinone/kunlun-vue-admin-layout": "6.2.
|
|
18
|
-
"@oinone/kunlun-vue-router": "6.2.
|
|
19
|
-
"@oinone/kunlun-vue-ui": "6.2.
|
|
20
|
-
"@oinone/kunlun-vue-ui-antd": "6.2.
|
|
21
|
-
"@oinone/kunlun-vue-ui-common": "6.2.
|
|
22
|
-
"@oinone/kunlun-vue-ui-el": "6.2.
|
|
23
|
-
"@oinone/kunlun-vue-widget": "6.2.
|
|
17
|
+
"@oinone/kunlun-vue-admin-layout": "6.2.5",
|
|
18
|
+
"@oinone/kunlun-vue-router": "6.2.5",
|
|
19
|
+
"@oinone/kunlun-vue-ui": "6.2.5",
|
|
20
|
+
"@oinone/kunlun-vue-ui-antd": "6.2.5",
|
|
21
|
+
"@oinone/kunlun-vue-ui-common": "6.2.5",
|
|
22
|
+
"@oinone/kunlun-vue-ui-el": "6.2.5",
|
|
23
|
+
"@oinone/kunlun-vue-widget": "6.2.5",
|
|
24
24
|
"@wangeditor/editor": "5.1.23",
|
|
25
25
|
"@wangeditor/editor-for-vue": "5.1.11",
|
|
26
26
|
"@wangeditor/plugin-upload-attachment": "1.1.0",
|
|
@@ -119,7 +119,7 @@ export class FormM2OAddressFieldWidget extends FormM2OCascaderFieldWidget {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
protected $onSelectedChangeNext(currentValue: ResourceAddress, selectedNode: OioTreeNode<TreeData> | undefined) {
|
|
122
|
-
let nextAddressType: AddressTypeEnum | null | undefined;
|
|
122
|
+
let nextAddressType: AddressTypeEnum | null | undefined = AddressTypeEnum.Street;
|
|
123
123
|
while (selectedNode) {
|
|
124
124
|
const targetValue = selectedNode.value.data as ResourceRegion | undefined;
|
|
125
125
|
if (!targetValue) {
|
|
@@ -166,16 +166,41 @@ export class FormM2OAddressFieldWidget extends FormM2OCascaderFieldWidget {
|
|
|
166
166
|
}
|
|
167
167
|
| undefined {
|
|
168
168
|
switch (type) {
|
|
169
|
-
case AddressTypeEnum.Country:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
169
|
+
case AddressTypeEnum.Country: {
|
|
170
|
+
const { countryCode, countryName } = currentValue;
|
|
171
|
+
if (countryCode && countryName) {
|
|
172
|
+
return { code: countryCode, name: countryName };
|
|
173
|
+
}
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
case AddressTypeEnum.Province: {
|
|
177
|
+
const { provinceCode, provinceName } = currentValue;
|
|
178
|
+
if (provinceCode && provinceName) {
|
|
179
|
+
return { code: provinceCode, name: provinceName };
|
|
180
|
+
}
|
|
181
|
+
return undefined;
|
|
182
|
+
}
|
|
183
|
+
case AddressTypeEnum.City: {
|
|
184
|
+
const { cityCode, cityName } = currentValue;
|
|
185
|
+
if (cityCode && cityName) {
|
|
186
|
+
return { code: cityCode, name: cityName };
|
|
187
|
+
}
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
190
|
+
case AddressTypeEnum.District: {
|
|
191
|
+
const { districtCode, districtName } = currentValue;
|
|
192
|
+
if (districtCode && districtName) {
|
|
193
|
+
return { code: districtCode, name: districtName };
|
|
194
|
+
}
|
|
195
|
+
return undefined;
|
|
196
|
+
}
|
|
197
|
+
case AddressTypeEnum.Street: {
|
|
198
|
+
const { streetCode, streetName } = currentValue;
|
|
199
|
+
if (streetCode && streetName) {
|
|
200
|
+
return { code: streetCode, name: streetName };
|
|
201
|
+
}
|
|
202
|
+
return undefined;
|
|
203
|
+
}
|
|
179
204
|
default:
|
|
180
205
|
console.error('Invalid region type.', type);
|
|
181
206
|
return undefined;
|