mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
Page:
ChangeLog 2.0.0 alpha.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
Clone
Table of Contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
新特性
- 综合
- 新增
theme-chalk主题 - 增强以下组件的可访问性:Alert、AutoComplete、Breadcrumb、Button、Checkbox、Collapse、Input、InputNumber、Menu、Progress、Radio、Rate、Slider、Switch 和 Upload
- 新增布局组件 Container、Header、Aside、Main 和 Footer
- 新增
- Button
- 新增
round属性,用于圆角按钮 #6643
- 新增
- TimeSelect
- 可以用
Up、Down导航,用Enter选中时间 #6023
- 可以用
- TimePicker
- Tree
- Tag
- 新增
size属性 #7203
- 新增
- Datepicker
- MessageBox
- Dialog
- ColorPicker
- Message
- Notification
- Rate
- 新增
show-score属性,控制是否在右侧显示当前分数 #6295
- 新增
- Tabs
- 新增
tab-position属性,控制选项面板内容显示的上、下、左、右四个方向 #6096
- 新增
- Radio
- 增加
border属性和size属性 #6690
- 增加
- Checkbox
- 增加
border属性和size属性 #6690
- 增加
- Alert
- 新增
center属性,提供居中布局 #6876
- 新增
- Menu
- 新增
background-color、text-color和active-text-color属性,分别用于设置菜单的背景色、菜单的文字颜色和当前激活菜单的文字颜色 #7064
- 新增
- Form
- Input
- 新增
suffix、prefix的 slot,以及suffixIcon、prefixIcon属性,用于给输入框内部增加前置和后置内容 #7032
- 新增
- Breadcrumb
- 新增
separator-class属性,可使用图标作为分隔符 #7203
- 新增
- Steps
- 新增
simple属性,用于开启简洁风格的步骤条 #7274
- 新增
- Pagination
- 新增
prev-text和next-text属性,用于自定义上一页和下一页的文本 #7005
- 新增
修复
- DatePicker
- DateTimePicker
- TimePicker
- 失去焦点时无法正确改变
v-model值的问题 #6023
- 失去焦点时无法正确改变
- Dialog
- 当含有下拉框时,下拉框的打开和关闭会造成文字虚晃的问题 #6088
- Select
- 提升性能,修复组件销毁时可能导致 Vue dev-tool 卡死的问题 #6151
非兼容性更新
- 综合
- 移除
theme-default - 表单组件的
change事件和 Pagination 的current-change事件现在仅响应用户交互 - Button 和表单组件的
size属性不再接受large值,可接受medium、small和mini - 为了方便使用第三方图标,Button 的
icon属性、Input 的prefix-icon和suffix-icon属性、Steps 的icon属性现在需要传入完整的图标类名
- 移除
- Dialog
- 移除
size属性。现在 Dialog 的尺寸由width和fullscreen控制 - 移除通过
v-model控制 Dialog 显示和隐藏的功能
- 移除
- Rate
text-template属性更名为score-template
- Dropdown
menu-align属性变更为placement,增加更多方位属性
- Transfer
footer-format属性更名为format
- Switch
on-text和off-text属性不再有默认值
- Tag
type属性现在支持success、info、warning和danger四个值
- Menu
- 移除
theme属性。现在通过background-color、text-color和active-text-color属性进行颜色的自定义
- 移除
- Input
- 移除
icon属性。现在通过suffix-icon属性或者suffix具名 slot 来加入尾部图标 - 移除
on-icon-click属性和click事件。现在如果需要为输入框中的图标添加点击事件,请以具名 slot 的方式添加图标
- 移除
- Autocomplete
- 移除
custom-item属性。现在通过scoped slot自定义输入建议列表项的内容
- 移除
- Table
- 移除通过
inline-template自定义列模板的功能
- 移除通过
- Steps
- 移除
center属性 - 现在步骤条将默认充满父容器
- 移除
* 在网站上动态渲染任意 HTML 是非常危险的,因为容易导致 XSS 攻击。因此请在 dangerouslyUseHTMLString 打开的情况下,确保 message 的内容是可信的,永远不要将用户提交的内容赋值给 message 属性。
New features
- General
- A new theme:
theme-chalk - Accessibility of the following components are improved: Alert, AutoComplete, Breadcrumb, Button, Checkbox, Collapse, Input, InputNumber, Menu, Progress, Radio, Rate, Slider, Switch, Upload
- Layout components: Container, Header, Aside, Main, Footer
- A new theme:
- Button
- Added
roundattribute. It's used for round-cornered Buttons #6643
- Added
- TimeSelect
- Now can be navigated by
UpandDown, and hittingEnterselects the time #6023
- Now can be navigated by
- TimePicker
- Tree
- Tag
- Added
sizeattribute #7203
- Added
- Datepicker
- MessageBox
- Dialog
- ColorPicker
- Message
- Notification
- Rate
- Added
show-scoreattribute to determine if current score is displayed #6295
- Added
- Tabs
- Added
tab-positionattribute #6096
- Added
- Radio
- Checkbox
- Added
borderandsizeattributes #6690
- Added
- Alert
- Added
centerattribute so that the content can be centered #6876
- Added
- Menu
- Added
background-color,text-colorandactive-text-colorattributes #7064
- Added
- Form
- Input
- Added
suffixandprefixnamed slots,suffixIconandprefixIconattributes to add contents inside the input box #7032
- Added
- Breadcrumb
- Added
separator-classattribute to support icons as item separators #7203
- Added
- Steps
- Added
simpleattribute to activate simple-styled Steps #7274
- Added
- Pagination
- Added
prev-textandnext-textattributes to customize texts of previous page and next page #7005
- Added
Bug fixes
- DatePicker
- DateTimePicker
- TimePicker
- Fixed
v-modelnot update correctly when blurred #6023
- Fixed
- Dialog
- Fixed texts having blurry edges when opening and closing nesting dropdowns #6088
- Select
- Improved performance. Now Vue dev-tool won't crash when a large number of Selects are destroyed #6151
Breaking changes
- General
- Removed
theme-default changeevent of form components andcurrent-changeevent of Pagination now only trigger on user interactionsizeattribute of Button and form components can no longer be set tolarge. Now they acceptmedium,smallandmini- To facilitate the use of third-party icons,
iconattribute of Button and Steps,prefix-iconandsuffix-iconattributes of Input now require a full class name
- Removed
- Dialog
- Removed
sizeattribute. Now the size of Dialog can be configured bywidthandfullscreen - Now the visibility of Dialog cannot be controlled by
v-model
- Removed
- Rate
text-templateis renamed toscore-template
- Dropdown
menu-alignis renamed toplacement. Now it supports more positions
- Transfer
footer-formatis renamed toformat
- Switch
on-textandoff-textattributes now don't have default values
- Tag
typeattribute now acceptssuccess,info,warninganddanger
- Menu
- Removed
themeattribute. The color of Menu can be configured usingbackground-color,text-colorandactive-text-color
- Removed
- Input
- Removed
iconattribute. Now the suffix icon can be configured usingsuffix-iconattribute orsuffixnamed slot - Removed
on-icon-clickattribute andclickevent. Now to add click handler on icons, please use named slots
- Removed
- Autocomplete
- Removed
custom-itemattribute. Now the template of input suggestions can be customized usingscoped slot
- Removed
- Table
- Removed support for customizing column template using
inline-template
- Removed support for customizing column template using
- Steps
- Removed
centerattribute - Now the Steps will fill its parent container by default
- Removed
* Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to XSS attacks. So when dangerouslyUseHTMLString is on, please make sure the content of message is trusted, and never assign message to user-provided content.