mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
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:
parent
cf46ee4d8f
commit
149481e420
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -505,7 +505,7 @@ export default defineComponent({
|
||||
) : (
|
||||
<NTag
|
||||
size={size}
|
||||
closable
|
||||
closable={!option.disabled}
|
||||
disabled={disabled}
|
||||
internalStopClickPropagation
|
||||
onClose={() => this.handleDeleteOption(option)}
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user