mirror of https://github.com/ElemeFE/element
Page:
ChangeLog 2.0.0 rc.1
Pages
ChangeLog 2.0.0 alpha.1
ChangeLog 2.0.0 alpha.2
ChangeLog 2.0.0 alpha.3
ChangeLog 2.0.0 beta.1
ChangeLog 2.0.0 rc.1
ChangeLog 2.0.0
ChangeLog 2.0.1
ChangeLog 2.0.10
ChangeLog 2.0.11
ChangeLog 2.0.2
ChangeLog 2.0.3
ChangeLog 2.0.4
ChangeLog 2.0.5
ChangeLog 2.0.6
ChangeLog 2.0.8
ChangeLog 2.0.9
ChangeLog 2.1.0
ChangeLog 2.2.0
ChangeLog 2.2.1
ChangeLog 2.2.2
ChangeLog 2.3.0
ChangeLog 2.3.1
ChangeLog 2.3.3
ChangeLog 2.3.4
ChangeLog 2.3.5
ChangeLog 2.3.6
ChangeLog 2.3.7
ChangeLog 2.3.8
ChangeLog 2.3.9
ChangeLog 2.4.0
ChangeLog 2.4.1
ChangeLog 2.4.10
ChangeLog 2.4.2
ChangeLog 2.4.3
ChangeLog 2.4.4
ChangeLog 2.4.5
ChangeLog 2.4.6
ChangeLog 2.4.7
ChangeLog 2.4.8
ChangeLog 2.4.9
Home
3
ChangeLog 2.0.0 rc.1
杨奕 edited this page 2017-10-25 21:04:46 -05:00
Table of Contents
新特性
- Form
- 新增
clearValidate
方法,用于清空所有表单项的验证信息,#7623
- 新增
- MessageBox
- 新增
inputType
属性,用户指定内部输入框的类型,#7651
- 新增
- Table
- 新增
size
属性,用于控制表格尺寸 - 新增
toggleRowExpansion
方法,用于手动展开或关闭行 - 新增
cell-class-name
属性,用于指定单元格的类名 - 新增
cell-style
属性,用于指定单元格的样式 - 新增
header-row-class-name
属性,用于指定表头行的类名 - 新增
header-row-style
属性,用于指定表头行的样式 - 新增
header-cell-class-name
属性,用于指定表头单元格的类名 - 新增
header-cell-style
属性,用于指定表头单元格的样式 - TableColumn 的
prop
属性支持object[key]
格式 - TableColumn 新增
index
属性,用于自定义索引值
- 新增
修复
- Table
- 修复
max-height
变更后无法恢复的问题 - 修复一些样式上的计算错误
- 修复
非兼容性更新
- Autocomplete
- 移除
props
属性,现在使用value-key
属性指定输入建议对象中用于显示的键名
- 移除
- Table
- 将
append
slot 移至tbody
元素以外,以保证其只被渲染一次 expand
事件更名为expand-change
,以保证 API 的命名一致性row-class-name
和row-style
的函数参数改为对象,以保证 API 的一致性
- 将
New features
- Form
- Added
clearValidate
method for clearing validating results for all form items, #7623
- Added
- MessageBox
- Added
inputType
attribute to assign type for the inner input box, #7651
- Added
- Table
- Added
size
attribute - Added
toggleRowExpansion
method to expand or collapse expandable rows programmatically - Added
cell-class-name
attribute to assign class name for cells - Added
cell-style
attribute to style cells - Added
header-row-class-name
attribute to assign class name for header rows - Added
header-row-style
attribute to style header rows - Added
header-cell-class-name
attribute to assign class name for header cells - Added
header-cell-style
attribute to style header cells - TableColumn's
prop
attribute now acceptsobject[key]
notations - Added
index
attribute for TableColumn to customize row indices
- Added
Fixes
- Table
- Fixed a dynamic
max-height
bug - Fixed some style calculation errors
- Fixed a dynamic
Breaking changes
- Autocomplete
- Removed
props
attribute. Now you can usevalue-key
attribute to designate key name of the input suggestion object for display
- Removed
- Table
append
slot is moved outside thetbody
element to avoid multiple renderingexpand
event is renamed toexpand-change
- The params of
row-class-name
androw-style
method is now an object