fix(select): tag should hide close icon when option is disabled (#784)

* fix(select): tag should hide close icon when option is disabled

* fix(select): update log

* Update CHANGELOG.zh-CN.md

Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
小魔王 2021-08-06 00:09:14 +08:00 committed by GitHub
parent cf46ee4d8f
commit 149481e420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 3 deletions

View File

@ -13,6 +13,7 @@
- Fix `n-slider` loss floating point decimal precision, closes [#751](https://github.com/TuSimple/naive-ui/issues/751).
- Fix `n-data-table` `onUpdatePage` and `onUpdatePageSize` not triggered while using jsx.
- Fix `n-progress`'s `percentage` prop exception in default.
- Fix `n-select` hide close icon when option is disabled.
## 2.16.0 (2021-08-02)

View File

@ -13,6 +13,7 @@
- 修复 `n-slider` 丢失浮点数小数精度,关闭 [#751](https://github.com/TuSimple/naive-ui/issues/751)
- 修复 `n-data-table` `onUpdatePage``onUpdatePageSize` 在使用 jsx 时不触发的问题
- 修复 `n-progress``percentage` 属性默认值异常
- 修复 `n-select` 当选项禁用时需要隐藏关闭图标
## 2.16.0 (2021-08-02)

View File

@ -505,7 +505,7 @@ export default defineComponent({
) : (
<NTag
size={size}
closable
closable={!option.disabled}
disabled={disabled}
internalStopClickPropagation
onClose={() => this.handleDeleteOption(option)}

View File

@ -15,7 +15,7 @@ import { defineComponent, ref } from 'vue'
export default defineComponent({
setup () {
return {
value: ref(null),
value: ref(['song3']),
options: [
{
label: "Everybody's Got Something to Hide Except Me and My Monkey",

View File

@ -15,7 +15,7 @@ import { defineComponent, ref } from 'vue'
export default defineComponent({
setup () {
return {
value: ref(null),
value: ref(['song3']),
options: [
{
label: "Everybody's Got Something to Hide Except Me and My Monkey",