1.1.0 Helium
新特性:
- 新增 Carousel、Collapse 组件
- 支持 SSR
- 组件内的滚动条样式优化
- Table 支持通过 Scoped Slots 传入模板;原来的
inline-template
仍然兼容,但是不再推荐使用,未来可能会被移除 - Table 支持展开行功能(Expandable rows)
- DatePicker 支持指定周起始日(first day of week)
- TimeSelect 支持设置
maxTime
- Autocomplete 新增
popper-class
属性 - Tab-Pane 新增 name 为 label 的具名
slot
,用于实现自定义标签内容
修复:
非兼容性更新:
- 最低兼容 Vue 2.1.6
- Form validateField() 方法回调的参数更新
- Alert 取消了 render-content 属性,现在自定义模板需要通过默认 slot 传入
- Input 和 Select 盒模型从
block
修改为inline-block
- Tabs 盒模型从
inline-block
修改为block
,Tab-Pane 移除label-content
属性 - Autocomplete 下拉列表现在直接插入到
<body>
标签下,而不是<el-autocomplete>
下
New features:
- Two brand new components: Carousel and Collapse
- SSR supported
- Scrollbars' style inside components is upgraded
- Table now supports custom templates via scoped slots; the good old
inline-template
is still compatible, but it's no longer recommended and is likely to be removed in the future - Table now supports expandable rows
- DatePicker now supports specifying the first day of week
- TimeSelect now supports
maxTime
- Autocomplete now supports
popper-class
- To customize template of Tab-Pane, now you can use the
slot
namedlabel
Fixes:
change
event of DatePicker incorrectly triggering multiple times, #2070- Width shaking of tab-pane while initializing, #1883
Breaking changes:
- Only compatible with Vue 2.1.6 and beyond
- Parameters of Form validateField() methods are updated
- Alert's render-content attribute is removed, and now you can pass your custom template via default slot
- The box models of Input and Select are updated from
block
toinline-block
- The box model of Tabs is updated from
inline-block
toblock
, and Tab-Pane'slabel-content
attribute is removed - The dropdown of Autocomplete now inserts directly to
<body>
, not<el-autocomplete>
any more