Skip to content

Commit f1ac30b

Browse files
committed
Merge remote-tracking branch 'yuanlai/master' into upgrade-webpack5
2 parents c88ecff + 81eb401 commit f1ac30b

File tree

23 files changed

+1422
-1438
lines changed

23 files changed

+1422
-1438
lines changed

.eslintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
},
1313
"extends": ["plugin:vue/recommended", "prettier"],
1414
"plugins": ["markdown"],
15+
"overrides": [
16+
{
17+
"files": ["**/demo/**"],
18+
"rules": {
19+
"no-console": "off"
20+
}
21+
}
22+
],
1523
"rules": {
1624
"comma-dangle": [2, "always-multiline"],
1725
"no-var": "error",

CHANGELOG.en-US.md

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

1111
---
1212

13+
## 1.5.2
14+
15+
`2020-04-09`
16+
17+
- 🐞 Fix ts type of `FormModel` not introduced [# 1996](https://github.com/vueComponent/ant-design-vue/issues/1966)
18+
- 🐞 Fix `DatePicker.WeekPicker` type file error [# 2044](https://github.com/vueComponent/ant-design-vue/issues/2044)
19+
- 🐞 Fix "Tabs" tabClick event does not take effect [# 2030](https://github.com/vueComponent/ant-design-vue/issues/2030)
20+
- 🐞 Fix `Table` resize error issue [# 2033](https://github.com/vueComponent/ant-design-vue/issues/2033)
21+
1322
## 1.5.1
1423

1524
`2020-04-02`
@@ -20,7 +29,7 @@
2029
- 🐞 Fix `Table` customRender cannot customize class style [#2004](https://github.com/vueComponent/ant-design-vue/pull/2004)
2130
- 🐞 Fix `Form` missing slot content when using Form.create [#1998](https://github.com/vueComponent/ant-design-vue/pull/1998)
2231
- 🐞 Fix `Textarea` scroll bar flickering problem [#1964](https://github.com/vueComponent/ant-design-vue/pull/1964)
23-
- 🌟 Add ts type file of `FormModel` [#1996](https://github.com/vueComponent/ant-design-vue/pull/1966)
32+
- 🌟 Add ts type file of `FormModel` [#1996](https://github.com/vueComponent/ant-design-vue/issues/1966)
2433
- 🌟 Add `modal` destroyAll type declaration [#1993](https://github.com/vueComponent/ant-design-vue/pull/1963)
2534

2635
## 1.5.0

CHANGELOG.zh-CN.md

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

1111
---
1212

13+
## 1.5.2
14+
15+
`2020-04-09`
16+
17+
- 🐞 修复 `FormModel` 的 ts 类型未引入 [#1996](https://github.com/vueComponent/ant-design-vue/issues/1966)
18+
- 🐞 修复 `DatePicker.WeekPicker` 的类型文件错误 [#2044](https://github.com/vueComponent/ant-design-vue/issues/2044)
19+
- 🐞 修复 `Tabs` tabClick 事件不生效问题 [#2030](https://github.com/vueComponent/ant-design-vue/issues/2030)
20+
- 🐞 修复 `Table` resize 时报错问题 [#2033](https://github.com/vueComponent/ant-design-vue/issues/2033)
21+
1322
## 1.5.1
1423

1524
`2020-04-02`
@@ -20,7 +29,7 @@
2029
- 🐞 修复 `Table` customRender 不能自定义 class style 问题 [#2004](https://github.com/vueComponent/ant-design-vue/pull/2004)
2130
- 🐞 修复 `Form` 使用 Form.create 时,丢失插槽内容问题 [#1998](https://github.com/vueComponent/ant-design-vue/pull/1998)
2231
- 🐞 修复 `Textarea` 滚动条闪动问题 [#1964](https://github.com/vueComponent/ant-design-vue/pull/1964)
23-
- 🌟 添加 `FormModel` 的 ts 类型文件 [#1996](https://github.com/vueComponent/ant-design-vue/pull/1966)
32+
- 🌟 添加 `FormModel` 的 ts 类型文件 [#1996](https://github.com/vueComponent/ant-design-vue/issues/1966)
2433
- 🌟 添加 `Modal` 的 destroyAll 类型声明 [#1993](https://github.com/vueComponent/ant-design-vue/pull/1963)
2534

2635
## 1.5.0

antd-tools/gulpfile.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const transformLess = require('./transformLess');
1111
const webpack = require('webpack');
1212
const babel = require('gulp-babel');
1313
const argv = require('minimist')(process.argv.slice(2));
14-
const GitHub = require('@octokit/rest');
14+
const { Octokit } = require('@octokit/rest');
1515

1616
const packageJson = require(`${process.cwd()}/package.json`);
1717
// const getNpm = require('./getNpm')
@@ -168,10 +168,8 @@ function githubRelease(done) {
168168
console.log('no changelog found, skip');
169169
return;
170170
}
171-
const github = new GitHub();
172-
github.authenticate({
173-
type: 'oauth',
174-
token: process.env.GITHUB_TOKEN,
171+
const github = new Octokit({
172+
auth: process.env.GITHUB_TOKEN,
175173
});
176174
const date = new Date();
177175
const { version } = packageJson;
@@ -311,10 +309,8 @@ gulp.task(
311309
if (!process.env.NPM_TOKEN) {
312310
console.log('no NPM token found, skip');
313311
} else {
314-
const github = new GitHub();
315-
github.authenticate({
316-
type: 'oauth',
317-
token: process.env.GITHUB_TOKEN,
312+
const github = new Octokit({
313+
auth: process.env.GITHUB_TOKEN,
318314
});
319315
const [_, owner, repo] = execSync('git remote get-url origin') // eslint-disable-line
320316
.toString()

antdv-demo

components/_util/ContainerRender.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,18 @@ export default {
7171
}
7272
});
7373
},
74+
methods: {
75+
forceRender(p) {
76+
this.comProps = p;
77+
this.$forceUpdate();
78+
},
79+
},
7480
render() {
7581
return self.getComponent(this.comProps);
7682
},
7783
});
7884
} else {
79-
this._component.comProps = props;
85+
this._component.forceRender(props);
8086
}
8187
}
8288
},

components/cascader/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ exports[`renders ./antdv-demo/docs/cascader/demo/change-on-select.md correctly 1
1313
`;
1414
1515
exports[`renders ./antdv-demo/docs/cascader/demo/custom-render.md correctly 1`] = `
16-
<span tabindex="0" class="ant-cascader-picker" style="width: 100%;"><input type="text" readonly="true" class="ant-input ant-cascader-input "><span class="ant-cascader-picker-label"><span><span>
17-
Zhejiang /
18-
</span></span><span><span>
19-
Hangzhou /
20-
</span></span><span><span>
16+
<span tabindex="0" class="ant-cascader-picker" style="width: 100%;"><input type="text" readonly="true" class="ant-input ant-cascader-input "><span class="ant-cascader-picker-label"><span><span> Zhejiang / </span></span><span><span> Hangzhou / </span></span><span><span>
2117
West Lake (<a>752100</a>)
2218
</span></span></span><i aria-label="icon: close-circle" tabindex="-1" class="anticon anticon-close-circle ant-cascader-picker-clear"><svg viewBox="64 64 896 896" data-icon="close-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
2319
<path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"></path>

components/drawer/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ exports[`renders ./antdv-demo/docs/drawer/demo/render-in-current.md correctly 1`
3232
<div style="height: 200px; overflow: hidden; position: relative; border: 1px solid #ebedf0; border-radius: 2px; padding: 48px; text-align: center; background: rgb(250, 250, 250);">
3333
Render in this
3434
<div style="margin-top: 16px;"><button type="button" class="ant-btn ant-btn-primary"><span>Open</span></button></div>
35-
<div tabindex="-1" class="" style="position: absolute;">
36-
<div tabindex="-1" class="ant-drawer ant-drawer-right">
35+
<div tabindex="-1" class="">
36+
<div tabindex="-1" class="ant-drawer ant-drawer-right" style="position: absolute;">
3737
<div class="ant-drawer-mask"></div>
3838
<div class="ant-drawer-content-wrapper" style="transform: translateX(100%); width: 256px;">
3939
<div class="ant-drawer-content">

components/dropdown/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`renders ./antdv-demo/docs/dropdown/demo/basic.md correctly 1`] = `
4-
<a class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
4+
<a class="ant-dropdown-link ant-dropdown-trigger">
5+
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
56
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
67
</svg></i></a>
78
`;
@@ -29,19 +30,22 @@ exports[`renders ./antdv-demo/docs/dropdown/demo/dropdown-button.md correctly 1`
2930
`;
3031

3132
exports[`renders ./antdv-demo/docs/dropdown/demo/event.md correctly 1`] = `
32-
<a class="ant-dropdown-link ant-dropdown-trigger"> Hover me, Click menu item <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
33+
<a class="ant-dropdown-link ant-dropdown-trigger">
34+
Hover me, Click menu item <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
3335
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
3436
</svg></i></a>
3537
`;
3638

3739
exports[`renders ./antdv-demo/docs/dropdown/demo/item.md correctly 1`] = `
38-
<a class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
40+
<a class="ant-dropdown-link ant-dropdown-trigger">
41+
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
3942
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
4043
</svg></i></a>
4144
`;
4245

4346
exports[`renders ./antdv-demo/docs/dropdown/demo/overlay-visible.md correctly 1`] = `
44-
<a class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
47+
<a class="ant-dropdown-link ant-dropdown-trigger">
48+
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
4549
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
4650
</svg></i></a>
4751
`;
@@ -57,13 +61,15 @@ exports[`renders ./antdv-demo/docs/dropdown/demo/placement.md correctly 1`] = `
5761
`;
5862
5963
exports[`renders ./antdv-demo/docs/dropdown/demo/sub-menu.md correctly 1`] = `
60-
<a class="ant-dropdown-link ant-dropdown-trigger"> Cascading menu <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
64+
<a class="ant-dropdown-link ant-dropdown-trigger">
65+
Cascading menu <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
6166
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
6267
</svg></i></a>
6368
`;
6469
6570
exports[`renders ./antdv-demo/docs/dropdown/demo/trigger.md correctly 1`] = `
66-
<a class="ant-dropdown-link ant-dropdown-trigger"> Click me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
71+
<a class="ant-dropdown-link ant-dropdown-trigger">
72+
Click me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
6773
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
6874
</svg></i></a>
6975
`;

components/form/__tests__/__snapshots__/demo.test.js.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,7 @@ exports[`renders ./antdv-demo/docs/form/demo/validate-static.vue correctly 1`] =
772772
<!---->
773773
</div>
774774
</div>
775-
</div>
776-
</span>
775+
</div></span>
777776
<!---->
778777
</div>
779778
</div>

0 commit comments

Comments
 (0)