bri-components 1.3.42 → 1.3.43

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": "bri-components",
3
- "version": "1.3.42",
3
+ "version": "1.3.43",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "ali-oss": "^6.13.1",
34
34
  "axios": "^0.23.0",
35
- "bri-datas": "^1.1.27",
35
+ "bri-datas": "^1.1.57",
36
36
  "jshint": "^2.12.0",
37
37
  "jsonlint": "^1.6.3",
38
38
  "minio": "7.1.0",
@@ -1,5 +1,5 @@
1
1
  import controlMixin from "./controlMixin.js";
2
- import { resourceData, regionData, userIndustryData } from "bri-datas";
2
+ import { resourceData, regionData, benjiRegionData, userIndustryData } from "bri-datas";
3
3
 
4
4
  export default {
5
5
  mixins: [
@@ -14,6 +14,7 @@ export default {
14
14
  basePropsObj () {
15
15
  const _joinSymbol = this.propsObj._joinSymbol || "/";
16
16
  return {
17
+ _regionType: "default", // "default", "benji", "userIndustry"
17
18
  _showMode: "default", // "default", "custom", "simple"
18
19
  colorMap: resourceData.colorMap,
19
20
  _useColor: false,
@@ -35,6 +36,9 @@ export default {
35
36
  _joinSymbol: _joinSymbol // 级联拼接符
36
37
  };
37
38
  },
39
+ regionType () {
40
+ return this.selfPropsObj._regionType;
41
+ },
38
42
  showMode () {
39
43
  return this.selfPropsObj._showMode;
40
44
  },
@@ -67,10 +71,12 @@ export default {
67
71
  },
68
72
 
69
73
  originData () {
70
- return ["region", "regions"].includes(this.controlType)
71
- ? regionData
72
- : ["userIndustry"].includes(this.controlType)
73
- ? userIndustryData
74
+ return ["userIndustry"].includes(this.controlType)
75
+ ? userIndustryData
76
+ : ["region", "regions"].includes(this.controlType)
77
+ ? this.regionType === "benji"
78
+ ? benjiRegionData
79
+ : regionData
74
80
  : this.selfPropsObj._data;
75
81
  },
76
82
  cascaderAllData () {
@@ -217,7 +223,7 @@ export default {
217
223
  : {
218
224
  [this.saveKey]: val,
219
225
  [this.nameKey]: `提示:选项${val}已不存在`
220
- };
226
+ };
221
227
 
222
228
  return !this.$isEmptyData(val)
223
229
  ? {