chore(dialog): fix changelog & optimize codes

This commit is contained in:
07akioni 2021-06-14 09:15:25 +08:00
parent fc09a36d8c
commit 53bbbba717
3 changed files with 5 additions and 4 deletions

View File

@ -5,6 +5,7 @@
### Fixes
- Fix `n-card`'s `header-style` it not applied to header. [#103](https://github.com/TuSimple/naive-ui/issues/103)
- Fix `n-dialog`'s `destroyAll` method is missing.
## 2.11.8
@ -14,7 +15,6 @@
### Fixes
- Fix `n-dialog`'s `destroyAll` method of is missing
- Fix `n-calendar`'s `on-update:value` prop type.
- Fix `n-form-item`'s style attribute `grid-template-columns` influence on the layout of child elements. [#93](https://github.com/TuSimple/naive-ui/pull/93)
- Fix `n-data-table`'s prop types of `rowKey`, `rowClassName`, `rowProps`, `summary` aren't compatible with expected value.

View File

@ -5,6 +5,7 @@
### Fixes
- 修复 `n-card``header-style` 没有应用于 header 上 [#103](https://github.com/TuSimple/naive-ui/issues/103)
- 修复 `n-dialog``destroyAll` 方法缺失
## 2.11.8
@ -14,7 +15,6 @@
### Fixes
- 修复 `n-dialog``destroyAll` 方法缺失
- 修复 `n-calendar``on-update:value` 属性类型
- 修复 `n-form-item``grid-template-columns` 样式属性对子元素布局的影响 [#93](https://github.com/TuSimple/naive-ui/pull/93)
- 修复 `n-data-table``rowKey`, `rowClassName`, `rowProps`, `summary` 属性类型和期望值不兼容

View File

@ -95,10 +95,11 @@ export default defineComponent({
}
function destroyAll (): void {
Object.values(dialogInstRefs)?.forEach((dialogInstRef: DialogInst) =>
dialogInstRef?.hide()
Object.values(dialogInstRefs).forEach((dialogInstRef) =>
dialogInstRef.hide()
)
}
const api = {
create,
destroyAll,