Skip to content

Latest commit

 

History

History
1094 lines (691 loc) · 31.5 KB

CHANGELOG.zh-CN.md

File metadata and controls

1094 lines (691 loc) · 31.5 KB

CHANGELOG

Pending

Feats

  • n-upload 新增 show-file-list 属性
  • n-dropdown 新增 render-icon 属性
  • n-checkbox-group 新增 minmax 属性
  • n-mention 新增 empty slot
  • n-space justify 属性支持 centerspace-aroundspace-between

Fixes

  • 修复 n-spacedisplay: grid 的元素显示不正确,关闭 https://github.com/TuSimple/naive-ui/issues/546
  • 修复 n-dropdownrender-label 属性对 group 类型 option 失效
  • 修复 n-descriptions 无法使用 v-for 的子元素
  • 修复 n-dialog positive-text 为空仍然显示按钮,关闭 #549

2.15.5 (2021-07-16)

Feats

  • n-tree 新增 render-labelrender-prefixrender-suffix 属性
  • n-rate 新增 allow-half 属性
  • n-carousel 新增 show-arrow 属性
  • n-slider 新增 format-tooltip 属性
  • n-uploadon-finish 回调参数中新增 event
  • n-rate 新增 readonly 属性
  • n-time-picker 新增 secondsminuteshours属性
  • n-notification 导出 NotificationApi, NotificationOptions and NotificationReactive 类型
  • n-avatar 新增 on-error 属性,关闭#394
  • n-image 新增 on-error 属性,关闭#394
  • n-image 新增 object-fit 属性,关闭#394
  • n-avatar 新增 object-fit 属性,关闭#394
  • n-menu 默认展开选中项的全部父级,关闭#481

Fixes

  • 修复 n-calendardefault-value 属性无法使用
  • 修复 n-pagination item-count 为 0 时页数不对
  • 修复 n-scrollbar content-style 无法覆盖默认样式的宽度
  • 修复 n-select placeholder transition
  • 修复 n-loading-bar useLoadingBar 返回类型可能为 undefined
  • 修复 n-tagtype 增加 primary 类型
  • 修复 n-dynamic-tagtype 增加 primary 类型

2.15.4 (2021-07-09)

Feats

  • n-steps 新增 'finish''error' 状态下的图标定制
  • n-tree 导出 TreeDragInfo & TreeDropInfo 类型
  • n-empty 导出 icon slot
  • useDialog 选项增加 maskClosable 属性,关闭 #420

Fixes

  • 修复 n-data-table 在只有一侧固定列时固定列阴影不更新
  • 修复 n-data-table 在未设定 props.scrollX 但为每个列设定宽度后固定列阴影不更新
  • 修复 n-result 图片在 Safari 和手机端不显示
  • 修复 n-drawer-contentheader-style 样式未应用于头部
  • 修复 n-dialog 实例调用 destroy 函数错误
  • 修复 n-select 自定义 label 的显示问题,关闭 #352
  • 修复 n-image-group 当切换图片预览时,初始化缩放比例 #423
  • 修复 n-carousel 设定 autoplay 点击后 dot active 状态不正常,关闭 #434
  • 修复 n-input 清空按钮位置引起的样式问题,关闭 #428
  • 修复 n-image 不接受 attributes
  • 修复 n-image 设定 border-radius 无效,关闭 #427
  • 修复 n-tab-pane 再没有子节点时报错
  • 修复 n-select clear 按钮在 n-spin 内过大,关闭 #454
  • 修复 n-select 选项没有被正常更新,关闭 #441

2.15.3 (2021-07-05)

Feats

  • n-loading-bar 导出 LoadingBarApi 类型
  • n-image 增加 img-props 属性
  • 在部分组件上添加原生 title 属性,以提高用户体验
  • n-tree 在 TreeOption 中增加 prefixsuffix 属性
  • n-carousel 增加 dot-placement 属性
  • n-auto-complete 新增 loading 属性,关闭 #241
  • n-slider 增加 tooltip 属性,关闭 #362
  • n-input 新增 loading 属性

