diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 15097dbf2..f509dc9aa 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -10,6 +10,7 @@ ### Fixes - Fix `n-alert` `contentTextColor` and `titleTextColor` type theme variable not working, closes [#1495](https://github.com/TuSimple/naive-ui/issues/1495). +- Fix `n-upload` export `openFileDialog` method. ### i18n diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 00f18607d..78b3a11ef 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -10,6 +10,7 @@ ### Fixes - 修复 `n-alert` `contentTextColor` 和 `titleTextColor` 的类型主题变量不起作用,关闭 [#1495](https://github.com/TuSimple/naive-ui/issues/1495) +- 修复 `n-upload` 未导出 `openFileDialog` 方法 ### i18n diff --git a/src/upload/src/Upload.tsx b/src/upload/src/Upload.tsx index 3b6d4b76d..474959e5a 100644 --- a/src/upload/src/Upload.tsx +++ b/src/upload/src/Upload.tsx @@ -526,6 +526,7 @@ export default defineComponent({ dragOver: dragOverRef, handleFileInputChange, submit, + openFileDialog, cssVars: cssVarsRef } },