# CHANGELOG ## NEXT_VERSION `xxxx-xx-xx` ### Fixes - Fix `n-time-picker`'s `use-12-hours` type error warning, closes [#4308](https://github.com/tusen-ai/naive-ui/issues/4308) ### Features - `n-image` adds `error` slot, closes [#5649](https://github.com/tusen-ai/naive-ui/issues/5649) - `n-date-picker` adds `date-format` prop. - `n-progress`'s `color` prop supports gradient config. - `n-select` adds `font-weight` theme variable - `n-input` adds `font-weight` theme variable ## 2.40.1 `2024-09-26` ### Fixes - Fix `n-data-table` in virtual-x mode, when all column objects do not have the `fixed` attribute configured, it cannot be displayed normally. - Fix `css-render` dependency version is not high enough to affect the `style-mount-target` attribute of `n-config-provider`. - Fix `n-data-table`'s `rowProps` generated `class` will override the original row DOM's class. ## 2.40.0 `2024-09-26` ### Breaking Changes - Fix `n-config-provider` doesn't inherit the class prefix from it's ascendant `n-config-provider`, closes [#5970](https://github.com/tusen-ai/naive-ui/issues/5970). - Fix `n-date-picker`'s `weekFormat` uses different standards for year and week formatting. Now it uses local week and local year for year and week formatting. - Dependency `date-fns` is upgraded to V3. - `n-cascader`'s `filter` prop is now case insensitive. ### Fixes - Fix `n-infinite-scroll` reaching bottom check is not correct, closes [#6133](https://github.com/tusen-ai/naive-ui/issues/6133). - Fix `n-slider`'s rail may have styling issue in `vertical` mode when global CSS box-sizing is overrided, closes [#6114](https://github.com/tusen-ai/naive-ui/issues/6114). - Fix `n-tabs` has style issue when using `prefix` slot, `suffix` slot or `addable` prop with vertical placement, closes [#6059](https://github.com/tusen-ai/naive-ui/issues/6059), [#6060](https://github.com/tusen-ai/naive-ui/pull/6060). - Fix `n-upload` can only upload a maximum of 100 files in some old browsers when uploading directories, closes [#6027](https://github.com/tusen-ai/naive-ui/issues/6027). - Fix `n-date-picker`'s `input-readonly` prop not working in the panel's inner input for `'datetime'` or `'datetimerange'`. - Fix `n-menu` can't apply HTML attributes correctly on the component when `responsive` is set. - Fix `n-float-button` throws error when used with `popover` component, closes [#5933](https://github.com/tusen-ai/naive-ui/issues/5933). - Fix `n-badge` can't mask focus element's border, closes [#5929](https://github.com/tusen-ai/naive-ui/issues/5929). - Fix `n-button` font-weight CSS variable's name is not correct, closes [#5922](https://github.com/tusen-ai/naive-ui/issues/5922). - Fix `n-icon`'s `component` prop doesn't accept functional component. - Fix `n-mention`'s panel is misplaced if `placement` is set to `'top'` or padding is set in component's style, closes [#6241](https://github.com/tusen-ai/naive-ui/issues/6241). - Fix `n-carousel`'s transition doesn't work as expected, closes [#5993](https://github.com/tusen-ai/naive-ui/issues/5993). ### Features - 🌟 `n-data-table` adds `virtual-scroll-x`, `virtual-scroll-header`, `height-for-row`, `header-height` and `min-row-height` props for supporting horizontal virtual scrolling when there are massive columns. - 🌟 Adds `n-highlight` component. - `n-scrollbar` adds `x-placement` and `y-placement` props, closes [#6089](https://github.com/tusen-ai/naive-ui/issues/6089). - `n-date-picker` adds `clear`, `now` and `confirm` slots, closes [#6013](https://github.com/tusen-ai/naive-ui/issues/6013). - `n-upload` adds `on-retry` prop, closes [#6031](https://github.com/tusen-ai/naive-ui/issues/6031). - `n-slider`'s `marks` prop supports render function, closes [#5967](https://github.com/tusen-ai/naive-ui/issues/5967). - `n-transfer`'s `source-title` and `target-title` props support render function, closes [#6004](https://github.com/tusen-ai/naive-ui/issues/6004). - `n-data-table` add `rowData` params for `render-expand-icon` prop, closes [#6108](https://github.com/tusen-ai/naive-ui/issues/6108). - `n-empty`'s `size` prop supports `'tiny'` size. - `n-config-provider` adds `style-mount-target` prop to control where to mount components' style. - `n-data-table` adds `allowExport` prop for column object. - `n-date-picker` adds `year-range` prop. - `n-tree-select` adds `header` slot, closes [#5915](https://github.com/tusen-ai/naive-ui/issues/5915). - `n-select` adds `menu-size` prop. ## 2.39.0 `2024-07-15` ### Breaking Changes - Fix `n-input-number` Exception when the value is a string in precision mode, closes [#6091](https://github.com/tusen-ai/naive-ui/issues/6091). ### Fixes - Fix `n-form-item` validation state is not correctly updated [#6068](https://github.com/tusen-ai/naive-ui/issues/6068). - Fix `n-select`'s header make inner input unavailable, closes [#6030](https://github.com/tusen-ai/naive-ui/issues/6030). - Fix `n-tree` may have incorrect node selection status when `show-irrelevant-nodes` is disabled, close [#6115](https://github.com/tusen-ai/naive-ui/issues/6115). ### Features - `n-data-table` adds `filter-icon-popover-props` prop, closes [#6111](https://github.com/tusen-ai/naive-ui/issues/6111). - `n-input-number` adds `round` prop, closes [#6097](https://github.com/tusen-ai/naive-ui/issues/6097). - `n-color-picker` add `on-clear` props. - `n-upload`'s `on-preview` prop adds `detail.event` parameter. You can use `preventDefault` to prevent default anchor link open behavior. Closes [#6036](https://github.com/tusen-ai/naive-ui/issues/6036). - `n-data-table` adds `thColorSorting`, `thColorSortingModal`, `thColorSortingPopover`, `tdColorSorting`, `tdColorSortingModal` and `tdColorSortingPopover` theme variables, closes [#6118](https://github.com/tusen-ai/naive-ui/issues/6118), [#6120](https://github.com/tusen-ai/naive-ui/issues/6120) ### i18n - Add azAZ locale. - Add uzUZ locale. ## 2.38.2 `2024-05-03` ### Fixes - Fix `n-menu` Submenu's wai-aria role is not correct, closes [#5729](https://github.com/tusen-ai/naive-ui/issues/5729). - Fix `n-tabs` style bug with type is `segment`,closes [#5728](https://github.com/tusen-ai/naive-ui/issues/5728). - Fix the get\*String() methods for UTC/locale mismatch, closes [#5702](https://github.com/tusen-ai/naive-ui/issues/5702). - Fix `n-dialog` / `n-modal` calling `destroy` method may throw error. - Fix `useModal` setting `card` preset without corresponding props in `n-card` slots, closes [#5746](https://github.com/tusen-ai/naive-ui/issues/5746). - Fix `Submenu` component's wai-aria role setting error of `n-menu`,closes [#5729](https://github.com/tusen-ai/naive-ui/issues/5729). - Fix the `common` type error in the `theme-overrides` prop when modifying components' themes. - Fix `n-split` may emit value less than `0`. ### Features - `n-watermark` support multi-lines in content. - Adds `n-infinite-scroll` component. - `n-watermark` adds `text-align` prop. - `n-qr-code` adds `type` prop, Customize rendering output by setting `type`, providing two options: `canvas` and `svg`. - `n-card` adds `action`, `content`, `cover`, `footer` and `header-extra` props. - `n-card`'s `title` prop supports render function. - `n-upload` expose the `index` arg in `on-remove` function, closes [#5747](https://github.com/tusen-ai/naive-ui/issues/5747). - `n-upload` exports `UploadOnDownload`, `UploadOnRemove`, `UploadOnFinish` and `UploadOnChange` types. - `n-dialog` adds `action-class`, `action-style`, `content-class`, `content-style`, `title-class` and `title-style` props. - `n-split` adds `pane1-class`, `pane1-style`, `pane2-class` and `pane2-style` props. - `n-mention` adds `filter` method, closes [#5721](https://github.com/tusen-ai/naive-ui/pull/5721). - `n-slider` adds wai-aria support. - `n-date-picker` adds `time-picker-format` prop. - `n-form-item` adds `feedback-class` and `feedback-style` props. - `n-split` supports using pixel unit string as `value`. - `n-scrollbar` adds `content-style` and `content-class` props, closes [#4497](https://github.com/tusen-ai/naive-ui/issues/4497). - `n-image` adds `render-toolbar` prop. - `n-cascader` adds `get-column-style` prop. - `n-cascader` adds `get-render-prefix` prop. - `n-cascader` adds `get-render-suffix` prop. - `n-image` optimizes download icon style. - `n-scrollbar` adds `height`, `width`, `radius`, `railInsetHorizontal`, `railInsetVertical` and `railColor` theme variables. ### i18n - Add csCZ locale. - Add missing itIT locale translations ## 2.38.1 `2024-02-26` ### Fixes - Fix `n-split`'s `min` attribute does not take effect. - Fix `n-result` built-in icons not re-rendered after hydration. - Fix `n-tabs` whose `type` is `'segment'` has capsule with wrong width and position after resize, closes [#5705](https://github.com/tusen-ai/naive-ui/issues/5705). - Fix `n-tabs`'s capsule wrong width and position after resize within `n-modal`, closes [#5569](https://github.com/tusen-ai/naive-ui/issues/5569). - Fix `n-split` doesn't work with `inline-theme-disabled` prop. - Fix `n-float-button` doesn't work with `inline-theme-disabled` prop. ### Features - `n-date-picker` adds `default-calendar-start-time` props when `type` is `'date'`/`'datetime'` or `'week'`, closes [#4493](https://github.com/tusen-ai/naive-ui/issues/4493). - `n-tree-select` adds `get-children` prop. ## 2.38.0 `2024-02-22` ### Breaking Changes - Fix `n-scrollbar`'s `scrollTo(x: number, y: number)` error where the order of method parameters does not match the document. ### Fixes - Fix `n-tree`'s `override-default-node-click-behavior` prop may conflict with default switcher click or checkbox click behavior. - Fix `n-scrollbar`'s typo on `aria-hidden` attribute. - Fix `n-form-item`'s feedback may hide and show again, closes [#5583](https://github.com/tusen-ai/naive-ui/issues/5583). - Fix `n-popselect`'s header make inner input unavailable, closes [#5494](https://github.com/tusen-ai/naive-ui/pull/5494). - Fix `n-qr-code`'s style of size. - Fix `n-badge` affects child elements' text color. ### Features - 🌟 Adds `n-modal-provider` component and `useModal` method. - 🌟 Adds `n-float-button` and `n-float-button-group` component. - 🌟 Provides ES module bundle at `/dist/index.mjs` and `/dist/index.prod.mjs`. - `n-auto-complete` adds `append` prop. - `n-select` add native `title` attribute when `filterable` and blur input. - `n-split` adds `size` prop and `on-update:size` prop. - `n-split` adds `watch-props` prop, closes [#5526](https://github.com/tusen-ai/naive-ui/issues/5526). - `n-drawer` adds `borderRadius` theme variable. - adds `n-float-button` component. - Provides ES module bundle. ### i18n - Add `etEE` locale. ## 2.37.3 `2024-01-09` ### Fixes - Fix `n-split` has no color if it's not used in a card. ## 2.37.2 `2024-01-09` ### Fixes - `n-data-table`'s `downloadCsv` method will export selection & expand column. ## 2.37.1 `2024-01-08` ### Fixes - Click clear button on components with popup may trigger reopen behaviors. - Fix `n-form`'s `validate` returned `Promise` may not `resolve`. ### Features - `n-collapse` adds `trigger-areas` prop. - `n-date-picker`'s `is-date-disabled` callback prop supports get detail info of date/year/month/quarter button as parameter, closes [#4649](https://github.com/tusen-ai/naive-ui/issues/4649). - `n-auto-complete` adds `empty` slot. - `n-auto-complete` adds `show-empty` prop. ## 2.37.0 `2024-01-07` ### Breaking Changes - `module` prop in `package.json` is changed from `es/index.js` to `es/index.mjs` ### Fixes - Fix `n-space` vnode reuse problem caused by filtering out comment nodes of slot, closes [#5136](https://github.com/tusen-ai/naive-ui/issues/5136). - Fix `n-data-table`'s prop `pagination`'s `default-page-size` and `default-page` not work in uncontrolled mode, closes [#5201](https://github.com/tusen-ai/naive-ui/issues/5201). - Fix `n-time-picker` formatting (format="HH: mm: ss. SSS") preventing modification of milliseconds in the edit box, closes [#5224](https://github.com/tusen-ai/naive-ui/issues/5224). - Fix `n-notification` notification clips out of screen when screen width is less than 400px wide. - Fix `n-carousel` transition effect incorrect when using the `slide` effect in loop mode with only two elements, closes [#4323](https://github.com/tusen-ai/naive-ui/issues/4323). - Fix `n-carousel` trigger incorrect `current-index` value on arrow button click with single image, closes [#5130](https://github.com/tusen-ai/naive-ui/issues/5130). - Fix `n-upload-trigger` in directory drag mode with a lot of files, some of the files are not read. - Fix `n-dynamic-tags`'s abnormal behavior when using keyboard to trigger add button, closes [#5077](https://github.com/tusen-ai/naive-ui/issues/5077). - Fix `n-tree` leaf node line color. - Fix `n-collapse-item` cursor pointer to correct element, closes [#5482](https://github.com/tusen-ai/naive-ui/issues/5482). - Fix `n-data-table` throws error if summary config has empty column. - Fix `n-drawer`'s `on-mask-click` may be called multiple times. - Fix `n-tree`'s `data` When the data source 'data' switches several times according to a certain scene, some logic of animation processing can cause errors in rendering the displayed data, closes [#5217](https://github.com/tusen-ai/naive-ui/issues/5217) - Fix `n-radio` value's native input element's checked value is not updated, closes [#5184](https://github.com/tusen-ai/naive-ui/issues/5184). - Fix `n-data-table` height incorrect when set `min-height` in empty state,closes [#5108](https://github.com/tusen-ai/naive-ui/issues/5108). - Fix `n-tabs`'s bar not hidden when `value` is set manually to the value other than the children `n-tab`s, closes [#5100](https://github.com/tusen-ai/naive-ui/issues/5100). - Fix `n-spin` abnormal animation, closes [#3556](https://github.com/tusen-ai/naive-ui/issues/3556). - Fix `n-avatar`'s lazy loading and `fallback-src` prop not working when load error in lazy, closes [#5007](https://github.com/tusen-ai/naive-ui/issues/5007). - Fix `n-split` has no color if it's not used in a card. - Fix `n-card` `footer-class` prop not working. - Fix `n-input` click clear icon to trigger twice when using the `clearable`, closes [#5510](https://github.com/tusen-ai/naive-ui/issues/5510). - Fix `n-tabs` may miss over-scroll shadow if `placement` is `'left'` or `'right'`. - Fix `n-date-picker` with range type can input start time that is later than end time, closes [#5544](https://github.com/tusen-ai/naive-ui/issues/5544). ### Features - 🌟 Adds `n-flex` component. - 🌟 `n-date-picker`'s `type` prop supports `'week'`. - 🌟 `n-data-table` adds `downloadCsv` method, closes [#4260](https://github.com/tusen-ai/naive-ui/issues/4260). - 🌟 `n-date-picker` adds `month-format`, `year-format` and `quarter-format` props, closes [#4891](https://github.com/tusen-ai/naive-ui/issues/4891). - 🌟 `n-tree` adds `override-default-node-click-behavior` prop. - 🌟 `n-tree-select` adds `override-default-node-click-behavior` prop. - `n-space` adds `reverse` prop. - `n-input` adds `clear` method, closes [#5423](https://github.com/tusen-ai/naive-ui/issues/5423). - `n-time-picker` adds `'clear'` action, closes [#5334](https://github.com/tusen-ai/naive-ui/issues/5334). - `n-select` supports RTL. - `n-data-table` supports RTL. - `n-dialog` supports RTL. - `n-date-picker` adds `on-prev-month` `on-next-month` `on-prev-year` `on-next-year` prop, closes [#5350](https://github.com/tusen-ai/naive-ui/issues/5350). - `n-input-number` adds `input-props` prop, closes [#5450](https://github.com/tusen-ai/naive-ui/issues/5450). - Update `ruRU` locale. - `n-drawer` adds `content-class` prop. - `n-drawer-content` adds `body-class` `body-content-class` `footer-class` and `header-class` props. - `n-tree` adds multiple `scrollTo` configurations. - `n-form` adds `level` property from `FormItemRule` to show abnormal values but not block submit. - `n-cascader` adds `ellipsis-tag-popover-props` prop. - `n-select` adds `ellipsis-tag-popover-props` prop. - `n-tree-select` adds `ellipsis-tag-popover-props` prop. - `n-avatar-group` adds `expand-on-hover` prop. - `n-tabs` adds `tab-class`, `add-tab-style` and `add-tab-class` props. - `n-tree` adds `override-default-node-click-behavior` prop. - `n-tree-select` adds `override-default-node-click-behavior` prop. - Adds `n-flex` component. - `n-pagination` adds `show-quick-jump-dropdown` prop, closes [#5251](https://github.com/tusen-ai/naive-ui/issues/5251). ## 2.36.0 `2023-12-18` ### Fixes - Fix `n-tree` unexposed line color variable `--n-line-color`, closes [#5339](https://github.com/tusen-ai/naive-ui/issues/5339). - Fix `n-tree` The style of the selected node is not displayed in the case of 'disabled'. - Fix `n-tree` on `virtual-scroll` empty data placeholder lost problem. - Fix `n-watermark` won't clear it's content when `content` prop is set to empty. - Fix `n-tree` use `render-switcher-icon` prop to customize switcher icon will cause node selection, closes [#5380](https://github.com/tusen-ai/naive-ui/issues/5380). - Fix `n-input` will display the password reveal button by default when the `type` is set to `password`. Starting with Microsoft Edge browser Version 87. closes [#5384](https://github.com/tusen-ai/naive-ui/issues/5384). - Fix `n-radio-button` css var `buttonColor` not working. - Fix `n-input` not display vertical scrollbar when `type` is `textarea` and the inline theme is disabled, closes [#5418](https://github.com/tusen-ai/naive-ui/issues/5418). - Fix if `inline-theme-disabled` is set, custom color whose params include decimal won't work in `n-tag`, `n-avatar`, `n-badge`, `n-button`, `n-rate`. - Fix `n-tabs`'s border height in `vertical` mode. - Fix `n-tree`'s node's hover color has higher priority than selected color in `block-line` mode. - Fix `n-tree` click expand switch causes checkbox being checked. ### Features - `n-tree` adds `treeGetClickTarget` method to get click target of node click event, closes [#5375](https://github.com/tusen-ai/naive-ui/issues/5375). - `n-space` adds `item-class` prop. - `n-layout` adds `content-class` prop. - `n-layout-sider` adds `collapsed-trigger-class` and `trigger-class` props. - `n-spin` adds `content-class` and `content-style` props. - `n-popover` adds `arrow-class`, `arrow-wrapper-class`, `arrow-wrapper-style`, `content-class`, `footer-class` and `header-class` props. - `n-notification-provider` adds `container-class` prop. - `n-message-provider` adds `container-class` prop. - `n-loading-bar-provider` adds `container-class` prop. - `n-thing` adds `content-class` and `description-class` props. - `n-card` adds `content-class`, `footer-class`, `header-class` and `header-extra-class` props. - `n-descriptions` adds `content-class` and `label-class` props. - `n-upload` adds `file-list-class` and `trigger-class` props. - `n-dynamic-tags` adds `input-class` and `tag-class` props. - `n-dynamic-input` adds `item-class` prop. - `n-slider` adds `on-dragstart` `on-dragend` prop, closes [#5365](https://github.com/tusen-ai/naive-ui/issues/5365). - `n-dialog` adds `close` slot. - `n-equation` export the `EquationProps` type. - `n-popselect` adds `header` slot. - `n-tree-select` adds `watch-props` prop. - Adds `n-split` component, closes [#3557](https://github.com/tusen-ai/naive-ui/issues/3557). - Adds `n-virtual-list` component. - Adds `n-qr-code` component, closes [#2535](https://github.com/tusen-ai/naive-ui/issues/2535). - `n-menu` add `responsive` prop, it will collapse overflow menu items in horizontal mode. - `n-menu` add `deriveResponsiveState` method. ## 2.35.0 `2023-10-02` ### Breaking Changes - `n-input`'s `suffix` to the back of `loading`, close [#4685](https://github.com/tusen-ai/naive-ui/issues/4685). - Fix `n-log`'s `silent` attribute spelling problem, closes [#4875](https://github.com/tusen-ai/naive-ui/issues/4875). ### Fixes - Fix `n-radio` export `radioProps` dosen't not includes `theme-overrides`. - Fix `n-description-item`'s `span` doesn't work when `n-descriptions`'s `label-placement` is `'top'` if there's only single line, closes [#4874](https://github.com/tusen-ai/naive-ui/issues/4874). - Fix `n-upload`'s `data` prop type can't include `Blob` element. - Fix `n-select` allows option to be created with existed label, closes [#4703](https://github.com/tusen-ai/naive-ui/issues/4703) - Fix `n-upload`'s `render-icon` prop's type. - Fix `n-auto-complete`'s `onSelect` type, closes [#4617](https://github.com/tusen-ai/naive-ui/issues/4617). - Fix `n-grid-item`'s suffix prop won't work with responsive config, closes [#4635](https://github.com/tusen-ai/naive-ui/issues/4635) - Fix `n-tabs`'s `paneWrapperStyle` prop missing height after animation - Fix `n-tree` should check all items instead of uncheck all if indeterminate checkbox is clicked, closes [#4941](https://github.com/tusen-ai/naive-ui/issues/4941). - Fix the Popover was not displayed when the `n-internal-selection` was disabled and the mouse was moved over the '+n' tag. closes [#4789](https://github.com/tusen-ai/naive-ui/issues/4789) - Fix `n-input` doesn't display the vertical scroll bar when `type` is `textarea`, closes [#4570](https://github.com/tusen-ai/naive-ui/issues/4570). - Fix `n-alert`'s content style problem, when there is no title and use closable, closes [#4588](https://github.com/tusen-ai/naive-ui/issues/4588). - Fix `n-select`'s `empty` slot action then it is an interactive component, closes [#4700](https://github.com/tusen-ai/naive-ui/issues/4700). - Fix `n-data-table` header and body's scrolling are not sync when using the keyboard, closes [#3941](https://github.com/tusen-ai/naive-ui/issues/3941). - Fix `n-data-table` drag column causing text selection in Safari, closes [#4957](https://github.com/tusen-ai/naive-ui/issues/4957). - Fix `n-data-table` ellipsis content in table cell would wrap with expand button when using tree data, closes [#3755](https://github.com/tusen-ai/naive-ui/issues/3755). - Fix `useLoadingBar` can't finish loading when called `finish` method, closes [#4965](https://github.com/tusen-ai/naive-ui/issues/4965). - Fix `n-select` can still trigger focus and blur event in the disabled state, closes [#4454](https://github.com/tusen-ai/naive-ui/issues/4454). - Fix `n-steps` may have line wrap issue if step is more than 9. - Fix `n-grid` v-show reports errors when switching multiple times, closes [#4422](https://github.com/tusen-ai/naive-ui/issues/4422). - Fix `n-tree`'s `TreeOption`'s `checkboxDisabled` prop doesn't work when `check-on-click` is `true`. - Fix rapid clicks on `n-date-input`'s buttons triggering a text select for the rest of the website. - Fix `n-auto-complete`'s autocomplete menu's unexpected open when clicking the clear icon with the input not focused, closes [#4658](https://github.com/tusen-ai/naive-ui/issues/4658). - Fix `n-input`'s `on-keyup` prop type, closes [#5101](https://github.com/tusen-ai/naive-ui/issues/5101) - Fix `n-data-table`'s default sorter to place null values at the very top or bottom, closes [#5281](https://github.com/tusen-ai/naive-ui/issues/5281). - Fix `n-popconfirm`'s action button should not be triggered multiple times,closes [#4687](https://github.com/tusen-ai/naive-ui/issues/4687). ### Features - `n-drawer` adds `max-height`, `min-height`, `max-width` and `max-width` props. - `n-progress` supports indicator slot when the `indicator-placement` is set to `'inside'` in the `'line'` type, closes [#4888](https://github.com/tusen-ai/naive-ui/issues/4888). - `n-image-preview` adds `downaload` button, closes [#4302](https://github.com/tusen-ai/naive-ui/issues/4302). - `n-transfer` adds `select-all-text` and `clear-text` prop, closes [#4910](https://github.com/tusen-ai/naive-ui/issues/4910). - `n-tree` adds `scrollbar-props` prop, closes [#4021](https://github.com/tusen-ai/naive-ui/issues/4666). - `n-select` adds `focusInput` `blurInput` methods. - `n-tree-select` adds `focusInput` `blurInput` methods. - `n-image-group` adds `on-preview-prev` `on-preview-next` prop. - `n-tree` adds `show-line` prop, closes [#3796](https://github.com/tusen-ai/naive-ui/issues/3796), [#4554](https://github.com/tusen-ai/naive-ui/pull/4554). - `n-tree` adds node information for `render-switcher-icon` props, closes [#4815](https://github.com/tusen-ai/naive-ui/issues/4815). - `n-input-number` export the `select` method. - `n-data-table` adds `n-data-table-tr--expanded` class to expanded rows, and `n-data-table-tr n-data-table-tr--expand` class to the additional row, closes [#4420](https://github.com/tusen-ai/naive-ui/issues/4420). - `n-spin` adds `delay` prop. - Adds `n-performant-ellipsis` component. - `DataTableBaseColumn` adds `ellipsisComponent` prop. ### i18n - Update `zhTW` locale. - Add `svSE` locale. - Update `jaJP` locale. ## 2.34.4 `2023-05-21` ### Fixes - Fix `n-notification`'s `description` does not wrap when there is English, closes [#4609](https://github.com/tusen-ai/naive-ui/issues/4609). - Fix `n-dynamic-input` can't access `value[index]` by `index` passed in `on-remove` prop. - Fix `n-dynamic-input` doesn't return correct `index` in `on-create` callback. - Fix `trTR` i18n, closes [#4231](https://github.com/tusen-ai/naive-ui/issues/4231). - Fix `n-input`'s show password icon is offset when use both `password` and `disabled`, closes [#4364](https://github.com/tusen-ai/naive-ui/issues/4364). - Fix `n-image` set `fallback-src` prop and lazy loading dosen't work, closes[#4480](https://github.com/tusen-ai/naive-ui/issues/4480). - Fix `n-upload` warning cause by extraneous non-props attributes were passed to vue component `TransitionGroup` but could not be automatically inherited, closes [#4447](https://github.com/tusen-ai/naive-ui/issues/4447). - Fix `n-menu` `show` `default` attribute spelling problem, closes [#4750](https://github.com/tusen-ai/naive-ui/issues/4750). - Fix `n-icon-wrapper`'s theme error, closes [#4768](https://github.com/tusen-ai/naive-ui/issues/4768). ### Feats - `n-dynamic-input` adds `action` slot, closes [#3981](https://github.com/tusen-ai/naive-ui/issues/3981). - `n-dynamic-input` add `disabled` prop, closes [#4055](https://github.com/tusen-ai/naive-ui/issues/4055). - `n-data-table` adds `titleAlign` prop, closes [#3954](https://github.com/tusen-ai/naive-ui/issues/3954). - `n-rate` exposes `index` in the default slot, closes [#4413](https://github.com/tusen-ai/naive-ui/issues/4413). - `n-scrollbar` adds `size` prop, closes [#3896](https://github.com/tusen-ai/naive-ui/issues/3896). - `n-data-table`'s `render-expand-icon` add `expanded` param, closes [#4439](https://github.com/tusen-ai/naive-ui/issues/4439). - `n-tabs` adds `pane-wrapper-class` `pane-wrapper-style` prop. - `n-collapse` adds `titlePadding` theme variable, closes [#4728](https://github.com/tusen-ai/naive-ui/issues/4728). - `n-tabs` adds `placement` prop. ### i18n - Update `zhTW` locale. - Add `faIR` locale. ## 2.34.3 `2022-12-24` ### Fixes - Fix `n-progress`'s `indicator-text-color` prop doesn't work when `indicator-placement` is `'inside'`. - Fix `n-image` error while operating the previewed image, closes [#4157](https://github.com/tusen-ai/naive-ui/issues/4157). - Fix `n-tree` cannot access `mergedFilterRef` before initialization error, closes [#4134](https://github.com/tusen-ai/naive-ui/issues/4134). - Fix `n-menu` can't override submenu dropdown's `trigger` by `dropdown-props`, closes [#4147](https://github.com/tusen-ai/naive-ui/issues/4147). - Fix `n-ellipsis` cannot be closed when using `keep-alive`, closes [#4079](https://github.com/tusen-ai/naive-ui/issues/4079). - Fix `n-upload` doesn't show thumbnail for file with image type file name, closes [#4198](https://github.com/tusen-ai/naive-ui/issues/4198). - Fix `n-input` style bug of tiny size with autosize prop, closes [#4167](https://github.com/tusen-ai/naive-ui/issues/4167). - Fix `n-image` & `n-avatar` in `lazy` mode, after setting the `intersection-observer-options` `rootMargin` attribute, the preload does not take effect. ### Feats - `n-tree` adds `get-children` prop, closes [#4128](https://github.com/tusen-ai/naive-ui/issues/4128). - `n-badge` adds `offset` prop, closes [#4149](https://github.com/tusen-ai/naive-ui/issues/4149). - `n-card` adds `tag` prop. - demos can now use `