Fixes

  • 修复 n-upload multiple=false 对于拖拽不生效,关闭 #363
  • 修复 n-dropdown<a /> 的样式
  • 修复 n-menu tooltip 中 <a /> 的样式,关闭 #338
  • 修复 n-carousel 无法使用 v-for 的子元素
  • 修复 n-form label-align 属性失效,关闭 #213
  • 修复 n-data-table 在不设定 max-height 时固定列阴影失效,关闭 #376

2.15.2 (2021-07-02)

Feats

  • n-carousel 增加 trigger 属性增加触发切换的方式
  • n-menu 新增 dropdown-placement 属性
  • n-upload 新增 before-upload 属性
  • n-image 新增 alt 属性.
  • 支持小键盘的 enter 键
  • n-spin 支持 icon 插槽为了自定义加载图标,closes#260
  • n-spin 新增 rotate 属性控制自定义加载图标是否有旋转动画
  • n-form 导出 FormItemRule & FormRules 类型
  • n-select 新增 render-tag 属性

Fixes

  • 修复 n-log 在未设定语言时仍然对缺少 highlight.js 报错,关闭 #327
  • 移除 n-calendar 无用的 console.log
  • 修复 loading-bar 自动消失,关闭 #343
  • 修复 n-select 打开菜单时没有自动滚动到选中项,关闭 #346
  • 修复 n-tab-pane 在使用 v-if 时报错
  • 修复 n-modal on-negative-click 返回 false 时 modal 依然关闭
  • 修复 n-collapse 在 accordion 模式下默认指定展开属性无效,关闭 #350
  • 修复 n-tag 缺少 on-update-checked 属性
  • 修复 n-menu 折叠时 render-label 对于 dropdown 不生效

2.15.1 (2021-06-30)

  • 修复缺少 web-types.json

2.15.0 (2021-06-29)

Breaking Changes

  • n-selectSelectOption render 属性不再渲染 label 而是整个选项

Feats

  • n-carousel 支持触控操作,关闭 #271
  • n-input 新增 input-props 属性
  • n-message 优化 useMessage 当没有 n-message-provider 时的报错信息,增加关联的文档链接
  • 为 webstorm 添加 web-types.json,但是我还是推荐使用 VSCode 和 Volar,web-types.json 只能为编码提供很有限的信息
  • n-tree-select 新增 leaf-only 属性
  • n-tree 新增 leaf-only 属性
  • n-selectSelectOptionlabel 属性支持渲染函数
  • n-select 新增 render-option 属性
  • n-select 导出 SelectOption & SelectGroupOption 类型
  • n-popover 支持使用 header slot
  • n-dropdown 新增 render-label 属性

Fixes

  • 修复 n-date-picker n-provider 传递 date-locale 属性无效,关闭 #250
  • Fix n-input clear button placeholder prevent clicking on actual component #288
  • 修复 n-carousel 点击当前页对应的控制按钮时,组件显示异常
  • 修复 n-menu 折叠时 render-label 对于 tooltip 不生效
  • 修复 n-dropdown 不能在选项中渲染 n-popover

2.14.0 (2021-06-23)

Breaking Changes

  • n-element 移除了 abstract 属性
  • n-element 不再在 default slot 返回主题变量,请使用 useThemeVars 代替

Feats

  • 新增 n-carousel 组件
  • 新增 useThemeVars 函数提供主题变量
  • n-upload 新增 on-update:file-list 属性,关闭 #135
  • n-date-picker 新增 update-value-on-close 属性

Fixes

  • 修复 n-select 在可过滤单选模式下在 iOS Safari 无法输入,关闭 #230
  • 修复 n-input-number 缺少 on-update-value 属性
  • 修复 n-input-number 值无法为 null
  • 修复 n-input-number 的按钮在值清空后无法使用,关闭 #251
  • 修复 n-data-table 展开图标光标样式不是 pointer,关闭 #261

Refactors

  • n-input-number 会直接聚焦,关闭 #244

2.13.0 (2021-06-21)

Feats

  • n-dropdown 新增 on-clickoutside 属性,关闭 #123
  • n-menu 新增 render-label 属性,关闭 #84
  • n-tree 支持键盘操作
  • 新增 n-tree-select 组件

