Skip to content

Commit f66fae4

Browse files
committed
feat: merge master
2 parents b3b4831 + 6d1a385 commit f66fae4

File tree

87 files changed

+1174
-604
lines changed

Some content is hidden

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

87 files changed

+1174
-604
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# These are supported funding model platforms
22

3-
github: [tangjinzhou]
4-
patreon: # Replace with a single Patreon username
3+
github: # [tangjinzhou]
54
open_collective: ant-design-vue
5+
patreon: tangjinzhou
66
ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
custom: # Replace with a single custom sponsorship URL

CHANGELOG.en-US.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,31 @@
1010

1111
---
1212

13+
## 1.3.13
14+
`2019-07-22`
15+
- 🐞 Fix `dist` missing `antd.less` file problem [#995](https://github.com/vueComponent/ant-design-vue/issues/995)
16+
17+
## 1.3.12
18+
`2019-07-22`
19+
- 🐞 `package.json` `files` add `scripts`
20+
21+
## 1.3.11
22+
`2019-07-22`
23+
24+
- Dropdown
25+
- 🐞 Uodate disable style [#912](https://github.com/vueComponent/ant-design-vue/pull/912) [#921](https://github.com/vueComponent/ant-design-vue/pull/921)
26+
- 🐞 Fix `SubMenu` flashing problem [#975](https://github.com/vueComponent/ant-design-vue/issues/970)
27+
- 🌟 `AutoComplete` `Cascader` `DatePicker` `DropDown` `Select` `TimePicker` add an instance of the popup reference `popupRef` [f9373e](https://github.com/vueComponent/ant-design-vue/commit/f9373e44ce229ab0ba94ababbd686e6ad6e9f10f)
28+
- 🐞 Fix `DatePicker` can not open when placeholder is chinese at ie 10 and 11 [#865](https://github.com/vueComponent/ant-design-vue/issues/865)
29+
- 🌟 `DatePicker` add custom render trigger [#957](https://github.com/vueComponent/ant-design-vue/pull/957)
30+
- 🌟 `@ant-design/icons-vue` update to `^2.0.0`
31+
- 🌟 `Icon` add `focusable="false"` [#924](https://github.com/vueComponent/ant-design-vue/issues/924)
32+
- 🐞 Fix custom `Form` prompts for custom components. `warning` problem [#915](https://github.com/vueComponent/ant-design-vue/issues/915)
33+
- 🐞 Fix `FormItem` `v-decorator` error [#930](https://github.com/vueComponent/ant-design-vue/issues/930)
34+
- 🐞 Fixed an issue where the `Upload` component reported an error in `form.resetFields()` [#929](https://github.com/vueComponent/ant-design-vue/pull/929)
35+
- 🐞 Fix `Select` shows bounce problem [#970](https://github.com/vueComponent/ant-design-vue/issues/970)
36+
- 🐞 Fix TypeScript type definitions.
37+
1338
## 1.3.10
1439
`2019-06-11`
1540
- 🐞 Remove useless `module.export` of package. [#850](https://github.com/vueComponent/ant-design-vue/issues/850)
@@ -32,7 +57,7 @@
3257
`2019-04-04`
3358
- 🐞 Fix `Table` unclickable problem under IE [#504](https://github.com/vueComponent/ant-design-vue/issues/504)
3459
- 🐞 Fix `Table` Header is not aligned under Firefox [#579](https://github.com/vueComponent/ant-design-vue/issues/579)
35-
- 🌟 Drawer `Drawer` add custom `handel`
60+
- 🌟 Drawer `Drawer` add custom `handel`
3661
- 🐞 Fix TypeScript type definitions.
3762

3863
## 1.3.7

CHANGELOG.zh-CN.md

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

1111
---
1212

13+
## 1.3.13
14+
`2019-07-22`
15+
- 🐞 修复 dist 缺少 antd.less 文件问题 [#995](https://github.com/vueComponent/ant-design-vue/issues/995)
16+
17+
## 1.3.12
18+
`2019-07-22`
19+
- 🐞 `package.json` `files` 添加 `scripts`
20+
21+
## 1.3.11
22+
`2019-07-22`
23+
24+
- Dropdown
25+
- 🐞修复 `disable` 时的样式问题 [#912](https://github.com/vueComponent/ant-design-vue/pull/912) [#921](https://github.com/vueComponent/ant-design-vue/pull/921)
26+
- 🐞修复 `SubMenu` 闪动问题 [#975](https://github.com/vueComponent/ant-design-vue/issues/970)
27+
- 🌟 `AutoComplete` `Cascader` `DatePicker` `DropDown` `Select` `TimePicker` 添加弹出内容的实例引用 `popupRef` [f9373e](https://github.com/vueComponent/ant-design-vue/commit/f9373e44ce229ab0ba94ababbd686e6ad6e9f10f)
28+
- 🐞 修复 `DatePicker` 在ie 10 11下 placeholder 为中文时不能打开的问题 [#865](https://github.com/vueComponent/ant-design-vue/issues/865)
29+
- 🌟 `DatePicker` 添加自定义渲染触发器功能 [#957](https://github.com/vueComponent/ant-design-vue/pull/957)
30+
- 🌟 `@ant-design/icons-vue` 升级为 `^2.0.0`
31+
- 🌟 `Icon` 添加属性 `focusable="false"` [#924](https://github.com/vueComponent/ant-design-vue/issues/924)
32+
- 🐞 修复自定义 `Form` 校验自定义组件时提示 `warning` 问题 [#915](https://github.com/vueComponent/ant-design-vue/issues/915)
33+
- 🐞 修复 `FormItem` `v-decorator` 指令报错问题 [#930](https://github.com/vueComponent/ant-design-vue/issues/930)
34+
- 🐞 修复 `Upload` 组件在 `form.resetFields()` 时报错问题 [#929](https://github.com/vueComponent/ant-design-vue/pull/929)
35+
- 🐞 修复 `Select` 显示跳动问题 [#970](https://github.com/vueComponent/ant-design-vue/issues/970)
36+
- 🐞 修复 TypeScript 类型定义。
37+
1338
## 1.3.10
1439
`2019-06-11`
1540
- 🐞 移除打包后多余的 `module.export` [#850](https://github.com/vueComponent/ant-design-vue/issues/850)

README-zh_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://vue.ant.design/">
3-
<img width="200" src="https://cdn.nlark.com/yuque/0/2019/png/87084/1550242938266-assets/web-upload/6011a606-2f3e-4a7a-b58d-28116e39de04.png">
3+
<img width="200" src="http://pvrd7go2h.bkt.clouddn.com/logo.png">
44
</a>
55
</p>
66

@@ -91,7 +91,7 @@ ant-design-vue是MIT协议的开源项目。为了项目能够更好的持续的
9191
- [Patreon](https://www.patreon.com/tangjinzhou)
9292
- [opencollective](https://opencollective.com/ant-design-vue)
9393
- [paypal](https://www.paypal.me/tangjinzhou)
94-
- [支付宝或微信](https://cdn.nlark.com/yuque/0/2019/png/87084/1548485701785-assets/web-upload/648ca181-a52f-4382-957c-97c5dbb3e1cc.png)
94+
- [支付宝或微信](http://pvrd7go2h.bkt.clouddn.com/alipay-and-wechat.png)
9595

9696
## Backers
9797

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://vue.ant.design/">
3-
<img width="200" src="https://cdn.nlark.com/yuque/0/2019/png/87084/1550242938266-assets/web-upload/6011a606-2f3e-4a7a-b58d-28116e39de04.png">
3+
<img width="200" src="http://pvrd7go2h.bkt.clouddn.com/logo.png">
44
</a>
55
</p>
66

@@ -86,7 +86,7 @@ ant-design-vue is an MIT-licensed open source project. In order to achieve bette
8686
- [Patreon](https://www.patreon.com/tangjinzhou)
8787
- [opencollective](https://opencollective.com/ant-design-vue)
8888
- [paypal](https://www.paypal.me/tangjinzhou)
89-
- [支付宝或微信](https://cdn.nlark.com/yuque/0/2019/png/87084/1548485701785-assets/web-upload/648ca181-a52f-4382-957c-97c5dbb3e1cc.png)
89+
- [支付宝或微信](http://pvrd7go2h.bkt.clouddn.com/alipay-and-wechat.png)
9090

9191
## Backers
9292

antd-tools/cli/run.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ program.on('--help', () => {
1313

1414
program.parse(process.argv);
1515

16+
function runTask(toRun) {
17+
const metadata = { task: toRun };
18+
// Gulp >= 4.0.0 (doesn't support events)
19+
const taskInstance = gulp.task(toRun);
20+
if (taskInstance === undefined) {
21+
gulp.emit('task_not_found', metadata);
22+
return;
23+
}
24+
const start = process.hrtime();
25+
gulp.emit('task_start', metadata);
26+
try {
27+
taskInstance.apply(gulp);
28+
metadata.hrDuration = process.hrtime(start);
29+
gulp.emit('task_stop', metadata);
30+
gulp.emit('stop');
31+
} catch (err) {
32+
err.hrDuration = process.hrtime(start);
33+
err.task = metadata.task;
34+
gulp.emit('task_err', err);
35+
}
36+
}
37+
1638
const task = program.args[0];
1739

1840
if (!task) {
@@ -22,5 +44,5 @@ if (!task) {
2244

2345
require('../gulpfile');
2446

25-
gulp.start(task);
47+
runTask(task);
2648
}

antd-tools/gulpfile.js

Lines changed: 116 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -204,24 +204,30 @@ function githubRelease(done) {
204204
});
205205
}
206206

207-
gulp.task('tag', done => {
208-
tag();
209-
githubRelease(done);
210-
});
207+
gulp.task(
208+
'tag',
209+
gulp.series(done => {
210+
tag();
211+
githubRelease(done);
212+
}),
213+
);
211214

212-
gulp.task('check-git', done => {
213-
runCmd('git', ['status', '--porcelain'], (code, result) => {
214-
if (/^\?\?/m.test(result)) {
215-
return done(`There are untracked files in the working tree.\n${result}
215+
gulp.task(
216+
'check-git',
217+
gulp.series(done => {
218+
runCmd('git', ['status', '--porcelain'], (code, result) => {
219+
if (/^\?\?/m.test(result)) {
220+
return done(`There are untracked files in the working tree.\n${result}
216221
`);
217-
}
218-
if (/^([ADRM]| [ADRM])/m.test(result)) {
219-
return done(`There are uncommitted changes in the working tree.\n${result}
222+
}
223+
if (/^([ADRM]| [ADRM])/m.test(result)) {
224+
return done(`There are uncommitted changes in the working tree.\n${result}
220225
`);
221-
}
222-
return done();
223-
});
224-
});
226+
}
227+
return done();
228+
});
229+
}),
230+
);
225231

226232
function publish(tagString, done) {
227233
let args = ['publish', '--with-antd-tools'];
@@ -265,86 +271,104 @@ function pub(done) {
265271
});
266272
}
267273

268-
gulp.task('dist', ['compile'], done => {
269-
dist(done);
270-
});
271-
gulp.task('compile', ['compile-with-es'], done => {
272-
compile().on('finish', function() {
273-
done();
274-
});
275-
});
276-
gulp.task('compile-with-es', done => {
277-
compile(false).on('finish', function() {
278-
done();
279-
});
280-
});
281-
282-
gulp.task('pub', ['check-git', 'compile'], done => {
283-
if (!process.env.GITHUB_TOKEN) {
284-
console.log('no GitHub token found, skip');
285-
} else {
286-
pub(done);
287-
}
288-
});
289-
290-
gulp.task('pub-with-ci', done => {
291-
if (!process.env.NPM_TOKEN) {
292-
console.log('no NPM token found, skip');
293-
} else {
294-
const github = new GitHub();
295-
github.authenticate({
296-
type: 'oauth',
297-
token: process.env.GITHUB_TOKEN,
298-
});
299-
const [_, owner, repo] = execSync('git remote get-url origin') // eslint-disable-line
300-
.toString()
301-
.match(/github.com[:/](.+)\/(.+)\.git/);
302-
const getLatestRelease = github.repos.getLatestRelease({
303-
owner,
304-
repo,
305-
});
306-
const getCommits = github.repos.getCommits({
307-
owner,
308-
repo,
309-
per_page: 1,
274+
gulp.task(
275+
'compile-with-es',
276+
gulp.series(done => {
277+
compile(false).on('finish', function() {
278+
done();
310279
});
311-
Promise.all([getLatestRelease, getCommits]).then(([latestRelease, commits]) => {
312-
const preVersion = latestRelease.data.tag_name;
313-
const { version } = packageJson;
314-
const [_, newVersion] = commits.data[0].commit.message.trim().match(/bump (.+)/) || []; // eslint-disable-line
315-
if (
316-
compareVersions(version, preVersion) === 1 &&
317-
newVersion &&
318-
newVersion.trim() === version
319-
) {
320-
gulp.run('pub', err => {
321-
err && console.log('err', err);
322-
done();
323-
});
324-
} else {
325-
console.log('donot need publish' + version);
326-
}
280+
}),
281+
);
282+
283+
gulp.task(
284+
'compile',
285+
gulp.series('compile-with-es', done => {
286+
compile().on('finish', function() {
287+
done();
327288
});
328-
}
329-
});
289+
}),
290+
);
330291

331-
function reportError() {
332-
console.log(chalk.bgRed('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'));
333-
console.log(chalk.bgRed('!! `npm publish` is forbidden for this package. !!'));
334-
console.log(chalk.bgRed('!! Use `npm run pub` instead. !!'));
335-
console.log(chalk.bgRed('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'));
336-
}
292+
gulp.task(
293+
'dist',
294+
gulp.series('compile', done => {
295+
dist(done);
296+
}),
297+
);
298+
299+
gulp.task(
300+
'pub',
301+
gulp.series('check-git', 'compile', done => {
302+
if (!process.env.GITHUB_TOKEN) {
303+
console.log('no GitHub token found, skip');
304+
} else {
305+
pub(done);
306+
}
307+
}),
308+
);
309+
310+
gulp.task(
311+
'pub-with-ci',
312+
gulp.series(done => {
313+
if (!process.env.NPM_TOKEN) {
314+
console.log('no NPM token found, skip');
315+
} else {
316+
const github = new GitHub();
317+
github.authenticate({
318+
type: 'oauth',
319+
token: process.env.GITHUB_TOKEN,
320+
});
321+
const [_, owner, repo] = execSync('git remote get-url origin') // eslint-disable-line
322+
.toString()
323+
.match(/github.com[:/](.+)\/(.+)\.git/);
324+
const getLatestRelease = github.repos.getLatestRelease({
325+
owner,
326+
repo,
327+
});
328+
const listCommits = github.repos.listCommits({
329+
owner,
330+
repo,
331+
per_page: 1,
332+
});
333+
Promise.all([getLatestRelease, listCommits]).then(([latestRelease, commits]) => {
334+
const preVersion = latestRelease.data.tag_name;
335+
const { version } = packageJson;
336+
const [_, newVersion] = commits.data[0].commit.message.trim().match(/bump (.+)/) || []; // eslint-disable-line
337+
if (
338+
compareVersions(version, preVersion) === 1 &&
339+
newVersion &&
340+
newVersion.trim() === version
341+
) {
342+
runCmd('npm', ['pub'], code => {
343+
done();
344+
});
345+
} else {
346+
console.log('donot need publish' + version);
347+
}
348+
});
349+
}
350+
}),
351+
);
337352

338-
gulp.task('guard', done => {
339-
const npmArgs = getNpmArgs();
340-
if (npmArgs) {
341-
for (let arg = npmArgs.shift(); arg; arg = npmArgs.shift()) {
342-
if (/^pu(b(l(i(sh?)?)?)?)?$/.test(arg) && npmArgs.indexOf('--with-antd-tools') < 0) {
343-
reportError();
344-
done(1);
345-
return;
353+
gulp.task(
354+
'guard',
355+
gulp.series(done => {
356+
function reportError() {
357+
console.log(chalk.bgRed('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'));
358+
console.log(chalk.bgRed('!! `npm publish` is forbidden for this package. !!'));
359+
console.log(chalk.bgRed('!! Use `npm run pub` instead. !!'));
360+
console.log(chalk.bgRed('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'));
361+
}
362+
const npmArgs = getNpmArgs();
363+
if (npmArgs) {
364+
for (let arg = npmArgs.shift(); arg; arg = npmArgs.shift()) {
365+
if (/^pu(b(l(i(sh?)?)?)?)?$/.test(arg) && npmArgs.indexOf('--with-antd-tools') < 0) {
366+
reportError();
367+
done(1);
368+
return;
369+
}
346370
}
347371
}
348-
}
349-
done();
350-
});
372+
done();
373+
}),
374+
);

0 commit comments

Comments
 (0)