Skip to content

Commit

Permalink
去除分组最后一个分割线
Browse files Browse the repository at this point in the history
  • Loading branch information
kooriookami committed May 27, 2024
1 parent 373e786 commit acbbd21
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

### 1.2.1

_2024-05-27_

- 去除分组最后一个分割线

### 1.2.0

_2024-05-25_
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Select V2 虚拟列表选择器</title>
<script type="module" crossorigin src="./assets/index-BYQQjEu9.js"></script>
<script type="module" crossorigin src="./assets/index-8SO6-GY8.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BAx2GUgq.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion packages/el-select-v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "el-select-v2",
"version": "1.2.0",
"version": "1.2.1",
"main": "src/index.js",
"module": "src/index.js",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions packages/el-select-v2/src/el-select-v2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@
deep: true,
},
localOptions() {
// 去除最后一个分割线
if (this.localOptions.length && this.localOptions[this.localOptions.length - 1]._isSplit) {
this.localOptions.pop();
}
this.updateDropdownWidth();
},
},
Expand Down

0 comments on commit acbbd21

Please sign in to comment.