1.2.0 Lithium
新特性:
- 新增 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-listthumbnail-mode属性被移除
New features:
- Two brand new components: Cascader and ColorPicker
- New attributes
editableandaddable, and new eventstab-addandeditfor Tabs - Language config files in UMD format
- New events
node-expandandnode-collapsefor Tree, #2507 (by @masterzhang) - New attribute
indentfor Tree, #2713 - Dialog's title now supports named slot, #2657
- New attribute
rangefor Slider, #2751 - Upload
- Attribute
auto-uploadthat controls if files are uploaded immediately after selecting, and its default value istrue - Event
on-changethat fires when file status changes - Attribute
list-typethat 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-activeis 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-listrenamed tofile-list, andshow-upload-listrenamed toshow-file-listthumbnail-moderemoved