n20-common-lib 2.15.6 → 2.15.7

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": "n20-common-lib",
3
- "version": "2.15.6",
3
+ "version": "2.15.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <el-cascader
3
- v-title
4
3
  ref="el-cascader"
4
+ v-title
5
5
  :value="value"
6
6
  v-bind="$attrs"
7
7
  :options="areaTree"
@@ -63,7 +63,7 @@ export default {
63
63
  label: 'regionName',
64
64
  children: 'children',
65
65
  expandTrigger: 'hover',
66
- checkStrictly: this.isUrban ? false : true
66
+ checkStrictly: !this.isUrban
67
67
  }
68
68
  return Object.assign(_prop, this.props)
69
69
  },
@@ -135,7 +135,7 @@ const treeFn = (data) => {
135
135
 
136
136
  const isUrbanFn = (data) => {
137
137
  return data?.map((res) => {
138
- if (res.regionLevel === '2') {
138
+ if (res.regionLevel === '2' || !res.children?.length) {
139
139
  res.children = null
140
140
  } else {
141
141
  res.children = isUrbanFn(res.children)