File tree Expand file tree Collapse file tree 6 files changed +38
-7
lines changed Expand file tree Collapse file tree 6 files changed +38
-7
lines changed Original file line number Diff line number Diff line change 11# 更新日志
22
33---
4+ ## 1.2.0
5+ ` 2018-12-16 `
6+ ### 与antd 3.10.x同步
7+
8+ - 🔥🔥🔥 使用了 svg 图标替换了原先的 font 图标,从而带来了以下优势:
9+ 可以离线化使用,不需要从支付宝 cdn 下载字体文件,图标不会因为网络问题呈现方块,也无需字体文件本地部署。
10+ 在低端设备上 svg 有更好的清晰度。
11+ 支持多色图标。
12+ 对于内建图标的更换可以提供更多 API,而不需要进行样式覆盖。
13+ - 🌟 新增 ` theme ` 属性,可以设置图标的主题风格。
14+ - 🌟 新增 ` component ` 属性,可以外部传入一个组件来自定义控制渲染结果。
15+ - 🌟 新增 ` twoToneColor ` 属性,可以控制双色图标的主题色。
16+ - 🌟 新增静态方法 ` Icon.getTowToneColor() ` 和 ` Icon.setTwoToneColor(...) ` ,可以全局性的获取和设置所有双色图标的主题色。
17+ - 🌟 新增静态方法 ` Icon.createFromIconfontCN({...}) ` ,可以更加方便地使用 [ ` iconfont.cn ` ] ( http://iconfont.cn/ ) 上托管的图标。
18+ - 🔥 增加了一个新组件` Skeleton `
19+ - 🔥 Menu 在 ` horizontal ` 模式下会自动收起来适应宽度。
20+ - 🔥 Drawer 的 ` placement ` 支持 ` top ` 和 ` bottom ` ,可以适应更多场景。
21+ - 🌟 以下组件均新增了 ` suffixIcon ` 属性,用于设置输入框后面的图标,具体用法可以参考文档。
22+ - Cascader
23+ - DatePicker
24+ - Select
25+ - TreeSelect
26+ - TimePicker
27+ - 🌟 新增 Modal.open 方法,用于可自定义图标的快捷对话框。
28+ - 🌟 Modal.info 增加 ` getContainer ` 的配置。
29+ - 🌟 合并优化了 RangePicker 的日历页脚 UI。
30+ - 🌟 Anchor 组件增加 ` click ` 事件。
31+ - 🌟 Tab 组件增加 ` renderTabBar ` 属性。
32+ - 🌟 Input 组件增加 ` select ` 方法。
33+ - 🌟 Steps 增加 ` initial ` 属性。
34+ - 🌟 Upload 组件新增 ` openFileDialogOnClick ` 属性,用于设置点击组件时是否打开上传对话框。
35+ - 🌟 InputNumber 组件新增 ` decimalSeparator ` 属性,用于设置自定义的小数点。
36+ - 🐞 修复众多隐蔽暂未提issue的bug,再此不在一一列出
437
538## 1.1.10
639
Original file line number Diff line number Diff line change 2929| focus | Called when entering the component | function() |
3030| search | Called when searching items. | function(value) | - |
3131| select | Called when a option is selected. param is option's value and option instance. | function(value, option) |
32- | dropdown-visible-change | Call when dropdown open | function(open) |
32+ | dropdownVisibleChange | Call when dropdown open | function(open) |
3333
3434## Methods
3535
Original file line number Diff line number Diff line change @@ -75,9 +75,6 @@ const AutoComplete = {
7575 this . $refs . select . blur ( )
7676 }
7777 } ,
78- onDropdownVisibleChange ( ) {
79- this . $emit ( 'dropdown-visible-change' , ...arguments )
80- } ,
8178 } ,
8279
8380 render ( ) {
@@ -125,7 +122,7 @@ const AutoComplete = {
125122 } ,
126123 class : cls ,
127124 ref : 'select' ,
128- on : { ... $listeners , 'dropdownVisibleChange' : this . onDropdownVisibleChange } ,
125+ on : $listeners ,
129126 }
130127 return (
131128 < Select
Original file line number Diff line number Diff line change 2929| focus | 获得焦点时的回调 | function() |
3030| search | 搜索补全项的时候调用 | function(value) |
3131| select | 被选中时调用,参数为选中项的 value 值 | function(value, option) |
32- | dropdown-visible-change | 展开下拉菜单的回调 | function(open) |
32+ | dropdownVisibleChange | 展开下拉菜单的回调 | function(open) |
3333
3434## 方法
3535
Original file line number Diff line number Diff line change 3030| treeNodeFilterProp | Will be used for filtering if ` filterTreeNode ` returns true | string | 'value' |
3131| treeNodeLabelProp | Will render as content of select | string | 'title' |
3232| value(v-model) | To set the current selected treeNode(s). | string\| string\[ ] | - |
33-
33+ | suffixIcon | The custom suffix icon | VNode \| slot | - |
3434
3535### Events
3636| Events Name | Description | Arguments |
Original file line number Diff line number Diff line change 3030| treeNodeFilterProp | 输入项过滤对应的 treeNode 属性 | string | 'value' |
3131| treeNodeLabelProp | 作为显示的 prop 设置 | string | 'title' |
3232| value(v-model) | 指定当前选中的条目 | string/string\[ ] | - |
33+ | suffixIcon | 自定义的选择框后缀图标 | VNode \| slot | - |
3334
3435### 事件
3536
You can’t perform that action at this time.
0 commit comments