Fixes

  • 修复 n-tree 缺少 on-update-expanded-keyson-update-selected-keyson-update-checked-keys 属性
  • 修复 n-tree 拖拽悬浮叶节点报错,关闭 #200
  • 修复 n-treeselected-keys 属性影响原数组
  • 修复 n-select 在 multiple filterable 模式下输入框有无用的空行
  • 修复 n-button 的 loading 图标在 iOS Safari 上不显示,关闭 #219
  • 修复 n-date-picker 非 clearable 不显示图标
  • 修复 n-time-picker clearable 状态下图标位置不正确,关闭 #222

2.12.2 (2021-06-19)

Fixes

  • 修复 n-form-item 始终展示必需的星号

2.12.1 (2021-06-19)

Feats

  • n-form, n-form-item 增强 show-require-mark 属性,关闭 #171
  • n-dropdown 支持 class 属性,关闭 #180
  • n-input 新增 show-password-toggle 属性
  • n-popselect 支持 class 属性
  • n-select 新增 render-label 属性
  • n-popselect 新增 render-label 属性

Fixes

  • 修复 n-input 中英文字符切换输入时抖动,关闭#174
  • 修复 n-icon 在使用 setup script 时,$parent 默认是一个空对象,访问 $parent.$options 会是 undefined
  • 修复 n-notification 位置不正确
  • 修复 n-message 的 content & option 类型不正确

2.12.0 (2021-06-16)

Breaking Changes

  • 移除了 n-ato 属性。现在如果你需要把 n-a 用作 router-link,你可以参考文档网站

Feats

  • n-tree 选项支持 disabled & checkboxDisabled 属性
  • n-input-number 支持键盘的上键和下键操作

Fixes

  • 修复 n-cascader 在 win10 Chrome 环境下文字模糊的问题
  • 修复 n-tree 在 block line 模式下点击缩进空白无法触发选择

2.11.12 (2021-06-16)

Feats

  • n-drawer-content 新增 closable 属性,关闭 #139
  • n-element 向 default slot 传递 themeVars
  • n-element 新增 abstract 属性

Fixes

  • 修复 n-radio-group 不触发 form-item 验证
  • 修复 n-auto-complete 无法自定义元素

2.11.11 (2021-06-15)

Feats

  • n-tag 添加 RTL 支持

Fixes

  • vuevue-router 移至 peer dependencies 避免重复打包

2.11.9 (2021-06-15)

Feats

  • n-space 支持 wai-aria
  • n-button-group 支持 wai-aria
  • n-progress 支持 wai-aria
  • n-menu 支持使用 <a /><router-link /> 作为 label,关闭 #84
  • n-input-number 新增 show-button 属性
  • n-rate 支持使用 default slot 自定义图标
  • n-rate 新增 color 属性
  • n-rate 新增 size 属性

Fixes

  • 修复 n-cardheader-style 没有应用于 header 上 #103
  • 修复 n-dialogdestroyAll 方法缺失
  • 修复 n-data-table 缺少 on-update-sorteron-update-filterson-update-pageon-update-page-size 属性

2.11.8 (2021-06-13)

Feats

  • n-data-table 导出 DataTableCreateRowClassNameDataTableCreateRowKeyDataTableCreateRowProps 类型

Fixes

  • 修复 n-calendaron-update:value 属性类型
  • 修复 n-form-itemgrid-template-columns 样式属性对子元素布局的影响 #93
  • 修复 n-data-tablerowKey, rowClassName, rowProps, summary 属性类型和期望值不兼容

2.11.7 (2021-06-12)

Fixes

  • 修复 n-slider 在 touchstart 发生时没有阻止滚动
  • 修复 n-color-picker 默认值不跟随模式设定
  • 修复缺少 lodash & lodash-es 类型

2.11.6 (2021-06-11)

Feats

  • n-spinsize 属性支持 number 类型
  • n-date-picker 支持 footer 插槽

