Skip to content

Commit

Permalink
release: v3.0.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryZ committed Mar 4, 2023
1 parent cdec8f2 commit cb93791
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

英文 changelog 内容请访问 [CHANGELOG](CHANGELOG.md)

## [3.0.0-beta.3](https://github.com/TerryZ/v-page/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2023-03-04)

### 问题修复

- 修复 `Group` 模式的 `乡/镇/街道` 级别列表数据加载有概率错误

## [3.0.0-beta.2](https://github.com/TerryZ/v-page/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2023-03-04)

### 问题修复
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Please refer to [CHANGELOG-CN](CHANGELOG-CN.md) for Chinese changelog

## [3.0.0-beta.3](https://github.com/TerryZ/v-page/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2023-03-04)

### Bug Fixes

- Fix data loading of town level list in `Group` mode has a probability error

## [3.0.0-beta.2](https://github.com/TerryZ/v-page/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2023-03-04)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "v-region",
"description": "Provide Chinese administrative division data selection",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"author": "TerryZ <[email protected]>",
"type": "module",
"files": [
Expand Down
24 changes: 14 additions & 10 deletions src/components/Group.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,20 @@ export default defineComponent({
function generateContent () {
const child = []

child.push(
...getLevelList(level.value).value.map(val => {
const option = {
key: val.key,
class: { 'rg-item': true, active: match(val) },
onMouseup: () => { pick(val) }
}
return h('li', option, val.value)
})
)
const items = getLevelList(level.value)

if (items && items.value) {
child.push(
...items.value.map(val => {
const option = {
key: val.key,
class: { 'rg-item': true, active: match(val) },
onMouseup: () => { pick(val) }
}
return h('li', option, val.value)
})
)
}

if (!child.length) {
child.push(h('li', { class: 'rg-message-box' }, lang.noMatch))
Expand Down

0 comments on commit cb93791

Please sign in to comment.