Skip to content

Commit adbd82b

Browse files
committed
Merge branch 'master' into feat-1.4.0
# Conflicts: # components/table/interface.js # components/vc-upload/demo/simple.jsx
2 parents 76d8491 + d0cf9fd commit adbd82b

35 files changed

+139
-60
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ es/
77
lib/
88
_site/
99
dist/
10+
package.json

.github/FUNDING.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# These are supported funding model platforms
2+
3+
github: [tangjinzhou]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: ant-design-vue
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
custom: # Replace with a single custom sponsorship URL

CHANGELOG.en-US.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@
1010

1111
---
1212

13+
## 1.3.10
14+
`2019-06-11`
15+
- 🐞 Remove useless `module.export` of package. [#850](https://github.com/vueComponent/ant-design-vue/issues/850)
16+
17+
## 1.3.9
18+
`2019-05-26`
19+
- 🐞 Fix `TreeSelect` without `dataRef` [#712](https://github.com/vueComponent/ant-design-vue/issues/712)
20+
- 🌟 `Tooltip` add `destroyTooltipOnHide` to identify whether to destroy tooltip after hiding [#727](https://github.com/vueComponent/ant-design-vue/issues/727)
21+
- 🐞 Fix `Avatar` does not update the problem when setting `src` dynamically [#731](https://github.com/vueComponent/ant-design-vue/issues/731)
22+
- 🐞 Fix `LocaleProvider` change `moment` language does not work [28b7a6](https://github.com/vueComponent/ant-design-vue/commit/28b7a68dc48a0a994e98063d462b99380e3ee547)
23+
- 🌟 `Modal.confirm` add `closable` configuration [#798](https://github.com/vueComponent/ant-design-vue/pull/798)
24+
- 🐞 Fixed a problem when `Select` custom `dropdownRender` was not automatically closed [#644](https://github.com/vueComponent/ant-design-vue/issues/644)
25+
- 🐞 Fix the problem of removing Dom error under ie9, no need to introduce polyfill separately [#705](https://github.com/vueComponent/ant-design-vue/issues/705)
26+
- 🐞 Fix `Input.Search` repeat mount id problem [#726](https://github.com/vueComponent/ant-design-vue/issues/726)
27+
- 🐞 Fix `Table` does not work when customizing expandIcon using function form [#751](https://github.com/vueComponent/ant-design-vue/issues/751)
28+
- 🐞 Fix `Icon` `extraCommonProps` property does not work [#737](https://github.com/vueComponent/ant-design-vue/issues/737)
29+
- 🐞 Fix `DirectoryTree` expandAction="doubleclick" does not work [#745](https://github.com/vueComponent/ant-design-vue/issues/745)
30+
1331
## 1.3.8
1432
`2019-04-04`
1533
- 🐞 Fix `Table` unclickable problem under IE [#504](https://github.com/vueComponent/ant-design-vue/issues/504)

CHANGELOG.zh-CN.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@
1010

1111
---
1212

13+
## 1.3.10
14+
`2019-06-11`
15+
- 🐞 移除打包后多余的 `module.export` [#850](https://github.com/vueComponent/ant-design-vue/issues/850)
16+
17+
## 1.3.9
18+
`2019-05-26`
19+
- 🐞 修复 `TreeSelect` 没有 `dataRef` 的问题 [#712](https://github.com/vueComponent/ant-design-vue/issues/712)
20+
- 🌟 `Tooltip` 添加 `destroyTooltipOnHide` 用于标识隐藏后是否销毁tooltip [#727](https://github.com/vueComponent/ant-design-vue/issues/727)
21+
- 🐞 修复 `Avatar` 动态设置 src 时不更新问题 [#731](https://github.com/vueComponent/ant-design-vue/issues/731)
22+
- 🐞 修复 `LocaleProvider` 更改 `moment` 语言不生效问题 [28b7a6](https://github.com/vueComponent/ant-design-vue/commit/28b7a68dc48a0a994e98063d462b99380e3ee547)
23+
- 🌟 `Modal.confirm` 新增 `closable` 配置 [#798](https://github.com/vueComponent/ant-design-vue/pull/798)
24+
- 🐞 修复 `Select` 自定义 `dropdownRender` 时,没能自动关闭的问题 [#644](https://github.com/vueComponent/ant-design-vue/issues/644)
25+
- 🐞 修复在 ie9 下移除 Dom 报错问题,无需单独引入 polyfill [#705](https://github.com/vueComponent/ant-design-vue/issues/705)
26+
- 🐞 修复 `Input.Search` 重复挂载 id 问题 [#726](https://github.com/vueComponent/ant-design-vue/issues/726)
27+
- 🐞 修复 `Table` 使用函数形式自定义 expandIcon 时不生效问题 [#751](https://github.com/vueComponent/ant-design-vue/issues/751)
28+
- 🐞 修复 `Icon` extraCommonProps 属性不生效问题 [#737](https://github.com/vueComponent/ant-design-vue/issues/737)
29+
- 🐞 修复 `DirectoryTree` expandAction="doubleclick" 不生效问题 [#745](https://github.com/vueComponent/ant-design-vue/issues/745)
30+
1331
## 1.3.8
1432
`2019-04-04`
1533
- 🐞 修复 `Table` 在 IE 下不可点击问题 [#504](https://github.com/vueComponent/ant-design-vue/issues/504)

antd-tools/gulpfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ function babelify(js, modules) {
7474
delete babelConfig.cacheDirectory;
7575
if (modules === false) {
7676
babelConfig.plugins.push(replaceLib);
77-
} else {
78-
babelConfig.plugins.push(require.resolve('babel-plugin-add-module-exports'));
7977
}
8078
let stream = js.pipe(babel(babelConfig)).pipe(
8179
through2.obj(function z(file, encoding, next) {

antd-tools/postcssConfig.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,5 @@ const rucksack = require('rucksack-css');
22
const autoprefixer = require('autoprefixer');
33

44
module.exports = {
5-
plugins: [
6-
rucksack(),
7-
autoprefixer({
8-
browsers: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 9', 'iOS >= 8', 'Android >= 4'],
9-
}),
10-
],
5+
plugins: [rucksack(), autoprefixer()],
116
};

components/form/demo/dynamic-form-item.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Add or remove form items dynamically.
2626
`names[${k}]`,
2727
{
2828
validateTrigger: ['change', 'blur'],
29-
preserve: true,
3029
rules: [{
3130
required: true,
3231
whitespace: true,

components/form/index.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ validateFields(['field1', 'field2'], options, (errors, values) => {
151151
| --- | --- | --- | --- |
152152
| id | 必填输入控件唯一标志。支持嵌套式的写法。 | string | |
153153
| options.getValueFromEvent | 可以把 onChange 的参数(如 event)转化为控件的值 | function(..args) | [reference](https://github.com/react-component/form#option-object) |
154-
| options.initialValue | 子节点的初始值,类型、可选值均由子节点决定(注意:由于内部校验时使用 `===` 判断是否变化,建议使用变量缓存所需设置的值而非直接使用字面量)) | | |
154+
| options.initialValue | 子节点的初始值,类型、可选值均由子节点决定(注意:由于内部校验时使用 `===` 判断是否变化,建议使用变量缓存所需设置的值而非直接使用字面量) | | |
155155
| options.normalize | 转换默认的 value 给控件,[一个选择全部的例子](https://codesandbox.io/s/kw4l2vqqmv) | function(value, prevValue, allValues): any | - |
156156
| options.preserve | 即便字段不再使用,也保留该字段的值 | boolean | false |
157157
| options.rules | 校验规则,参考下方文档 | object\[] | |

components/icon/IconFont.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import Icon from './index';
2+
import { mergeProps } from '../_util/props-util';
23

34
const customCache = new Set();
45

56
export default function create(options) {
6-
const { scriptUrl } = options;
7+
const { scriptUrl, extraCommonProps = {} } = options;
78

89
/**
910
* DOM API required.
@@ -43,7 +44,8 @@ export default function create(options) {
4344
if (children) {
4445
content = children;
4546
}
46-
return <Icon {...{ ...data, props: restProps, on: listeners }}>{content}</Icon>;
47+
const iconProps = mergeProps(extraCommonProps, data, { props: restProps, on: listeners });
48+
return <Icon {...iconProps}>{content}</Icon>;
4749
},
4850
};
4951
return Iconfont;

components/icon/index.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The following options are available:
7373
| Property | Description | Type | Default |
7474
| --- | --- | --- | --- |
7575
| scriptUrl | The URL generated by [iconfont.cn](http://iconfont.cn/) project. | string | - |
76-
| extraCommonProps | Define extra properties to the component | `{ [key: string]: any }` | {} |
76+
| extraCommonProps | Define extra properties to the component | `{ class, attrs, props, on, style }` | {} |
7777

7878
The property `scriptUrl` should be set to import the SVG sprite symbols.
7979

0 commit comments

Comments
 (0)