Skip to content

Commit 6799f17

Browse files
committed
Merge branch 'master' into feat-1.3.0
2 parents c4f08e4 + 15d42de commit 6799f17

File tree

97 files changed

+6549
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+6549
-10
lines changed

CHANGELOG.en-US.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
---
44

5+
## 1.2.4
6+
`2018-12-29`
7+
8+
- 🐞 Fix `Select` component does not trigger `popupScroll` event[#350](https://github.com/vueComponent/ant-design-vue/issues/350)
9+
- 🐞 Fixing the custom `Icon` component does not support `class` `style` issues.[#351](https://github.com/vueComponent/ant-design-vue/issues/351)
10+
- 🌟 `Tree` `TreeSelect` supports `key` of `number` type. [#343](https://github.com/vueComponent/ant-design-vue/issues/343)
11+
- 🌟 `Tree` components `selectedKeys`, `expandedKeys` support the `.sync` modifier.[6373ce](https://github.com/vueComponent/ant-design-vue/commit/6373ce8e92a979abb1f5dc94fa9697ee64b08dc2)
12+
- `TreeSelect`
13+
- 🌟 `treeExpandedKeys` supports the `.sync` modifier.[983318](https://github.com/vueComponent/ant-design-vue/commit/983318b985ad727c008232c75a8598d52d0f924b)
14+
- 🐞 Fix page scrolling issue when the first `focus`.[139356](https://github.com/vueComponent/ant-design-vue/commit/1393563c9b7f8cb7d7ddc0409aa5422c53fca60b)
15+
- 🐞 Remove the expansion animation when the `Menu` component is initialized.[#338](https://github.com/vueComponent/ant-design-vue/issues/338)
16+
517
## 1.2.3
618
`2018-12-25`
719

CHANGELOG.zh-CN.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
---
44

5+
## 1.2.4
6+
`2018-12-29`
7+
8+
- 🐞 修复`Select`组件没有触发`popupScroll`事件问题[#350](https://github.com/vueComponent/ant-design-vue/issues/350)
9+
- 🐞 修复自定义`Icon`组件不支持`class` `style`问题。[#351](https://github.com/vueComponent/ant-design-vue/issues/351)
10+
- 🌟 `Tree` `TreeSelect` 支持`number`类型的`key`[#343](https://github.com/vueComponent/ant-design-vue/issues/343)
11+
- 🌟 `Tree`组件`selectedKeys``expandedKeys`支持`.sync`修饰符。[6373ce](https://github.com/vueComponent/ant-design-vue/commit/6373ce8e92a979abb1f5dc94fa9697ee64b08dc2)
12+
- `TreeSelect`
13+
- 🌟 `treeExpandedKeys`支持`.sync`修饰符。[983318](https://github.com/vueComponent/ant-design-vue/commit/983318b985ad727c008232c75a8598d52d0f924b)
14+
- 🐞 修复第一次`focus`时触发页面滚动问题。[139356](https://github.com/vueComponent/ant-design-vue/commit/1393563c9b7f8cb7d7ddc0409aa5422c53fca60b)
15+
- 🐞 移除`Menu`组件初始化时的展开动画。[#338](https://github.com/vueComponent/ant-design-vue/issues/338)
16+
517
## 1.2.3
618
`2018-12-25`
719

components/date-picker/index.en-US.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker, WeekPicke
108108

109109
| Property | Description | Type | Default |
110110
| -------- | ----------- | ---- | ------- |
111-
| defaultValue | to set default date | \[[moment](http://momentjs.com/), [moment](http://momentjs.com/)] | - |
112-
| defaultPickerValue | to set default picker date | [moment](http://momentjs.com/) | - |
111+
| defaultValue | to set default date | [moment](http://momentjs.com/)\[] | - |
112+
| defaultPickerValue | to set default picker date | [moment](http://momentjs.com/)\[] | - |
113113
| disabledTime | to specify the time that cannot be selected | function(dates: [moment, moment], partial: `'start'|'end'`) | - |
114114
| format | to set the date format | string | "YYYY-MM-DD HH:mm:ss" |
115115
| ranges | preseted ranges for quick selection | { \[range: string]: [moment](http://momentjs.com/)\[] } \| { \[range: string]: () => [moment](http://momentjs.com/)\[] } | - |

components/date-picker/index.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ moment.locale('zh-cn');
111111
| 参数 | 说明 | 类型 | 默认值 |
112112
| --- | --- | --- | --- |
113113
| defaultValue | 默认日期 | [moment](http://momentjs.com/)\[] ||
114-
| defaultPickerValue | 默认面板日期 | [moment](http://momentjs.com/) ||
114+
| defaultPickerValue | 默认面板日期 | [moment](http://momentjs.com/)\[] ||
115115
| disabledTime | 不可选择的时间 | function(dates: [moment, moment], partial: `'start'|'end'`) ||
116116
| format | 展示的日期格式 | string | "YYYY-MM-DD HH:mm:ss" |
117117
| ranges       | 预设时间范围快捷选择 | { \[range: string]: [moment](http://momentjs.com/)\[] } \| { \[range: string]: () => [moment](http://momentjs.com/)\[] } ||

components/drawer/index.en-US.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
| Property | Description | Type | Default |
44
| -------- | ----------- | ---- | ------- |
5-
| Props | Description | Type | Default |
65
| --- | --- | --- | --- |
76
| closable | Whether a close (x) button is visible on top right of the Drawer dialog or not. | boolean | true |
87
| destroyOnClose | Whether to unmount child components on closing drawer or not. | boolean | false |

components/icon/IconFont.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ export default function create (options) {
2626
const Iconfont = {
2727
functional: true,
2828
name: 'AIconfont',
29+
props: Icon.props,
2930
render (h, context) {
30-
const { props, slots, listeners } = context
31+
const { props, slots, listeners, data } = context
3132
const { type, ...restProps } = props
3233
const slotsMap = slots()
3334
const children = slotsMap.default
@@ -40,9 +41,7 @@ export default function create (options) {
4041
content = children
4142
}
4243
return (
43-
<Icon
44-
{...{ props: restProps, on: listeners }}
45-
>
44+
<Icon {...{ ...data, props: restProps, on: listeners }}>
4645
{content}
4746
</Icon>
4847

components/vc-menu/Menu.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const Menu = {
165165
},
166166
class: `${props.prefixCls}-root`,
167167
on: {
168+
...this.$listeners,
168169
click: this.onClick,
169170
openChange: this.onOpenChange,
170171
deselect: this.onDeselect,

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ant-design-vue",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"title": "Ant Design Vue",
55
"description": "An enterprise-class UI design language and Vue-based implementation",
66
"keywords": [
@@ -16,6 +16,7 @@
1616
"frontend"
1717
],
1818
"main": "dist/antd.min.js",
19+
"typings": "types/index.d.ts",
1920
"files": [
2021
"dist",
2122
"lib",
@@ -183,4 +184,4 @@
183184
"vue-ref": "^1.0.3",
184185
"warning": "^3.0.0"
185186
}
186-
}
187+
}

types/affix.d.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Project: https://github.com/vueComponent/ant-design-vue
2+
// Definitions by: akki-jat <https://github.com/akki-jat>
3+
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4+
5+
import { AntdComponent } from './component';
6+
7+
export declare class Affix extends AntdComponent {
8+
/**
9+
* Pixels to offset from top when calculating position of scroll
10+
* @default 0
11+
* @type number
12+
*/
13+
offsetTop: number;
14+
15+
/**
16+
* Pixels to offset from bottom when calculating position of scroll
17+
* @type number
18+
*/
19+
offsetBottom: number;
20+
21+
/**
22+
* specifies the scrollable area dom node
23+
* @default () => window
24+
* @type Function
25+
*/
26+
target: () => HTMLElement;
27+
}

types/alert.d.ts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Project: https://github.com/vueComponent/ant-design-vue
2+
// Definitions by: akki-jat <https://github.com/akki-jat>
3+
// Definitions: https://github.com/vueComponent/ant-design-vue/types
4+
5+
import { AntdComponent } from './component';
6+
7+
export declare class Alert extends AntdComponent {
8+
/**
9+
* Called when close animation is finished
10+
* @type Function
11+
*/
12+
afterClose: () => void;
13+
14+
/**
15+
* Whether to show as banner
16+
* @default false
17+
* @type boolean
18+
*/
19+
banner: boolean;
20+
21+
/**
22+
* Whether Alert can be closed
23+
* @type boolean
24+
*/
25+
closable: boolean;
26+
27+
/**
28+
* Close text to show
29+
* @type any (string | slot)
30+
*/
31+
closeText: any;
32+
33+
/**
34+
* additional content of Alert
35+
* @type any (string | slot)
36+
*/
37+
description: any;
38+
39+
/**
40+
* Custom icon, effective when showIcon is true
41+
* @type any (VNode | slot)
42+
*/
43+
icon: any;
44+
45+
/**
46+
* Content of Alert
47+
* @type any (string | slot)
48+
*/
49+
message: any;
50+
51+
/**
52+
* Whether to show icon
53+
* @default false, in banner mode default is true
54+
* @type boolean
55+
*/
56+
showIcon: boolean;
57+
58+
/**
59+
* Type of Alert styles, options: success, info, warning, error
60+
* @default info, in banner mode default is warning
61+
* @type string
62+
*/
63+
type: "success" | "info" | "warning" | "error";
64+
}

0 commit comments

Comments
 (0)