新特性:
- 新增 Cascader、ColorPicker 组件
- Tabs 新增
editable
和addable
属性以及tab-add
和edit
事件 - 新增 UMD 格式的语言包文件
- Tree 新增
node-expand
和node-collapse
事件,#2507(by @masterzhang) - Tree 新增
indent
属性,#2713 - Dialog 的标题支持以具名 slot 的方式传入,#2657
- Slider 新增
range
属性,支持范围选择,#2751 - Upload
- 新增
auto-upload
属性,用以控制是否在选择图片后自动上传,默认为开启 - 新增
on-change
钩子函数在文件状态改变时会调用 - 新增
list-type
设置文件列表展示外观
- 新增
- Autocomplete 滚动条使用 el-scrollbar
修复:
- Carousel 不响应内容动态更新的问题,#2775
- TimePicker 在某些情况下数字位置不居中的问题,#2948
- TimePicker 在某些情况下范围选择时仅响应偶数次点击的问题,#2884(by @k55k32)
- Tab 修复 tab-pane 动态显示时插入顺序问题, #2898
- Menu 修复将
default-active
设置为不存在的 index 时 menu-item 还会高亮的问题 - Collapse 修复嵌套使用时的样式问题
非兼容性更新:
- 重构 Tooltip,不再生成额外的 HTML 标签,确保被 tooltip 包裹的组件的结构不变,#2459
- Dialog 的遮罩层现在默认插入至 body 元素上,#2556
- Tabs 现在内部不再维护 tab 实例,需要在外部通过相关事件去处理, #2567
- Upload 重构升级
default-file-list
属性更名为file-list
,show-upload-list
属性更名为show-file-list
thumbnail-mode
属性被移除
New features:
- Two brand new components: Cascader and ColorPicker
- New attributes
editable
andaddable
, and new eventstab-add
andedit
for Tabs - Language config files in UMD format
- New events
node-expand
andnode-collapse
for Tree, #2507 (by @masterzhang) - New attribute
indent
for Tree, #2713 - Dialog's title now supports named slot, #2657
- New attribute
range
for Slider, #2751 - Upload
- Attribute
auto-upload
that controls if files are uploaded immediately after selecting, and its default value istrue
- Event
on-change
that fires when file status changes - Attribute
list-type
that configures the appearance of file list
- Attribute
- Scrollbars in Autocomplete is made prettier
Fixes:
- Carousel not responding to contents' update, #2775
- Numbers in TimePicker not align in some conditions, #2948
- TimePicker only responding to odd clicks in some conditions, #2884 (by @k55k32)
- Tabs' display order error when tab-pane is dynamically changed, #2898
- Menu highlighting menu-item when
default-active
is assigned to an non-existent item - Collapse's style issue when nested
Breaking changes:
- Tooltip is refactored, no additional HTML tags will be rendered so that the structures of nested component stay unchanged, #2459
- The backdrop of Dialog now inserts to body element by default, #2556
- Tabs don't maintain tab instances internally any more, so they should be handled externally via events emitted by Tabs, #2567
- Upload is refactored
default-file-list
renamed tofile-list
, andshow-upload-list
renamed toshow-file-list
thumbnail-mode
removed