mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-13 13:59:04 +08:00
chore(dialog): fix changelog & optimize codes
This commit is contained in:
parent
fc09a36d8c
commit
53bbbba717
@ -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.
|
||||
|
@ -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` 属性类型和期望值不兼容
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user