Fixes

  • 修正 n-slider 不支持触摸事件
  • 修正 n-button 在 head 内部的 script 被引入造成崩溃 #68
  • 修正 n-spin 动画闪烁
  • 修正 n-menu 缺少 on-update-valueon-update-expanded-keys 属性
  • 修正 n-popconfirm icon slot 不生效
  • 修正 n-tabs 在控制台输出无用信息
  • 修正 n-color-picker 设定 modes 无效 #77

2.11.5 (2021-06-10)

Feats

  • n-dropdown 新增 disabled 属性
  • n-card 增加 :target 的样式

Fixes

  • 修复 n-popover 有时在手动模式不会同步位置
  • 修复 n-transfer 的无数据 Icon 没有开关动画
  • 修复 n-message API 的 option 不是可选的
  • 修复 n-calendar 展示日期计算错误
  • 修复 n-input 缺失 password 的声明
  • 修复 n-menu 的菜单和子菜单的 extra 属性的类型定义
  • 修复 n-dropdown 选项鼠标形状不是 pointer

2.11.4

Feats

  • n-button 支持 wai-aria
  • n-card 支持 wai-aria
  • n-switch 支持 wai-aria
  • n-menu 部分支持 wai-aria
  • n-divider 部分支持 wai-aria
  • n-data-table 新增 row-props 属性
  • n-date-picker 新增 ranges 属性

Fixes

  • 修正 n-tab-pane display-directive 不生效
  • 修正 n-drawer 动画
  • 修正 n-scrollbar 在 windows chrome 有重叠轨道

2.11.3

Fixes

  • 修复 n-collapse default-expanded-names 不生效

2.11.2

Fixes

  • 修复 n-dropdown 默认位置不是 bottom
  • 修复 n-date-picker 输入组件在 date & datetime 类型下未设定主题
  • 修复 n-config-provider 没有合并继承的主题

Feats

  • n-collapse 新增 arrow slot

2.11.1

更新 package.json & README.md

2.11.0

Breaking Changes

  • n-affixlisten-to 属性默认为 document (曾为首个可滚动的父节点)

Feats

  • n-affixlisten-to 属性支持 Window | Document | HTMLElement
  • n-anchor 新增 offset-target 属性
  • n-select 新增 virtual-scroll 属性
  • n-select 新增 consistent-menu-width 属性
  • n-date-picker 在确认后再更新值

Fixes

  • 修正 n-date-picker 在没有值的状态下起始日期 disabled 状态不正确
  • 修正 n-input-number 在 blur 后不会恢复有效的值
  • 修正 n-date-picker 在值为 null 的时候仍然显示选中日期

Deprecated

  • 废弃了 n-affixoffset-top 属性,请使用 trigger-top 代替
  • 废弃了 n-affixoffset-bottom 属性,请使用 trigger-bottom 代替
  • 移除了 n-anchorlisten-to 属性

2.10.0

Breaking Changes

  • n-popoverplacement 属性默认值设为 'top'

Feats

  • n-tabs 新增 on-close 属性
  • n-tabs 新增 on-add 属性
  • n-tab-pane 新增 tab slot
  • n-tab-panetab 属性支持渲染函数和 VNode
  • n-tabstype 新增 'line' 选项
  • n-tabs 添加阴影来展示滚动状态
  • n-tabs 新增 pane-style 属性

Fixes

  • 修正 n-layout scrollTo 方法在原生滚动时不生效

Deprecated

  • n-tab-panelabel 属性被废弃,请使用 tab 属性代替

2.9.0

Breaking Changes

  • n-layout-sider 移除了 show-content,使用 show-collapsed-content 代替

Feats

  • n-data-table 支持树形数据
  • n-data-table 新增 cascade 属性
  • n-data-table 新增 children-key 属性
  • n-data-table 新增 indent 属性
  • n-button 新增 tag 属性
  • n-data-table 新增 table-layout 属性
  • n-tree 新增 block-line 属性
  • n-tree 支持拖放
  • n-menu 新增 inverted 属性
  • n-dropdown 新增 inverted 属性
  • n-tabs 新增 addable 属性
  • n-tabs 新增 tab-style 属性
  • n-tabs 新增 tabs-padding 属性
  • n-tabs 新增 default-value 属性
  • n-layout-sider & n-layout-footer & n-layout-header 新增 inverted 属性
  • n-data-tablemax-height & min-height 属性接受 CSS 属性
  • n-layout & n-layout-content 新增 embedded 属性

Fixes

  • n-layout & n-layout-siderscrollTo 在使用原生滚动条时不生效
  • n-layout-sidercollapse-mode 属性不生效
  • 内部 selection 组件的主题 peers 中 popover 的 key 不正确

2.8.0

Perf

  • 优化 n-data-table 初始渲染次数
  • 优化 n-select 首次打开后打开用时
  • 优化 n-anchor 滚动性能

Feats

  • n-tree 新增 virtual-scroll 属性
  • n-data-table 新增 virtual-scroll 属性
  • n-cascader 新增 virtual-scroll 属性
  • n-pagination 新增 item-count 属性
  • n-pagination 新增 prefix 属性
  • n-pagination 新增 prefix slot
  • n-pagination 新增 suffix 属性
  • n-pagination 新增 suffix slot
  • n-input 新增 show-count 属性

Fixes

  • 修正 n-layout-sider 折叠后不显示菜单
  • 修正 n-input-number 在输入不合法 blur 时没有重设回原始值
  • 修正 n-pagination 在非受控模式下不更新页数

2.7.4

Feats

  • n-form-item 可以在 n-form 外使用

Fixes

  • 修正 n-checkbox 勾选图标不显示
  • 修正 n-date-picker 触发器的图标 transition 效果
  • 修正 n-pn-oln-ul 作为最后一个子元素 margin bottom 不是 0
  • 修正 n-checkbox-group 在非受控模式不工作
  • 修正 n-data-table 取消全部选择不工作

2.7.3

Feats

  • n-data-table 高亮排序列
  • n-data-table 列增加 render-filter 属性
  • n-data-table 列增加 render-filter-icon 属性

Fixes

  • n-data-table 固定列 box-shadow 在暗色模式更明显
  • 修正 n-color-picker 值折行
  • 修正 n-form FormRuleItem.trigger 类型

2.7.2

Feats

  • n-data-table 增加 summary 属性
  • n-data-table'type=selection' 的列增加 options 选项

Fixes

  • Fix n-layout 横向溢出的问题

2.7.1

Feats

  • n-checkbox 增加 focusable 属性
  • n-cascader 增加 action slot

Fixes

  • 修正 n-cascader 点击 checkbox 会触发 loading
  • 修正 n-cascader 菜单遮罩样式

2.7.0

Breaking Changes

  • n-drawer 默认不再包含 padding,填充 drawer 的内容可以使用 n-drawer-content

Feats

  • n-drawer 增加 content-style 属性
  • n-layout 增加 content-style 属性
  • n-layout-sider 增加 content-style 属性

2.6.0

Feats

  • n-config-provider 增加 cls-prefix 属性

Fixes

  • 修正 n-popover 在静态提升时可能影响别的 popover 的问题

2.5.1

Feats

  • n-color-picker 增加 show-alpha 属性

Fixes

  • 修正 n-select 默认 fallback-option 属性使组件崩溃

2.5.0

Feats

  • 添加 n-skeleton 组件
  • 添加 n-calendar 组件
  • 添加 n-color-picker 组件
  • n-date-picker locale 增加 firstDayOfWeek
  • n-select 增加 showArrow 属性

Fixes

  • 修正 n-date-picker 触发器在焦点在面板内的时候没有 focus 样式
  • 修正 n-button 加载状态宽度闪烁的问题
  • 修正 n-time-pickern-date-picker 内部关闭动画闪烁的问题
  • 修正 popover 内部的卸载组件应卸载于 popover 内部

2.4.2

Feats

  • 添加 n-form-item-gi 组件

Fixes

  • 修正 n-ellipsis & n-data-table ellpisis 单元格文本垂直排列错位
  • 修正 n-select 在输入法输入过程中就进行过滤

2.4.1

Fixes

  • 修正 n-select 单选过滤模式的光标颜色
  • 修正 n-select 菜单的 action 部分不能 focus

2.4.0

Feats

  • 添加 n-image 组件
  • 添加 n-global-style 组件
  • 添加 n-theme-editor 组件
  • 添加 n-page-header 组件
  • n-statistic 增加 label slot
  • n-breadcrumb-item 增加 separator slot & prop
  • n-button 增加 bordered prop
  • n-card 增加 footer-style prop

Refactors

  • 重构 n-statistic 样式
  • n-menu 增加 options prop 去替代 items prop,items prop 被废弃

Fixes

  • 修正 n-anchor ignore-gap 不生效的问题
  • 修正 n-collapse 内容被 overflow: hidden 截断
  • 修正 n-select tag 文本溢出
  • 修正 n-popover 在移动端无法正常关闭的问题

2.3.1

Fixes

  • 修正 n-layout-sider 横向宽度溢出

2.3.0

Breaking Changes

  • 折叠对于 position="absolute"n-layout-sider 不再生效
  • 对于包含 n-layout-sidern-layout 必须设定 has-sider

2.2.0

Feats

  • 新增 n-mention 组件
  • n-data-table 支持行展开

Fixes

  • 修正 n-input 在暗色主题 focus 状态下的背景颜色在 warning 和 error 的状态不正确
  • 修正 n-input 在 warning 和 error 状态下光标颜色不正确
  • 修正 n-select 的 namespace 不正确
  • 修正 n-cascader 的 namespace 不正确
  • 修正 n-input 在 textarea 模式无法选中
  • 修正 n-input 在 textarea 模式没有 box-shadow
  • 修正 n-input 在 textarea 模式 autosize 由于字体不一致导致行数有误
  • 修正 n-input 在 textarea 模式 autosize 在外部使 props.value 改变的时候行数不会变化

Refactors

  • 替换了 n-empty 的图标 & 增大了它的尺寸

2.1.3

Fixes

  • 修正 n-data-table 对于不是最后一个的 td 没有右侧边框
  • 修正 n-data-table 头部在表格宽度大于 scroll-x 的时候不够宽

2.1.2

Feats

  • n-data-table column 新增 colSpanrowSpan 属性
  • n-data-table column 新增 titleColSpan 属性

Fixes

  • 修正 n-dropdown 在设定 xy 之后鼠标在外面移动会报错

2.1.1

Fixes

  • 修正 n-select 选择器溢出计数器 popover 触发区域有误

2.1.0

Breaking Changes

  • n-popover 默认 duration 设为 100
  • n-popover 默认 delay 设为 100
  • n-tooltip 默认 showArrow 设为 true

Feats

  • n-config-providertheme-overrides 支持继承
  • n-card 新增 hoverable 属性
  • n-select 新增 max-tag-count 属性
  • n-cascader 新增 max-tag-count 属性
  • n-popover 新增 get-disabled 属性
  • 新增 n-ellipsis 文本省略组件
  • n-popover width prop 新增 'trigger' 的值
  • n-data-table 的列的 ellipsis 属性可设为 n-ellipsis 的 props

Fixes

  • 修正 n-cascader 再点击清除按钮后菜单出现
  • 修正 n-card 设定高度后 action 不在底部的问题
  • 修正 n-popoverdurationdelay 属性执行有问题

2.0.1

Feats

  • n-layout-sider 新增 default-collapsed 属性
  • n-modal 支持自定义位置

Fixes

  • 修正 n-menu 垂直折叠时 n-menu-item tooltip 不显示的问题
  • 修正 n-menu collapsed-icon-size 不生效的问题
  • 修正 n-menu 回调类 prop 不接受数组
  • 修正 n-layout-sider 按钮被遮挡的问题

2.0.0

参考 vue3.md

1.6.0

Fixes

  • 修正了 n-auto-complete 使用 textarea 作为输入元素时菜单无法关闭的问题
  • 修正了嵌套 n-icon 没有被打平的问题
  • 修正了 n-date-picker 在类型为 datedatetime 时面板不显示年的问题

Features

  • n-button 增加 dashed 属性
  • 增加 n-space 组件
  • n-drawer 内容可滚动

