彭真
彭真
### This function solves the problem (这个功能解决的问题) 当我尝试整体替换 Empty 的默认图标(包括NEmpty、NSelect、NDataTable等组件)的表现形式时,在官网发现可以通过 Slots 插槽修改,但是过于麻烦,每个组件都需要修改一遍。 通过源码发现,在 Empty.tsx 文件中,使用 inject 注入了 Config Provider 的 mergedComponentPropsRef 相关属性。 https://github.com/TuSimple/naive-ui/blob/f4a7c0e224c4abe3f15f6e5abc63578b67cb05e2/src/empty/src/Empty.tsx#L54-L58 通过尝试,可以使用如下方式实现统一替换 ```vue const componentOptions = ref({ Empty:...
### TuSimple/naive-ui version (版本) 2.26.4 ### Vue version (Vue 版本) 3.2.31 ### Browser and its version (浏览器及其版本) Chrome ### System and its version (系统及其版本) MacOS ### Node version (Node 版本)...
### TuSimple/naive-ui version (版本) 2.27.0 ### Vue version (Vue 版本) 3.2.31 ### Browser and its version (浏览器及其版本) Safari 版本15.1 (17612.2.9.1.20) ### System and its version (系统及其版本) MacOS Monterey MacBook Air...
变更说明: date-picker 添加 `closePanelOnSelectDate` 属性,该属性控制,当选择了年/月后,自动关闭年月面板,方便选择日。 相关问题: #4462 #5541 #3615
### 描述错误  ### 复现步骤 官网复现 ### 最小复现链接 https://www.naiveui.com/zh-CN/os-theme/components/date-picker#footerslot.vue ### 系统信息 ```Shell 系统无关 ``` ### 使用的包管理器 npm ### 验证 - [X] 阅读 [贡献指南](https://github.com/tusen-ai/naive-ui/blob/main/CONTRIBUTING.zh-CN.md)。 - [X] 阅读 [文档](https://www.naiveui.com/zh-CN/)。 - [X] 检查是否已经存在[相同问题的问题](https://github.com/tusen-ai/naive-ui/issues),以避免创建重复的问题。...
### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing...