- Fix
useMessage
loses styles.
- Fix
n-time-picker
still shows action bar when:actions="null"
. - Fix
n-input
's content may overflow whentype="text"
andautosize
is enabled, closes #2505. - Fix
n-upload
putfile
field before otherFormData
fields, closes #2504 - Fix
n-button
rtl support. - Fix
n-form-item-row
can't calln-form-item
's methods.
n-collapse
addRTL
support.useMessage
addscreate
methods.useMessage
addsshowIcon
prop, closes #2495.useMessage
supports'default'
type
.n-checkbox
supports label line wrap, closes #2419.n-radio
supports label line wrap, closes #2419.n-checkbox
addRTL
support.n-input
addRTL
support.n-input-number
addRTL
support.
- Fix
n-col
can't be wrapped correctly whenspan=6
, closes #2497. - Fix
n-tabs
doesn't display border-bottom in scroll area on large number of tabs, closes #2500.
- Fix
n-switch
can't use keyboard operation when checked value is customized. - Fix
n-data-table
's fixed column is covered by scroll content when placed inside popover. - Fix
n-data-table
when thefilterOptions
value is 0, the filter will not take effect, closes #2392. - Fix
n-data-table
cannot click selection checkbox if the selection column is a column's child. - Fix
n-table
'sborder-color
abnormal style when this added dynamically, closes #2403. - Fix
n-tree
'sdefault-expand-all
prop doesn't work for dynamic data. - Fix
n-form
whenmodel.xxx
isundefined
, validator will usenull
as validation value, closes #2486. - Fix
n-input
focus style's priority is lower than hover style, closes #2480. - Fix
n-data-table
display issue when placed inside keep-alive component with virtual scroll, closes #2183. - Fix
notification
enter & leave animation.
n-tree-select
addsclear-filter-after-select
prop.n-cascader
addsclear-filter-after-select
prop.n-switch
addsicon
slot.n-switch
addschecked-icon
slot.n-switch
addsunchecked-icon
slot.n-tabs
usesn
as CSS vars prefix.- Add
n-watermark
component, closes #1745. n-scrollbar
addsscrollBy
method, closes #2435.n-data-table
'ssummary
'svalue
supportsVNodeChild
, closes #2339.n-input-number
adds hold click to increment, closes #1293.n-description
addstitleTextColor
theme variable.
- Add skSK locale.
- Fix frFR locale.
- Remove useless
console.log
inresolveSlot
. - Fix
n-tag
misses background color whencheckable=true
. - Fix
n-tree
throwsImage
error inhappydom
testing environment. - Fix
n-select
max-tag-count
tag size doesn't follow select size.
n-progress
propstype
add typedashboard
.n-progress
addsgap-degree
prop.n-progress
addsgap-offset-degree
prop.n-select
addsclear-filter-after-select
prop, closes #2352.
- Add plPL locale, closes #2354.
- Add eo locale.
- Add enGB locale.
- Fix deDE locale.
- Refactor
n-carousel
's style whenshow-arrow
is true.
- Fix
n-color-picker
's hue & alpha slider handle are influenced by rail's box-shadow. - Fix
n-form-item
prevent feedback padding when empty. - Fix
n-button
has extra margin in safari. - Fix
n-form
's rules andn-form-item
's rule aboutvalidator
andasyncValidator
'srule
type is notFormItemRule
, closes #2299. - Fix
n-log
doesn't break line when line is too long, closes #2298. - Fix
n-log
doesn't exportLogInst
type. - Fix
n-popselect
action slot & empty slot now working. - Fix
n-data-table
can't use percent as column width. - Fix
n-select
trigger shows blank for a while whenfilterable=true
and menu is closing. - Fix
n-select
's being created option is not cleared after menu is closed. - Fix
n-select
can't input content whenshow=false
andfilterable=true
, closes #1723. - Fix
n-dropdown
has extra margin whentrigger="manual"
. - Fix
web-types.json
'sn-h1
~n-h6
name. - Fix
n-select
deletes option on backspace pressed while compisiting. - Fix
n-select
uses disabled option as pending option after menu is opened.
n-tabs
propsjustify-content
add typesstart
center
end
.n-auto-complete
addsplacement
prop.n-cascader
addsplacement
prop.n-color-picker
addsplacement
prop.n-date-picker
addsplacement
prop.n-mention
addsplacement
prop.n-select
addsplacement
prop.n-slider
addsplacement
prop.n-time-picker
addsplacement
prop.n-tree-select
addsplacement
prop.n-card
addsheader-extra-style
prop.n-popover
addskeep-alive-on-hover
prop, closes #2326.n-input
addsstatus
prop.- Add
n-icon-wrapper
component. n-popover
exportsPopoverPlacement
type.n-drawer
exportsDrawerPlacement
type.n-dynamic-tags
addsinput-props
prop.n-notification-provider
addscontainer-style
prop.n-notification-provider
exportsNotificationPlacement
type.n-notification-provider
exportsNotificationType
type.n-tabs
addbar-width
prop.n-dynamic-input
addscreate-button-props
props.n-dynamic-input
addscreate-button-default
slot.n-dynamic-input
addscreate-button-icon
slot.n-dynamic-input
addsshow-sort-button
prop, closes #2121.n-select
can be used as tag input.n-select
exportsSelectRenderLabel
type.n-select
exportsSelectRenderOption
type.n-select
exportsSelectRenderTag
type.n-tree
addsnode-props
prop.
n-popselect
doesn't work withwidth="trigger"
.
- Update jaJP locale.
- Update deDE locale.
n-icon
addcomponent
prop.
- Fix
n-dynamic-input
can add item when max is 0, closes #2271. - Fix
n-dialog
uselessconsole.log
.
n-input
placeholder has no line-wrap intextarea
type.n-date-picker
lacks space between panel year & month.
n-color-picker
addsdisabled
prop.n-date-picker
adds trigger area for year & month quick jump.
- Update vueuc version.
- Fix
n-layout-sider
has no border transition.
- Fix
n-layout-sider
still occupies 1px after collapsed. - Fix
n-code
doesn't break word whenword-wrap=true
. - Fix
n-tab-pane
's tab label area inheritsattrs
, closes #2221. - Fix
n-image
preview popup background can still be scrolled, closes #2241. - Fix
n-input
shows placeholder when browser auto completes it, closes #2234. - Fix
n-input
placeholder word break issue withtype="textarea"
. - Fix
n-avatar-group
extra count not correct aftermax
is set, closes #2244. - Fix
n-calendar
doesn't triggeron-panel-change
on today button clicked. - Fix
n-drawer
can't be closed by esc key whenmask-closable=false
, closes #2233.
n-page-header
addsback
slot, closes #2176.n-select
addsreset-menu-on-options-change
prop, closes #2168.n-select
addsarrow
slot, closes #2201.n-carousel
effect supports'card'
.n-input
doesn't use native scrollbar whentype="textarea"
, closes #2242, #1172.n-number-animation
addlocale
prop, closes #2181.n-number-animation
's locale follows config provider.- Expose
lightTheme
. n-time-picker
addsicon
slot, closes #2228.n-tab-pane
addstab-props
prop, closes #2221.- Add
CustomThemeCommonVars
to customizeuseThemeVars
. n-slider
addsshow-tooltip
prop, closes #2212.n-select
addson-update:show
prop.n-select
addsfocus
method, closes #2202.n-select
addsblur
method, closes #2202.n-date-picker
addsfocus
method, closes #2202.n-date-picker
addsblur
method, closes #2202.n-time-picker
addsfocus
method, closes #2202.n-time-picker
addsblur
method, closes #2202.n-checkbox
addsfocus
method, closes #2202.n-checkbox
addsblur
method, closes #2202.n-cascader
addsfocus
method, closes #2202.n-cascader
addsblur
method, closes #2202.n-upload
addsinput-props
prop, closes #2204.n-data-table
col addsrender-sorter-icon
prop, closes #1785.n-data-table
col addsrender-sorter
prop, closes #1785.n-date-picker
easy navigation to specific month and year fordate
anddatetime
anddaterange
anddatetimerange
type.n-modal
addsclose-on-esc
prop.n-modal
addsauto-focus
prop.n-modal
addstrap-focus
prop.n-modal
addson-esc
prop.n-drawer
addsclose-on-esc
prop.n-drawer
addsauto-focus
prop.n-drawer
addstrap-focus
prop.n-drawer
addson-esc
prop.n-upload
addsclear
method, closes #2247.- Add volar types.
- Add esAR locale.
- Add itIT locale.
- Fix install error.
- Fix
type PageHeaderProps
name. It was mispelled asPageHeaderPorps
before. n-image
'siconColor
theme variable is renamed astoolbarIconColor
.
- Fix
n-carousel
when Carousel is a single picture dot still existence, closes #1777. - Fix
n-upload
on-finish
prop'sevent
parameter type should beProgressEvent
. - Fix
n-upload
doesn't allow 2xx status code except 200. - Fix
n-form
whenvalidate
usevalidateCallback
, cannot call Promise method. - Fix
n-input-number
input integer end with 0 cannot update, closes #2115. - Fix
n-back-top
allow document to be passed tolisten-to
prop. - Fix
n-data-table
's content can be clicked when loading, closes #2134. - Fix
n-checkbox
doesn't show indeterminate icon in safari. - Fix
n-progress
's inner text ofline
type not aligned in center, closes#2138. - Fix
n-message
'sMessageReactive
type lackstype
parameter. - Fix
n-select
has differentpadding
withn-input
, closes #2149. - Fix
n-tooltip
log errors in console when used inn-select
'srender-option
, closes #1436. - Fix
n-select
log ResizeObserver errors when usingrender-option
in safari, closes #1671. - Fix
n-carousel
can't respond quickly and repeatedly on touch, closes #1892. - Fix
n-carousel
style of boundary, closes #1866. - Fix
n-carousel
cannot be clicked on the touchscreen, closes #1882. - Fix
n-color-picker
default mode can only be rgb is default value is empty.
n-code
addsword-wrap
prop, closes #2111.n-modal
addsz-index
prop, closes #2088.n-drawer
addsz-index
closes.n-drawer
adds wai-aria support.useMessage
's option supportrender
prop.n-data-table
TableColumn
supportsstring
typedwidth
, closes #2102.n-calendar
addson-panel-change
prop, closes #2082.n-upload
addson-error
prop.n-pagination
addslabel
slot.n-tabs
addssyncBarPosition
method, closes #2120.n-form
,n-form-item
'slabel-width
prop supportauto
option, closes #2087.n-result
addsicon
slot, closes #2130.n-date-picker
addsvalue-format
prop, closes #2076.n-date-picker
addsformatted-value
prop.n-date-picker
addsdefault-formatted-value
prop.n-date-picker
addson-update:formatted-value
prop.n-date-picker
'son-update:value
prop will pass formatted value out.n-image
addsshow-toolbar-tooltip
prop.n-image
adds more theme variables, closes #1531.n-upload
addsimage-group-props
prop.n-progress
addsoffset-degree
prop, closes #2010.n-form-item
addsfeedback
slot, closes #1142.n-form-item
'srequire-mark-placement
prop adds'right-hanging'
option, closes #2094.n-cascader
addsrender-label
prop, closes #2048.n-auto-complete
addsrender-option
prop, closes #1629.n-auto-complete
addsrender-label
prop, closes #1629.n-tree
addsrender-switcher-icon
prop, closes #1551.n-message
exportsMessageType
type.n-time-picker
addsvalue-format
prop.n-time-picker
addsformatted-value
prop.n-time-picker
addson-update:formatted-value
prop.n-time-picker
addsdefault-formatted-value
prop.n-carousel
addsdefault-index
prop.n-carousel
addscurrent-index
prop.n-carousel
addsshow-arrow
prop.n-carousel
addsdot-type
prop, closes #1931.n-carousel
addsdot-placement
prop, closes #1462.n-carousel
addsslides-per-view
prop.n-carousel
addsspace-between
prop.n-carousel
addscentered-slides
prop.n-carousel
addsdirection
prop, closes #1931.n-carousel
addsloop
prop.n-carousel
addseffect
prop, closes #1159.n-carousel
addstransition-props
prop, closes #1159.n-carousel
addstransition-style
prop, closes #1159.n-carousel
addsdraggable
prop.n-carousel
addstouchable
prop.n-carousel
addsmousewheel
prop.n-carousel
addskeyboard
prop.n-carousel
addsshow-dots
prop.n-carousel
addson-update:current-index
prop.n-carousel
addsarrow
slot.n-carousel
addsdots
slot.n-form-item
addsfor
prop.n-color-picker
addslabel
slot.n-color-picker
addsrender-label
prop.n-form-item
addslabel-props
prop.
<meta name="naive-ui-style" />
can be used to controll the component style's position.n-empty
addsshow-icon
prop.n-modal
adds a11y support, closes #1877.- Add
n-avatar-group
component. n-input-number
supportsloading
state.- Add
n-countdown
component. - Add
n-number-animation
component, closes #1465. n-statistic
addstabular-nums
prop.n-pagination
will giveitemCount
a approximate value derived frompageSize
andpageCount
if it's not set, closes #2044.n-cascader
addson-update:show
prop, closes #2049.n-scrollbar
usesn
as CSS vars prefix.n-popconfirm
usesn
as CSS vars prefix.n-gradient-text
usesn
as CSS vars prefix.n-form
usesn
as CSS vars prefix.n-pagination
usesn
as CSS vars prefix.n-loading-bar
usesn
as CSS vars prefix.n-empty
usesn
as CSS vars prefix.n-list
usesn
as CSS vars prefix.n-layout
usesn
as CSS vars prefix.n-message
usesn
as CSS vars prefix.n-mention
usesn
as CSS vars prefix.n-menu
usesn
as CSS vars prefix.n-popover
usesn
as CSS vars prefix.n-transfer
usesn
as CSS vars prefix.n-table
usesn
as CSS vars prefix.n-statistic
usesn
as CSS vars prefix.n-code
usesn
as CSS vars prefix.n-breadcrumb
usesn
as CSS vars prefix.n-slider
usesn
as CSS vars prefix.n-spin
usesn
as CSS vars prefix.n-select
usesn
as CSS vars prefix.n-result
usesn
as CSS vars prefix.n-calendar
usesn
as CSS vars prefix.n-card
usesn
as CSS vars prefix.n-cascader
usesn
as CSS vars prefix.n-color-picker
usesn
as CSS vars prefix.n-checkbox
usesn
as CSS vars prefix.n-data-table
usesn
as CSS vars prefix.n-date-picker
usesn
as CSS vars prefix.n-descriptions
usesn
as CSS vars prefix.n-drawer
usesn
as CSS vars prefix.n-dropdown
usesn
as CSS vars prefix.n-rate
usesn
as CSS vars prefix.n-radio
usesn
as CSS vars prefix.n-progress
usesn
as CSS vars prefix.n-skeleton
usesn
as CSS vars prefix.n-collapse
usesn
as CSS vars prefix.n-collapse-transition
usesn
as CSS vars prefix.n-thing
usesn
as CSS vars prefix.n-carousel
usesn
as CSS vars prefix.n-page-header
usesn
as CSS vars prefix.n-image
usesn
as CSS vars prefix.n-input
usesn
as CSS vars prefix.n-icon
usesn
as CSS vars prefix.n-modal
usesn
as CSS vars prefix.n-notification
usesn
as CSS vars prefix.
- Fix
n-form-item-gi
'svalidate
doesn't work, closes #1901. - Fix
n-card
action's border-radius style. - Fix
n-code
's content is repeatly appended if language is not set, closes #2034. - Fix
n-tabs
'stabTextColorActiveSegment
andtabTextColorHoverSegment
theme variables not working, closes #2038. - Fix
n-image
may keep keyboard handler after mounted. - Fix
n-image
can't exit preview after esc is pressed when there's only 1 image, closes #2042. - Fix
n-drawer-content
's content doesn't scroll by default, ref #2003. - Fix
n-popover
log warnings to console when manually set same zindex on multile instances and closes them, closes #2050. - Fix
n-transfer
has no scrollbar in virtual scroll mode. - Fix
n-input-number
cannot input decimals end with 0.
- Fix
n-transfer
list doesn't follow container height when style.height is set, closes #1879. - Fix
n-skeleton
&n-gradient-text
cause runtime error in some old browsers, closes #1867. - Fix
n-data-table
ellipsis
prop in column doesn't support alln-ellipsis
's props, closes #1891. - Fix
n-form
'sblankHeightXxx
theme var doesn't followcommon.heightXxx
, closes #1880. - Fix
n-date-picker
's panel doesn't usedateFormat
in locale, closes #1793. - Fix
n-log
text color transition in theme switching.
n-back-top
usesn
as CSS vars prefix.n-steps
usesn
as CSS vars prefix.n-switch
usesn
as CSS vars prefix.n-auto-complete
usesn
as CSS vars prefix.n-log
usesn
as CSS vars prefix.n-timeline
usesn
as CSS vars prefix.n-time-picker
usesn
as CSS vars prefix.n-avatar
usesn
as CSS vars prefix.n-dynamic-tags
usesn
as CSS vars prefix.n-tag
usesn
as CSS vars prefix.n-dialog
usesn
as CSS vars prefix.n-upload
usesn
as CSS vars prefix.n-tree
usesn
as CSS vars prefix.n-tree-select
usesn
as CSS vars prefix.
n-switch
can no longer be clicked underloading
status, closes #1853.
- Fix
n-data-table
's horizontal scrollbar disappears when max-height is not set, closes #1857. - Fix
n-input-number
cannot input negative decimals value, closes #1858. - Fix
n-dialog
open new dialog again when pressingenter
key, closes #1559.
n-divider
usesn
as CSS vars prefix.typography
usesn
as CSS vars prefix.n-badge
usesn
as CSS vars prefix.
n-button
can no longer be clicked underloading
status, closes #1628.
- Fix
n-alert
'sheader
slot unable to display normally. - Fix
n-data-table
's paginationonUpdatePageSize
prop does't trigger, closes #1774. - Fix
n-data-table
can select rows when table is loading, closes #1812. - Fix
n-tag
line-height is too low that clamps the content. - Fix
n-select
displays with mistake in input iffilterable
istrue
, closes #1823. - Fix
n-page-header
's content has margin-top when header is not displayed, closes #1795. - Fix
n-avatar
color
prop not working. - Fix
n-avatar
's inner icon has wrong size. - Fix
n-image
lacks scoped style's scope-id, closes #1788. - Fix
n-radio
click event will be triggered twice, closes #1680. - Fix
n-data-table
layout display incorrect when the table is empty and min-height set, closes #1809. - Fix
n-data-table
's summary has hover style. - Fix
n-data-table
fixed group column box-shadow error and right fixed column order error, closes #1832. - Fix
n-anchor
's hover & active style. - Fix
n-data-table
's header fixed column style on data is empty.
n-tree-select
addsmenu-props
prop.n-tree-select
addsaction
slot, closes #1765.n-tree-select
addsempty
slot.n-cascader
addsempty
slot.n-popselect
addsaction
slot.n-popselect
addsempty
slot.n-data-table
will check all if indeterminate header checkbox is clicked, closes #1827.n-button
usesn
as CSS vars prefix, closes #1808.n-date-picker
addsdefault-time
prop.n-alert
usesn
as CSS vars prefix.n-date-picker
'stype
prop supportquarter
option.n-anchor
usesn
as CSS vars prefix.
- Add zhTW locale.
- Fix
n-input
click clear icon does't triggerchange
event, closes #1754. - Fix
n-input-number
the cursor moves when press arrow keys to change value, closes #1759.
n-date-picker
's default format follows i18n.
- Add frFR locale.
- Fix
n-date-picker
has no placeholder whentype
isyear
. - Fix
n-element
doesn't exportNEl
alias name. - Fix
n-upload
still shows upload trigger when max limit is reached inimage-card
mode, closes #1744. - Fix
n-form
'sFormValidate
type lacksshouldRuleBeApplied
parameter, closes #1747. - Fix
n-upload
is displayed vertically inn-form
inimage-card
mode, closes #1746. - Fix
n-upload
's file list's top margin if trigger is hidden. - Fix
n-upload
shows normal file status when response has 4xx status, closes #1741.
n-upload
addsshow-trigger
prop.n-data-table
will ignorechildren
with length 0 in tree data mode, closes #1703.
- Fix
n-theme-editor
throw error when click button component, closes #1708. - Fix
n-input
's color is abnormal in Android WeChat, closes #1705. - Fix
n-input
'sborderHover
theme variable doesn't work, closes #1704. - Fix
n-dialog
'scontent
word-break. - Fix
n-input-number
cannot input decimals value. - Fix
n-data-table
's header & body may have wrong border radius, closes #1712. - Fix
n-button
'scolorOpacityXxx
theme vars are not string typed.
n-switch
addsrail-style
prop, closes #1718.n-image
addspreview-disabled
props, closes #1647.n-image
addson-load
&on-error
prop.n-image
addsfallback-src
prop.n-data-table
addson-update:expanded-row-keys
prop.n-tree
addswatch-props
prop.
- Fix
n-slider
disabled tooltip at the wrong time. - Fix
n-slider
incorrect fill color style, closes #1670. - Fix
n-data-table
's paginationonUpdatePage
prop trigger twice, closes #1666. - Fix
n-log
'strim
prop not being independent when used. - Fix
n-slider
processing of step value precision. - Fix
n-date-picker
throw error whentime-picker
input is empty, closes #1678. - Fix
n-popover
not working whentrigger
isfocus
. - Fix
n-scrollbar
's scrollbar will vanish if clicked. - Fix
n-popover
has an invalid line in style. - Fix
n-popover
flip=false
doesn't work. - Fix
n-input-number
can't accept indeterminate input value whenmax
ormin
is set, closes #1664. - Fix
n-input-number
's input value is not changed to a valid value if it's input exceeds min or max multiple times.
n-input-number
addskeyboard
prop.- Add
tableColorStriped
theme variable, closes #1686. n-notification-provider
addsmax
&placement
prop.n-notification
addsdestroyAll
method, closes #333.n-layout-sider
addson-after-enter
andon-after-leave
props, closes #1241.n-upload
addscustom-request
prop, closes #1389.n-data-table
addsexpanded-row-keys
prop.n-popover
provides better auto position adjustment, closes #1520, #1643.n-input-number
addsupdate-value-on-input
prop, closes #1662.n-auto-complete
addsprefix
&suffix
slot.
- Fix
n-image
drag the picture to move the position incorrectly when the zoom is large. - Fix
n-data-table
style glitches after some rows are expanded. - Fix
n-data-table
doesn't expand tree data correctly, closes #1644.
NButton.fontWeightText
&NButton.fontWeightGhost
theme vars are removed. If you want to change font weight, you can usestrong
prop ofn-button
instead.
n-tag
addsavatar
slot.n-data-table
addsstriped
prop, closes #1552.n-table
addsstriped
prop, closes #1552.n-slider
addsvertical
prop, closes #1468.n-slider
addsreverse
prop.n-slider
'sstep
prop supportmark
option.- Bypass Vitejs bug on string extrapolation, ref #636.
n-button
addsstrong
prop.n-button
addssecondary
prop.n-button
addstertiary
prop.n-button
addsquaternary
prop.n-auto-complete
addsinput-props
prop, closes #1610.n-avatar
addsfallback-src
prop, closes #702.n-avatar
addson-error
prop.n-input
addsselect
methods, closes #1328.- Add
n-tab
component, closes #1630. n-switch
addsround
prop, closes #1469.n-step
addstitle
slot.n-menu
supportdivider
type option.
- Fix the default value of the
suffix
internal component'sloading
property. - Fix
n-space
is shown when it has no children, closes #1605. - Fix
n-radio
has noonUpdateChecked
prop. - Fix
n-dropdown
animation flicker problem, closes #1600. - Fix
n-data-table
’sclearSorter
method isn't exported properly. - Fix
n-global-style
throws error in SSR. - Fix
n-button
will trigger click event twice if pressed, closes #1626.
- Fix
n-grid
suffix NGridItem does not set right span when collapsed, closes #1530. - Fix
n-button
to shrink abnormally in certain scenarios when using thecircle
prop, closes #1557. - Fix
input-props
does affecttype
prop, closes #1553
n-menu
adds a color distinction between selected and unselected arrow, closes #1535.n-menu
addswatch-props
prop, closes #1536.n-date-picker
'stype
prop supportyear
option.
- Add
createLocale
to make locale customizable, closes #1525.
- Fix
n-alert
contentTextColor
andtitleTextColor
type theme variable not working, closes #1495. - Fix
n-time-picker
not trigger blur event when the panel is closed by ok button, closes #1499. - Fix
n-upload
UploadFileInfo
'sthumbnailUrl
field not working, closes #1495. - Fix
n-button
keyboard
prop does not work, closes #1508. - Fix
n-upload
instance missesopenOpenFileDialog
method.
- Add deDE locale.
- Add nbNO locale.
- Fix
n-tabs
switch tab does not work when adding a new tab, closes #1417. - Fix
n-tree
'sfilter
prop does not work when assignedchildren-field
, closes #1477. - Fix
n-cascader
can't remove options when using customized fields in multiple mode. - Fix
n-select
's option created byon-create
doesn't show correct label in trigger, closes #1482 - Fix
n-select
menu height shifts on close infilterable
mode.
n-select
addsmenu-props
prop, closes #1475.n-image
'stoolbar
adds close icon, closes #1412.n-tree
'son-load
prop is triggered when theexpanded-keys
prop changes inremote
mode, closes #1339.
n-collapsed-transition
'scollapsed
prop is deprecated, please useshow
instead, closes #1407.
- Fix
n-log
font-size
prop not working, closes #1416. - Fix
n-loading-bar
will show once even ifstart
is not called whenloading-bar-style
is set. - Fix
n-date-picker
separator
prop not working, closes #1456
n-data-table
optimize the logic of underlying rendering and improve component performance.n-date-picker
'sshortcuts
prop supports functional value.n-tab-pane
'sdisplay-directive
props supports theshow:lazy
option, closes #1374.n-input
of text type supportscount
slots, closes #1440.
- Add idID locale.
- Fix
n-upload
's file can't be removed when file count limit is reached, closes #1401.
n-tabs
addson-before-leave
prop, closes #1337.n-color-picker
addsshow-preview
prop, closes #1281.n-tab-pane
'sdisplay-directive
prop supportshow:lazy
option, closes #1374.
- Fix
n-collapse
's expanded status is lost when usingv-if
withn-collapse-item
, closes #1387. - Fix
n-dialog
's close button will be overlayed with content, closes #1381. - Fix
n-upload
file is set tonull
after upload failure, closes #1316. - Fix
n-cascader
'sfilter
prop not working. - Fix
n-cascader
'slabel-field
prop breaks filter. - Fix
n-cascader
'sseparator
prop isn't appiled to filter select menu.
n-menu
addsdropdown-props
prop, closes #1345.n-input
addscount
slot, closes #1314.n-time-picker
addsuse-12-hours
prop, closes #547.n-input-number
addsfocus
&blur
methods.
- Fix
n-data-table
fixed style does not work in group header table, closes #1341. - Fix
n-data-table
has duplicate right border when it has multiple level headers. - Fix
n-scrollbar
doesn't supportscrollTo
, closes #1346. - Fix
n-ellipsis
'sexpand-trigger
prop not showpointer
cursor when content is short whentooltip = false
, closes #1299. - Fix
n-upload
'sdisabled
prop's style not working, closes #1237. n-config-provider
addsbreakpoints
prop, closes #1379.
n-auto-complete
addsget-show
prop, closes #1292.n-select
addsinput-props
prop, closes #1351.n-color-picker
addsswatches
prop, ref #1281.n-upload
addsmax
prop.
- Add jaJP locale.
- Fix
n-ellipsis
'sexpand-trigger
prop not showpointer
cursor when content is short, closes #1299. - Fix
n-select
'sfallback-option
prop's type, closes #1327. - Fix
n-modal
'son-after-enter
prop not working.
- Fix
n-menu
's incorrect warning ondefault-expanded-keys
. - Fix
useThemeVars
is sometimes unusable, closes #1309. - Fix the
list-style
style of the<ul>
element.
n-cascader
provide all options paths inupdate:value
callback function, closes #1235.n-layout
andn-layout-sider
addson-scroll
prop, closes #1232.
- Fix
n-form-item
's content is too long and the width is incorrect - Fix
n-layout-sider
'sarrow-circle
's icon style. - Fix
n-upload
'sshow-preview-button
prop not working, closes #1238. - Fix
n-date-picker
'sdate
type ofaction
validate error. - Fix
n-data-table
throws error when usingselection
andsummary
together, closes #1276. - Fix
n-data-table
selection column's width is collapsed when it is set to fixed, closes #1283. - Fix
n-popconfirm
can't be nested inn-tooltip
, closes #872. - Fix
n-popselect
checkmark overlays on option text, closes #1282. - Fix
n-pagination
buttonColor
theme variable not working.
n-breadcrumb-item
addshref
prop.n-descriptions
addsseparator
prop, closes #1263.n-dropdown
addskey-field
prop.n-dropdown
addslabel-field
prop.n-dropdown
addschildren-field
prop.n-menu
addskey-field
prop.n-menu
addslabel-field
prop.n-menu
addschildren-field
prop.n-data-table
supports using path of the property to get as column key, closes #1271.n-switch
addschecked-value
prop, closes #1234.n-switch
addsunchecked-value
prop, closes #1234.n-checkbox
addschecked-value
prop, closes #1234.n-checkbox
addsunchecked-value
prop, closes #1234.- Add
n-collapse-transition
component, closes #829. - Add
n-scrollbar
component. n-dropdown
support options withtype='render'
.n-data-table
supports multiple column sorting.n-date-picker
addsfirst-day-of-week
prop.n-date-picker
'stype
prop supportmonth
option.n-popover
addsto
prop.n-tree
'son-update:indeterminateKeys
prop adds option info.n-tree
'son-update:expandedKeys
prop adds option info.n-tree
'son-update:checkedKeys
prop adds option info.n-tree
'son-update:selectedKeys
prop adds option info.
- Fix
n-data-table
ellipsis not show when last column not set ellipsis, closes #934. - Fix
n-grid-item
won't work with responsive config. - Fix
n-tabs
's scroll shadow is not updated when it's resized, closes #1224.
n-grid-item
won't display whenspan
is 0, closes #1220.n-grid
addsitem-responsive
prop.
- Add ukUA locale.
- Fix
n-global-style
applies style transition on first mount. - Fix
n-drawer
border transition, closes #1211. - Fix
n-input-number
'svalue
prop can't benull
type. - Fix components with rtl support throws error in SSR.
- Fix components with popover throws error in SSR.
- Fix global theme overrides not working for
n-select
trigger, closes #1229.
n-checkbox
adds aria support.n-alert
aria support.
- Fix
DialogReactive
props are readonly. - Fix
n-tree-select
setscheck-strategy='child'
not working in single select mode. - Fix
n-upload
's trigger is compressed inimage-card
mode when it's the only item in the row. - Fix
n-upload-dragger
has no border transition. - Fix
n-upload
can't upload files. - Fix
n-tree
'scheckable
prop doesn't work whencascade
isfalse
. - Fix
n-tree-select
'scheckable
prop doesn't work whencascade
ormultiple
isfalse
.
n-layout-sider
'sarrow-circle
trigger is changed into new style.
n-layout-sider
addscollapsed-trigger-style
prop.n-menu
addsaccordion
prop , closes #917.n-input-number
addsreadonly
prop , closes #1198.n-spin
addsdescription
prop and slot.n-anchor
addstype
prop.n-upload
addsabstract
prop, addsn-upload-trigger
和n-upload-file-list
component, closes #1102.n-tree
addsindeterminate-keys
prop.n-tree-select
addsindeterminate-keys
prop.n-tree
addson-update:indeterminate-keys
prop.n-tree-select
addson-update:indeterminate-keys
prop.n-tabs
type
prop adds'segment'
option, closes #1133.n-popover
addsz-index
prop, closes #764.n-modal
addson-after-enter
prop.n-modal
addson-after-leave
prop.
- Fix
n-select
focus input when closing tag withfilterable
, closes #1170. - Fix
n-button
border on hover conflicts withn-badge
, closes #1195. - Fix
n-upload
propv-model:file-list
dosen't work well when propmultiple
istrue
, closes #418. - Fix
useThemeVars
doesn't apply theme overrides, closes #1194, #1176. - Fix
n-tabs
's left shadow isn't displayed in card type.
n-cascader
showEmpty
component whenoptions
prop is empty, closes #1092.n-cascader
'son-update:value
prop adds option info.n-tree
addscheck-strategy
prop.n-date-picker
addsinput-readonly
prop, closes #1120.n-time-picker
addsinput-readonly
prop, closes #1120.n-config-provider
adds global config of theEmpty
component, closes #1092.n-select
addson-update:show
prop.n-auto-complete
exportsAutoCompleteOption
andAutoCompleteGroupOption
types.n-page-header
addsRTL
support.n-select
support variadic height option rendering.n-tree-select
'son-update:value
prop adds option info.n-select
'son-update:value
prop adds option info.n-popselect
'son-update:value
prop adds option info.n-card
addsembedded
prop.
- Fix
n-p
warns whendepth
is number. - Fix
n-date-picker
‘s type ofactions
prop. - Fix
n-select
can't overriden-empty
's theme variables. - Fix
n-dynamic-tags
adds button is not disabled when it is disabled. - Fix
n-select
closes menu when enter key is pressed in filterable mode without options data. - Fix
n-auto-complete
'schildren
prop can't useAutoCompleteOption
type. - Fix
n-gi
'scollapsed
does not work inn-form-item-gi
, closes #1160.
useDialog
option addsstyle
prop, closes #1054.n-timeline
addsicon
slot, closes #1096.n-timeline
addsicon-size
prop.
- Fix
n-step
doesn't work withv-for
children. - Fix
n-input-number
cannot enter decimals whenstep
is not a decimal.
n-form
&n-form-item
splitshow-require-mark
intoshow-require-mark
andrequire-mark-placement
.
n-drawer
addson-mask-click
prop.n-for
addsrequire-mark-placement
prop, closes #1055.n-form-item
addsrequire-mark-placement
prop, closes #1055.
- Fix
n-step
must be passed withinternal-index
. - Fix
n-radio-group
'son-update:value
andon-update-value
can't be array. - Fix
n-cascader
check-strategy="child"
doesn't behaves the same as previousleaf-only
.
- Fix
n-tree-select
shows key not label whenshow-path=true
, closes #1095.
- Fix
n-cascader
menu not showing correct checked keys.
n-tree-select
'sleaf-only
prop is deprecated, please usecheck-strategy="child"
instead.n-cascader
'sleaf-only
prop is deprecated, please usecheck-strategy="child"
instead.n-input
'sshow-password-toggle
is deprecated, please useshow-password-on="click"
instead.
- Fix
n-cascader
click tag to delete the sub option in multi selection mode, and the tree option is not updated. - Fix
n-input
chinese input method not correct while mouse leave the input inclearable
is true, closes #905. - Fix
n-description
's warning caused byv-if
that should not appear, closes #1083. - Fix
n-layout
'ssider-placement
doesn't work after build, closes #978. - Fix
n-input-number
'sstep
calculate error when the value is decimal, closes #1007. - Fix
n-popselect
' s default placement and padding. - Fix
n-calendar
's text color of disabled date.
n-cascader
addsonUpdateValue
prop.n-auto-complete
addsonUpdateValue
prop.n-data-table
's column'srenderFilterMenu
addshide
param.n-tree
addskey-field
prop.n-tree
addslabel-field
prop.n-tree
addschildren-field
prop.n-tree-select
addskey-field
prop.n-tree-select
addslabel-field
prop.n-tree-select
addschildren-field
prop.n-cascader
addskey-field
prop.n-cascader
addslabel-field
prop.n-cascader
addschildren-field
prop.n-dropdown
option addsprops
prop, closes #813.n-data-table
supports multi-selection by holding downshift
, closes #554.n-tree-select
addscheck-strategy
prop, closes #624.n-cascader
addscheck-strategy
prop.n-message
option addskeepAliveOnHover
, closes #1036.n-message-provider
addskeep-alive-on-hover
prop, closes #1036.n-upload
exportUploadFile
type.n-cascader
exportCascaderOption
type.n-mention
exportMentionOption
type.n-transfer
exportTransferOption
type.n-pagination
exportPaginationInfo
type.n-data-table
exportDataTableCreateSummary
type.n-code
addsinline
prop, closes #834n-collapse
addsheader-extra
slot, closes #1046.n-input
addsshow-password-on
prop.n-upload
addslist-type
,show-preview-button
,on-preview
andcreate-thumbnail-url
prop.
n-mention
addsfocus
andblur
methods.
- Fix
n-mention
's menu is too far from text in input mode. - Fix
n-tree
node can not expanded.
n-timeline
addshorizontal
prop, closes #887.n-image
addspreview-src
prop, closes #922n-dynamic-tags
addsinput
andadd
slot, closes #499.n-timeline-item
addscolor
prop.
- Fix
n-image
not initializingrotate
after switching images, closes #921. - Fix
n-data-table
's loading is not centered, closes #929. - Fix
n-tree
throws an exception when onLoad callback does not adds children, closes #772. - Fix
n-input
will show placeholder and 0 simultaneously while passingvalue=ref(0)
in n-input, closes #914. - Fix
n-data-table
flex-height
not working withoutscroll-x
, closes #952.
n-input-number
addsclearable
prop.n-form
addsshow-label
prop, closes #858.
- Fix
n-notification
's exportedNotificationReactive
type is not writable, closes #876. - Fix
n-tabs
style glitches when different types tabs are nested, closes #850. - Fix
n-dropdown
's inner link click trigger area is not the entire option, closes #823. - Fix
n-popover
arrow's misplacement when placed in nested popovers with different placement, closes #916. - Fix
n-ellpisis
doesn't work after content is updated, closes #776.
- Fix ruRU locale exports.
- Add ruRU locale #852.
n-message-provider
addscontainer-style
prop.n-message-provider
addsplacement
prop.n-message
adds class to distinguish type.n-date-picker
addsshortcuts
props, closes #280.
- Fix
n-rate
half star overlays star background in dark mode. - Fix
n-menu
renders unexpectly whenrender-icon
returnstrue
. - Fix
n-space
render empty placeholder while usev-if
, closes #824.
n-message-provider
addsclosable
prop, closes #795.n-tree-select
addsshow-path
prop, closes#625.n-layout
addssider-placement
prop, closes #566.
- Fix
n-avatar
's scale value is incorrect while use v-show, closes #779. - Fix
n-menu
show a blue background when click the menu on mobile phone, closes #799. - Fix
n-select
filterable select breaks, closes #510. - Fix
n-data-table
When selectAll is selected, the state display of selectAll should not contain disabled rows, closes #778. - Fix
n-color-picker
'son-complete
callback's argumentvalue
is incorrect, closes #748.
n-loading-bar-provider
addsloading-bar-style
props, closes #457.n-button
addstext-color
prop.n-form
exportFormValidationError
type.n-popconfirm
support not show action components, closes #770.
- Fix
n-slider
loss floating point decimal precision, closes #751. - Fix
n-data-table
onUpdatePage
andonUpdatePageSize
not triggered while using jsx. - Fix
n-progress
'spercentage
prop default value doesn't work with different types. - Fix
n-select
hide close icon when option is disabled. - Fix
n-modal
can't be closed when using custom content, closes #788.
useLoadingBar
'sfinish
method won't work if nostart
is called.n-input
'stype='input'
is renamed totype='text'
.
n-scrollbar
addsscrollbarWidth
,scrollbarHeight
andscrollbarBorderRadius
common theme variables, closes #649.n-menu
doesn't should icon placeholder whenrender-icon
returns falsy value, closes #722.n-menu
addsrender-extra
prop.n-select
addson-clear
prop.n-form
addsdisabled
prop, closes #538.n-dynamic-tags
addsmax
prop.
- Fix
n-dropdown
click exception when using v-for. - Fix
n-modal
cannot customize classes when use preset, closes #744. - Fix
n-cascader
menu width shifts in virtual scroll mode, closes #728.
- Fix
n-data-table
pagination's error.
n-pagination
addsprev
andnext
slots, ref #648.n-tag
addscolor
prop, closes #693.n-dynamic-tags
addscolor
, closes #693.n-time-picker
optimization the now button logic, closes #401.n-pagination
PaginationInfo
addsitemCount
prop, closes #585.n-select
addson-clear
prop.
- Fix
n-message
'sdestroyAll
method doesn't work. - Fix
n-timeline
's header slot is invalid when using alone. - Fix
n-select
incorrect style when props hasdisabled
andfilterable
, closes #698. - Fix
n-upload
operation buttons displayed when hasfile-list
&disabled
props, closes #668.
n-message
addsdestroyAll
method.n-input-number
addsprefix
,suffix
slots, closes #609.
- Fix
n-message
options'duration
prop doesn't work.
n-menu
addsexpand-icon
prop, closes #414.n-descriptions
,n-descriptions-item
addslabel-style
andcontent-style
props, closes #536.
- Fix
n-data-table
the style penetration of then-spin
, closes #663.
n-dropdown
addsshow-arrow
prop, closes #647.n-time-picker
addsactions
prop, closes #401.n-mention
addsrender-label
prop.n-switch
addschecked
,unchecked
slots.n-switch
addsloading
prop, closes #301.n-select
pressing arrow down can open menu, ref #300.n-tree-select
pressing arrow down can open menu, ref #300.n-cascader
pressing arrow down can open menu, ref #300.n-popover
'strigger
prop support'focus'
, closes #477.n-message-provider
addsduration
andmax
props.n-data-table
addsflex-height
prop, closes #596.
- Fix
n-carousel
arrow buttons cannot be displayed in a specific browser, closes #625. - Fix
n-layout-sider
'swidth
prop can't be string, closes #607. - Fix
n-slider
propdisabled
doesn't work, closes #641. - Fix
n-input
show clear button when readonly. - Fix
n-data-table
doesn't show scrollbar when table-layout is auto, closes #518. - Fix
n-data-table
's header checkbox always displays checked when data is empty. - Fix
n-data-table
header and body's scrollings are not sync.
n-menu
addsrender-icon
prop.n-upload
addsshow-file-list
prop.n-dropdown
addsrender-icon
prop.n-checkbox-group
addsmin
andmax
prop.n-mention
addsempty
slot.useDialog
option addson-mask-click
prop, closes #419.n-space
justify
prop supportscenter
,space-around
andspace-between
.n-date-picker
addsclose-on-select
prop, closes #541.n-dialog
addsaction
prop, closes #550.n-mention
’soption.label
support render function.n-color-picker
addsactions
prop, closes #319.
- Fix
n-space
's innerdisplay: grid
element breaks item height, closeshttps://github.com/TuSimple/naive-ui/issues/546
. - Fix
n-dropdown
'srender-label
prop is invalid for group type option. - Fix
n-datatable
'sscroll-x
prop is setted, the table content width is not full of the container width, closes #518. - Fix
n-descriptions
doesn't work withv-for
children. - Fix
n-dialog
display an empty button whenpositive-text
is not set, closes #549. - Fix
n-pagination
PaginationInfo
'sendIndex
data error, closes #584. - Fix
n-data-table
rowClassName
doesn't work when type is string, closes #582.
n-tree
addsrender-label
,render-prefix
andrender-suffix
props.n-rate
addsallow-half
prop.n-carousel
addsshow-arrow
prop.n-slider
addsformat-tooltip
prop.n-upload
addsevent
inon-finish
callback params.n-rate
addsreadonly
prop.n-time-picker
addsseconds
,minutes
,hours
props.n-notification
exportNotificationApi
,NotificationOptions
andNotificationReactive
type.n-avatar
addson-error
prop, closes #394.n-image
addson-error
prop, closes #394.n-image
addsobject-fit
prop, closes #394.n-avatar
addsobject-fit
prop, closes #394.n-menu
expands all the ascendant of selected item by default, closes #481.
- Fix
n-calendar
'sdefault-value
prop cannot be used. - Fix
n-pagination
page count is not correct whenitem-count
is 0. - Fix
n-scrollbar
content-style
can not override the default width of style. - Fix
n-select
placeholder transition. - Fix
n-loading-bar
useLoadingBar
's return type can be undefined. - Fix
n-tag
'stype
prop addsprimary
type. - Fix
n-dynamic-tags
'stype
prop addsprimary
type.
n-steps
adds icon customization in'finish'
and'error'
status.n-tree
exportsTreeDragInfo
&TreeDropInfo
type.n-empty
exporticon
slot.useDialog
option addsmaskClosable
prop, closes #420.
- Fix
n-data-table
fixed column box-shadow doesn't update when there is only on side fixed. - Fix
n-data-table
fixed column box-shadow doesn't update whenprops.scrollX
is not set but each column's width is set. - Fix
n-result
image doesn't show on Safari and mobile phone. - Fix
n-drawer-content
'sheader-style
style not applied to header. - Fix
n-dialog
instance throws error when callingdestroy
. - Fix
n-image-group
initialize zoom scale when switching a picture #423. - Fix
n-select
bug in using custom label, closes #352. - Fix
n-carousel
whenautoplay
dot active status isn't displayed correctly, closes #434. - Fix
n-input
fixed clearable position, closes #428. - Fix
n-image
doesn't accept attributes. - Fix
n-image
set border-radius not working, closes #427. - Fix
n-tab-pane
throws error when there's no children. - Fix
n-select
clear button is too big inn-spin
, closes #454. - Fix
n-select
options are not updated properly, closes #441.
n-loading-bar
exportLoadingBarApi
type.n-image
addsimg-props
prop.- Add native
title
attributes to some components to enhance the experience. n-tree
addsprefix
andsuffix
in TreeOption.n-carousel
addsdot-placement
prop.n-auto-complete
addsloading
prop, closes #241.n-slider
addstooltip
prop, closes #362.n-input
addsloading
prop.
- Fix
n-upload
multiple=false
doesn't work for drag & drop, closes #363. - Fix
n-dropdown
's inner<a />
's style. - Fix
n-menu
tooltip's inner<a />
's style, closes #338. - Fix
n-carousel
doesn't work withv-for
children. - Fix
n-form
label-align
prop not working, closes #213 - Fix
n-data-table
fixed column shadow doesn't work whenmax-height
is set, closes #376.
n-carousel
addstrigger
prop.n-menu
addsdropdown-placement
prop.n-upload
addsbefore-upload
prop.n-image
addsalt
prop.- Support the enter key on the numeric keypad.
n-spin
supporticon
slot for icon customizing, closes#260.n-spin
addsrotate
prop fro slot icon to rotate.n-form
exportFormItemRule
&FormRules
type.n-select
addsrender-tag
prop.
- Fix
n-log
warn on highlight.js when no language is set, closes #327. - Remove
n-calendar
's uselessconsole.log
. - Fix loading-bar disappears unexpectl, closes #343.
- Fix
n-select
doesn't scroll to selected item when menu is opened, closes #346. - Fix
n-tab-pane
throws error when using v-if. - Fix
n-modal
still closes whenon-negative-click
returnsfalse
. - Fix
n-collapse
defaultExpandedNames
does not work in accrodion mode, closes #350. - Fix
n-tag
lackson-update-checked
prop. - Fix
n-menu
render-label
not working for dropdown in collapsed mode.
- Fix no
web-types.json
.
n-select
'sSelectOption
'srender
no longer render label but the entire option.
n-carousel
supports touch operation, closes #271.n-input
addsinput-props
prop.n-message
optimize the error message ofuseMessage
when there is non-message-provider
, adds the related document link.- Add
web-types.json
for webstorm, however I recommend using VSCode and Volar.web-types.json
only provides limited information for coding. n-tree-select
addsleaf-only
prop.n-tree
addsleaf-only
prop.n-select
'sSelectOption
'slabel
supports render function.n-select
addsrender-option
prop.n-select
exportSelectOption
&SelectGroupOption
type.n-popover
addsheader
slot.n-dropdown
addsrender-label
prop.
- Fix
n-date-picker
n-provider
passdate-locale
not work, closes #250. - Fix
n-input
clear button placeholder prevent clicking on actual component #288 - Fix
n-carousel
click the at current item button, the component behaves abnormally. - Fix
n-menu
render-label
not working for tooltip in collapsed mode. - Fix
n-dropdown
can't rendern-popover
in option.
n-element
removesabstract
prop.n-element
doesn't return theme variables in default slot. Please useuseThemeVars
instead.
- Add
n-carousel
component. - Add
useThemeVars
composable to provide theme variables. n-upload
addson-update:file-list
prop, closes #135.n-date-picker
addsupdate-value-on-close
prop.
- Fix
n-select
can't input in filterable mode in single mode in iOS Safari, closes #230 - Fix
n-input-number
lackson-update-value
prop. - Fix
n-input-number
's value can't be null. - Fix
n-input-number
's button doesn't work after value is cleared, closes #251. - Fix
n-data-table
expand trigger's cursor is not pointer, closes #261.
n-input-number
will focus directly, closes #244.
n-dropdown
addson-clickoutside
prop, closes #123.n-menu
addsrender-label
prop, closes #84n-tree
supports keyboard operations.- Add
n-tree-select
component.
- Fix
n-tree
drag over leaf node causes error, closes #200. - Fix
n-tree
misseson-update-expanded-keys
,on-update-selected-keys
,on-update-checked-keys
prop. - Fix
n-tree
'sselected-keys
prop influences original array. - Fix
n-select
's input has useless empty row in multiple filterable mode. - Fix
n-button
's loading icon doesn't show on iOS Safari, closes #219. - Fix
n-date-picker
doesn't show icon when clearable. - Fix
n-time-picker
icon mis-aligned when clearable, closes #222.
- Fix
n-form-item
always show require mark.
n-form
,n-form-item
enhanceshow-require-mark
prop, closes #171n-dropdown
support class attr, closes #180.n-input
addsshow-password-toggle
prop.n-popselect
support class attr.n-select
addsrender-label
prop.n-popselect
addsrender-label
prop.
- Fix
n-input
baseline shifts when mix Chinese and English characters in input, closes #174. - Fix
n-icon
use setup script,$parent
is an empty object by default, and access$parent.$options
will beundefined
. - Fix
n-notification
position not correct. - Fix
n-message
content & option type not correct.
n-a
'sto
prop is removed. Now if you want to usen-a
like a router link, you can follow the doc site.
n-tree
supportdisabled
&checkboxDisabled
on option.n-input-number
support keyboard events ArrowUp and ArrowDown operations.
- Fix
n-cascader
text blur in win10 Chrome. - Fix
n-tree
click on indent won't trigger select in block line mode.
n-drawer-content
addsclosable
prop, closes #139.n-element
passthemeVars
to default slot.n-element
addsabstract
prop.
- Fix
n-radio-group
doesn't trigger form item validation. - Fix
n-auto-complete
customizing input not working.
n-tag
addsRTL
support
- Move
vue
&vue-router
to peer dependencies to avoid redundant bundle.
n-space
supports wai-aria.n-button-group
supports wai-aria.n-progress
supports wai-aria.n-menu
supports use<a />
and<router-link />
as label, closes #84.n-input-number
addsshow-button
prop.n-rate
supportdefault
slot for icon customizing.n-rate
adds color prop.n-rate
adds size prop.
- Fix
n-card
'sheader-style
it not applied to header. #103 - Fix
n-dialog
missesdestroyAll
method. - Fix
n-data-table
misseson-update-sorter
,on-update-filters
,on-update-page
andon-update-page-size
props.
n-data-table
exportsDataTableCreateRowClassName
,DataTableCreateRowKey
andDataTableCreateRowProps
type.
- Fix
n-calendar
'son-update:value
prop type. - Fix
n-form-item
's style attributegrid-template-columns
influence on the layout of child elements. #93 - Fix
n-data-table
's prop types ofrowKey
,rowClassName
,rowProps
,summary
aren't compatible with expected value.
- Fix
n-slider
doesn't prevent scrolling when touchstart. - Fix
n-color-picker
's default value doesn't follow modes. - Fix not
lodash
&lodash-es
type.
n-spin
'ssize
prop support number.n-date-picker
addsfooter
slot.
- Fix
n-slider
doesn't support touch events - Fix
n-button
causes crash when it's imported in script inside head tag. #68 - Fix
n-spin
animation shifts. - Fix
n-menu
lackon-update-value
andon-update-expanded-keys
props. - Fix
n-popconfirm
icon slot not working. - Fix
n-tabs
logs useless info. - Fix
n-color-picker
setmodes
not working. #77
n-dropdown
addsdisabled
propn-card
adds:target
style
- Fix
n-popover
sometimes won't sync position in manual mode. - Fix
n-transfer
's empty icon is no toggling transition. - Fix
n-message
API option is not optional. - Fix
n-calendar
date calculate incorrectly. - Fix
n-input
misses thepassword
type declaration. - Fix
n-menu
the type definition ofextra
property of menu and submenu. - Fix
n-dropdown
mouse cursor is not pointer.
n-button
supports wai-aria.n-card
supports wai-aria.n-switch
supports wai-aria.n-menu
supports basic wai-aria.n-divider
supports basic wai-aria.n-data-table
addsrow-props
prop.n-date-picker
addsranges
prop.
- Fix
n-tab-pane
display-directive
not working. - Fix
n-drawer
animation. - Fix
n-scrollbar
's track may be overlayed in chrome windows.
- Fix
n-collapse
default-expanded-names
not working.
- Fix
n-dropdown
default placement is notbottom
. - Fix
n-date-picker
's input theme is not set indate
&datetime
type. - Fix
n-config-provider
doesn't merge inherited theme.
n-collapse
addsarrow
slot
Update package.json & README.md.
n-affix
'slisten-to
prop isdocument
by default (first scrollable parent before).
n-affix
'slisten-to
prop supportWindow | Document | HTMLElement
.n-anchor
addsoffset-target
prop.n-select
addsvirtual-scroll
prop.n-select
addsconsistent-menu-width
prop.n-date-picker
update value after confirm is clicked.
- Fix
n-date-picker
doesn't disable start date correctly when value is empty. - Fix
n-input-number
not restore valid value after blur. - Fix
n-date-picker
display selected date when value is null in date mode.
n-affix
'soffset-top
prop is deprecated, please usetrigger-top
instead.n-affix
'soffset-bottom
prop is deprecated, please usetrigger-bottom
instead.n-anchor
'slisten-to
prop is removed.
n-popover
'splacement
prop default value is set to'top'
.
n-tabs
addson-close
prop.n-tabs
addson-add
prop.n-tabs
addstab
slot.n-tab-pane
'stab
prop support render function & VNode.n-tabs
'stype
prop support'line'
option.n-tabs
adds box shadow to indicate scroll status.n-tabs
addspane-style
prop
- Fix
n-layout
'sscrollTo
not working when using native scrollbar.
n-tab-pane
'slabel
prop is deprecated. Please usetab
prop instead.
n-layout-sider
removedshow-content
prop. Please useshow-collapsed-content
instead.
n-data-table
support tree data.n-data-table
addscascade
prop.n-data-table
addschildren-key
prop.n-data-table
addsindent
prop.n-button
addstag
prop.n-data-table
addstable-layout
prop.n-tree
addsblock-line
prop.n-tree
support drag & drop.n-menu
addsinverted
prop.n-dropdown
addsinverted
prop.n-tabs
addsaddable
prop.n-tabs
addstab-style
prop.n-tabs
addstabs-padding
prop.n-tabs
addsdefault-value
prop.n-layout-sider
&n-layout-footer
&n-layout-header
addsinverted
prop.n-data-table
'smax-height
&min-height
prop accept CSS value.n-layout
&n-layout-content
addsembedded
prop.
n-layout
&n-layout-sider
'sscrollTo
not working with native scrollbar.n-layout-sider
'scollapse-mode
not working.- Internal selection component's theme peers has wrong key for popover.
- Optimize
n-data-table
init render count. - Optimize
n-select
open duration after first opening. - Optimize
n-anchor
scroll performance.
n-tree
addsvirtual-scroll
prop.n-data-table
addsvirtual-scroll
prop.n-cascader
addsvirtual-scroll
prop.n-pagination
addsitem-count
prop.n-pagination
addsprefix
prop.n-pagination
addsprefix
slot.n-pagination
addssuffix
prop.n-pagination
addssuffix
slot.n-input
addsshow-count
prop.
- Fix
n-layout-sider
doesn't show menu after collapsed. - Fix
n-input-number
doesn't reset to origin value when blur with invalid value. - Fix
n-pagination
doesn't update page in uncontrolled mode.
n-form-item
works withoutn-form
.
- Fix
n-checkbox
check mark not displayed. - Fix
n-date-picker
icon transition style in trigger. - Fix
n-p
,n-ol
,n-ul
margin bottom is not 0 when they are last child. - Fix
n-checkbox-group
not working in uncontrolled mode. - Fix
n-data-table
clear check all in table now working.
n-data-table
highlight sorted col.n-data-table
col addsrender-filter
prop.n-data-table
col addsrender-filter-icon
prop.
n-data-table
fixed column box-shadow more clear in dark theme.- Fix
n-color-picker
value has line wrap. - Fix
n-form
FormRuleItem.trigger types.
n-data-table
addssummary
prop.n-data-table
addsoptions
on'type=selection'
column.
- Fix
n-layout
overflow on horizontal direction.
n-checkbox
addsfocusable
prop.n-cascader
addsaction
slot.
- Fix
n-cascader
loading triggered when click checkbox. - Fix
n-cascader
menu mask style.
n-drawer
doesn't have padding by default.n-drawer-content
is provided to fill the drawer.
n-drawer
addscontent-style
prop.n-layout
addscontent-style
prop.n-layout-sider
addscontent-style
prop.
n-config-provider
Addcls-prefix
prop.
- Fix
n-popover
may influence other popover when static props is hoisted.
n-color-picker
addsshow-alpha
prop.
- Fix
n-select
defaultfallback-option
breaks the component.
- Add
n-skeleton
component. - Add
n-calendar
component. - Add
n-color-picker
component. n-date-picker
locale addsfirstDayOfWeek
.n-select
addsshowArrow
prop.
- Fix
n-date-picker
trigger has no focus style in focus is in panel. - Fix
n-button
loading's fade-in transtion drifts. - Fix
n-time-picker
close animation drifts inn-date-picker
. - Fix detached components in popover should stay in popover.
- Add
n-form-item-gi
component.
- Fix
n-ellipsis
&n-data-table
ellpisis cell mis-vertical-aligned. - Fix
n-select
filterable doesn't work with composite events.
- Fix
n-select
caret color in single filter mode. - Fix
n-select
menu action part can't be focused.
- Add
n-image
component. - Add
n-global-style
component. - Add
n-theme-editor
component. - Add
n-page-header
component. n-statistic
addslabel
slot.n-breadcrumb-item
addsseparator
slot & prop.n-button
addsbordered
prop.n-card
addsfooter-style
prop.
- Refactor
n-statistic
's style n-menu
addsoptions
prop to replaceitems
prop,items
prop is deprecated.
- Fix
n-anchor
ignore-gap
not working - Fix
n-collapse
content is truncated byoverflow: hidden
. - Fix
n-select
tag text overflow. - Fix
n-popover
doesn't hide as expected in mobile phone.
- Fix
n-layout-sider
horizontal content overflows.
- Collapsing won't work for
n-layout-sider
withposition="absolute"
. - For
n-layout
containsn-layout-sider
as a direct childhas-sider
must be set.
- Add
n-mention
component. n-data-table
supports expanding rows.
- Fix
n-input
focused background color not correct in warning & error status in dark theme. - Fix
n-input
caret color not correct in warning & error status. - Fix
n-select
's namespace not correct. - Fix
n-cascader
's namespace not correct. - Fix
n-input
in textarea mode can't select text. - Fix
n-input
in textarea mode has no box-shadow. - Fix
n-input
in textarea modeautosize
line not correct due to inconsistant font family. - Fix
n-input
in textarea modeautosize
rows not changed if props.value is changed from outside.
- Change
n-empty
's icon and make it size larger
- Fix
n-data-table
has no right border of non-last td. - Fix
n-data-table
header has no enough width when table width is more thanscroll-x
n-data-table
's column addscolSpan
androwSpan
prop.n-data-table
's column addstitleColSpan
prop.
- Fix
n-dropdown
withx
andy
set logs errors when mouse move outside it.
- Fix
n-select
selection overflow counter wrong popover trigger area
n-popover
defaultduration
is set to100
.n-popover
defaultdelay
is set to100
.n-tooltip
defaultshowArrow
is set totrue
.
n-config-provider
proptheme-overrides
support inheritance.n-card
addshoverable
prop.n-select
addsmax-tag-count
prop.n-cascader
addsmax-tag-count
prop.n-popover
addsget-disabled
prop.- adds
n-ellipsis
component. n-popover
'swidth
prop adds'trigger'
option.n-data-table
's columns'sellipsis
prop can be set as props ofn-ellipsis
.
- Fix
n-cascader
menu appears after click clear button. - Fix
n-card
's action not placed at bottom after style height is set. - Fix
n-popover
'sduration
anddelay
prop works unexpectly.
n-layout-sider
addsdefault-collapsed
prop.n-modal
support custom position.
- Fix
n-menu
tooltip ofn-menu-item
won't show when vertical collapsed. - Fix
n-menu
collapsed-icon-size
not working. - Fix
n-menu
callback props validate array with error. - Fix
n-layout-sider
toggle button is covered.
See vue3.md
- Fix the problem that
n-auto-complete
's menu can't be closed when usetextarea
as input. - Fix the problem that nested
n-icon
is not flattened. - Fix the problem that
n-date-picker
has no year in panel when type isdate
anddatetime
.
n-button
addsdashed
props- Add
n-space
component. - Make
n-drawer
content scrollable.
- Add zhCN for
n-log
- Fix all typos of
separator
. (Originally it wasseperator
.)
- Fix the problem that when theme is not set, style errors will be logged.
- Fix the text color of
n-select
's placeholder whensingle
filterable
.
- Fix the problem that Message, Notification, Confirm doesn't follow theme change.
- Fix the problem that
n-select
display with mistakes whenplaceholder
is empty.
- Fix the problem that
n-radio
can not be focused. - Fix the problem that
n-data-table
'smax-height
style is broken. https://bugs.chromium.org/p/chromium/issues/detail?id=1107223
- Refactor
n-tag
styles.
- Add
disabled
forn-time-picker
.
- Fix the child elements of
n-radio
cannot focus.
- Refactor experimental setting primary color feature.
- Fix some style glitches.
- Add
autofocus
forn-select
.
n-menu
doesn't support slot API anymore.
- Add experimental setting primary color feature.
- Add
attr-type
forn-button
- Fix the problem that if
n-input
is too width, its inner input elements' width won't expand. - Fix style glitches of border of a
n-input-number
inside an-input-group
.
- Fix the problem that
n-a
'sto
prop can't be a object.
- Add
$NOs.theme
to get the current theme of the OS.
- Fix the problem that
n-log
's loading indicator uses monospace font. - Fix the problem that icon-related class name isn't applied properly.
- Fix the problem that checkbox in the selection column of
n-data-table
is not center aligned. - Fix the problem that header of
n-data-table
has no border-color transition. - Fix the problem that
show-icon
&closable
&bordered
props of$NConfirm
don't work.
- Add and adjust some colors in the style scheme of
n-config-consumer
.
- Default UI CSS bundle won't include external font files. If you need using it you should import it explicitly.
- Add
themed-style
prop onn-layout
.
- Fix the problem that round toggle button won't rotate
n-layout-sider
when collapsed status is changed. - Fix the problem that
n-form-item
's feedback has no leave animation if it is set at first. - Fix the problem that max-height related styles of
n-data-table
are applied all the time. - Fix some style glitches.
- Refactor some components' styles in the light theme.
- Fix the problem that
n-slider
tooltip has no z-index.
- Add
feedback
andvalidation-status
props forn-form-item
.
- Add
display-directive
prop forn-collapse
andn-collapse-item
. - Add
class
andstyle
prop forn-select
'soption
. - Add
debug
prop forn-select
.
- Fix the problem that
n-select
can still be cleared when disabled.
- Fix the problem that the input value of
n-select
may be modified directly.
- An UI instance can be install to a Vue instance for no more than once.
- Update css-render dependencies.
- Fix the problem that
n-transfer
's animation disorder when value changes.
- Add content slot for
n-step
. - Add
label
prop forn-checkbox
.
- All placeable components register listeners on demand.
- Use cache when finding scrollable parent node.
- Imporve performance of
n-button
's beforeDestroy. - Reduce the useless re-rendering of
n-checkbox
when checked status isn't changed. - Imporve performance of text typed
n-avatar
.
- Update css-render dependencies.
- Color of default typed button icon.
- Reduce useless re-renders of
n-menu-item
. - Reduce useless re-renders of doc page.
- Refactor the codes of
n-nimbus-service-layout
for performance reason, may be there will be some bugs.
n-button
now accepts custom color.
- Replace all $slots by $scopedSlots for better robustness.
- Move some static button styles inside button component to create dynamically.
- Fix the problem that
line
typedn-tabs
's line position stays still whenactiveName
changes. - Fix the problem that
n-tabs
scroll button is not triggered when tabs' width changes. - Fix the problem that height change of
n-tabs
will unexpectly trigger some re-render callbacks.
- Fix the problem that label slot of the
n-form-item-col
&n-form-item-row
cannot display.
- Fix the problem that some CSS length props are badly formated.
- Add
fallback-option
prop forn-select
to deal with the value with no corresponding option.
- Fix the problem that
max-height
andmin-height
are ill displayed onn-data-table
.
n-data-table
'smax-height
andmin-height
will be applied to the entire table part, not only body.n-select
will display value with no corrensponding option.
- Add
arrow-placement
prop onn-collapse
. - Add
arrow
slot onn-collapse-item
.
- Fix the problem that detachable components detached in wrong place when nested like
modal > drawer > component
.
- Add
autofocus
prop onn-input
. - Add
closable
option onNMessage
.
- Fix the problem that the default value of
n-tag
closable
is set totrue
. - Fix the problem that
n-data-table
can't use allpagination
's props. - Fix the problem that
n-pagination
'son-page-size-change
prop doesn't work.
- Add
n-dynamic-tags
. - Add
tableHeaderOverlayBackgroundColor
&inputOverlayBackgroundColor
tostyleScheme
- Add
filter-option-value
prop forn-data-table
'scolumn
to better deal with single filter mode.
- Fix the problem that
n-collpase-item
don't supportnumber
typedname
.
- Fix the problem that all the
console
statements are striped in the bundle.
- Change the data type of
n-data-table
's filters from Array to Object.
n-data-table
cannot be filtered correctly when there are multiple filtered columns.
- Filter menu in
n-data-table
is scrollable when there are too many items.
$NMessage
,$NNotification
,$NConfirm
's theme will be applied on their children components.
- View measuring element will confict when multiple naive-ui exist.
validate
method ofn-form-item
won't be resolved for some validator.$NConfirm
's theme doesn't follown-config-provider
's theme.
n-transfer
's options are not reinitialized after value changes.n-nimbus-service-layout
(deprecated) doesn't deal with the compatibility of Vue Router(under 3.1)'spush
method.
- Add
'bar'
&'arrow-circle'
onshow-trigger
prop ofn-layout-sider
.
- Rails of
n-scrollbar
shadow mouse event.
n-date-table
addsempty
slot. #86