Localization

  • n-log 添加 zhCN 本地化

1.5.5 (2020-08-15)

Breaking Changes

  • 修正了所有 separator 的拼写(原来错拼为 seperator

Fixes

  • 修正了未设定主题时样式报错的问题
  • 修正了 n-select single filterable 时 placeholder 的样式问题

1.5.4 (2020-08-08)

Fixes

  • 修正了 Message、Notification、Confirm 不随主题切换的问题

1.5.3 (2020-07-23)

Fixes

  • 修正了 n-selectplaceholder 为空的时候显示出错的问题

1.5.2 (2020-07-22)

Fixes

Refactors

  • 重构了 n-tag 的样式

1.5.1 (2020-07-20)

Features

  • n-time-picker 增加了 disabled 属性

Fixes

  • 修正了 n-radio 下的子元素无法获取焦点的问题

1.5.0 (2020-07-09)

Breaking Changes

  • 重构了试验性的设定主色功能

Fixes

  • 修正了一些零碎的样式错误

1.4.1 (2020-06-23)

Features

  • n-select 增加了 autofocus 属性

1.4.0 (2020-06-19)

Breaking Changes

  • n-menu 不再支持 slot API

Features

  • 增加了试验性的设定主色功能

1.3.5 (2020-06-06)

Features

  • n-button 增加了 attr-type 属性

Fixes

  • 修正了 n-input 如果太宽里面的 input 元素宽度不会展开的问题
  • 修正了 n-input-groupn-input-number 边框的样式瑕疵

1.3.4 (2020-06-05)

Fixes

  • 修正了 n-ato 属性不能为对象的问题

1.3.3 (2020-06-03)

Features

  • 增加了 $NOs.theme 来获取当前操作系统的主题

1.3.2 (2020-06-02)

Fixes

  • 修正了 n-log 的加载器显示等宽字体的问题
  • 修正了 n-button icon 有关的类名没有被正确应用的问题

1.3.1 (2020-06-01)

Fixes

  • 修正了 n-data-table 选框列的选框没有垂直居中的问题
  • 修正了 n-data-table 表头没 border-color transition 的问题
  • 修正了 $NConfirmshow-icon & closable & bordered 属性设置无效的问题

Features

  • 增加并调整了一些 n-config-consumer 样式方案中的颜色

1.3.0 (2020-06-01)

Breaking Changes

  • UI 默认样式不再包含外部字体文件,如果需要使用 UI 提供的字体需要明确引入

Features

  • n-layout 增加了 themed-style 属性

Fixes

  • 修正了 n-layout-sider 圆形按钮没有随着折叠状态滚动的问题
  • 修正了 n-form-item feedback 如果在一开始被设定则消失没有动画的问题
  • 修正了 n-data-table max-height 相关属性在所有情况下都会被应用的问题
  • 修正了一些组件的样式瑕疵

Refactors

  • 调整了一些组件亮色主题下的样式

1.2.1 (2020-05-29)

Fixes

  • 修正了 n-slider 弹框没有 z-index 的问题

1.2.0 (2020-05-29)

Features

  • n-form-item 增加了 feedbackvalidation-status 属性

1.1.5 (2020-05-28)

Features

  • n-collapsen-collapse-item 增加了 display-directive 属性
  • n-selectoption 增加了 classstyle 属性
  • n-select 增加 debug 模式

Fixes

  • 修正了 n-select 在 disabled 状态下能被清除的问题

1.1.4 (2020-05-28)

Fixes

  • 修正了 n-select 在多选情况下传入值被直接修改的问题

Refactors

  • 一个 UI 实例最多在一个 Vue 上安装一次

1.1.3 (2020-05-20)

Chores

  • 更新 css-render 的依赖

Fixes

  • 修正了 n-transfer 在值改变时动画出错的问题

1.1.2 (2020-05-19)

Features

  • n-step 增加内容的 slot
  • n-checkbox 增加了 label prop

Performance Improvements

  • 所有定位组件按需注册监听器
  • 在寻找可滚动节点的过程中使用缓存
  • 提升了 n-button beforeDestroy 的性能
  • 减少了 n-checkbox 在值未改变时的重复渲染
  • 提升了文字内容的 n-avatar 的性能

1.1.1 (2020-05-18)

Fixes

  • 更新 css-render 的依赖
  • 默认类型的按钮的 icon 的颜色

Performance Improvements

  • 减少了 n-menu-item 没用的重复渲染
  • 减少了文档页面没用的重复渲染

Refactors

  • 为了性能重构了 n-nimbus-service-layout 的部分代码

1.1.0 (2020-05-16)

Features

  • n-button 接受自定义颜色

Refactors

  • 将内部所有使用 $slots 的地方换为 $scopedSlots 来获得更好的鲁棒性
  • 将部分按钮样式生成转移到组件内动态进行

1.0.14 (2020-05-15)

Fixes

  • 修正了 linen-tabs 线不随 activeName 属性改变的问题
  • 修正了 n-tabs 滚动按钮没有随着宽度改变触发的问题
  • 修正了 n-tabs 高度变化会导致一些不期望的调用的问题

1.0.13 (2020-05-14)

Fixes

  • 修正 n-form-item-col & n-form-item-row 的 label slot 不显示的问题

1.0.12 (2020-04-30)

Fixes

  • 修正了一些 CSS 长度属性格式化错误的问题

1.0.11 (2020-04-30)

Features

  • n-select 增加了 fallback-option 属性用于控制无对应选项时的回退选项

Fixes

  • 解决了 n-data-table 在没有数据时 max-heightmin-height 错误显示的问题

Breaking Changes

  • n-data-tablemax-heightmin-height 会对表格部分的整体生效,不只是表格的内容部分
  • n-select 在默认情况下会显示选项中不存在的值

1.0.10 (2020-04-28)

Features

  • n-collapse 增加了 arrow-placement 属性
  • n-collapse-item 增加了arrow slot

Fixes

  • 解决了可卸载组件在嵌套成 modal > drawer > component 样子的时候会被卸载到错误位置的问题

1.0.9 (2020-04-23)

Features

  • n-input 增加了 autofocus 选项
  • NMessage 增加了 closable 选项

Fixes

  • 解决了 n-tag closable 默认值被设为 true 的问题
  • 解决了 n-data-table 不能使用全部 pagination prop 的问题
  • 解决了 n-pagination on-page-size-change 不生效的问题

1.0.8 (2020-04-22)

Features

  • 增加 n-dynamic-tags 组件
  • styleScheme 新增暴露颜色 tableHeaderOverlayBackgroundColor & inputOverlayBackgroundColor

1.0.7 (2020-04-10)

Features

  • n-data-tablecolumn 增加了 filter-option-value 的属性来应对单选的情况

Fixes

  • 解决了 n-collpase-item 不支持 number 的问题

1.0.6 (2020-04-03)

Fixes

  • 解决了所有的 console 语句都在打包中被删除了的问题

1.0.5 (2020-03-27)

Features

  • 改变 n-data-table 的 filters 的数据类型从数组改变成对象

Fixes

  • n-data-table 在有多列筛选的情况下数据不能被正确筛选

1.0.4 (2020-03-26)

Features

  • 当选项过多时,n-data-table 过滤菜单的内容可以滚动

1.0.3 (2020-03-25)

Features

  • $NMessage, $NNotification, $NConfirm 的获取到的主题会应用到他们的内部组件

Fixes

  • 多个 naive-ui 共存时定位元素会产生冲突
  • n-form-item 的 validate 方法在某些 validator 的返回值下不会 resolve
  • $NConfirm 主题未随 n-config-provider 切换

1.0.2 (2020-03-23)

Fixes

  • n-transfer 的选项在值变化之后没有重置
  • n-nimbus-service-layout (deprecated) 没有兼容 Vue Router(3.1 版本以下) push 方法的返回值

1.0.1 (2020-03-21)

Features

  • n-layout-sidershow-trigger 增加了 'bar' & 'arrow-circle' 选项

Fixes

  • n-scrollbar 的轨道会挡住鼠标事件

Features

  • n-data-table 增加了 empty 插槽 #86