Skip to content

Commit 1572e8e

Browse files
committed
Merge branch 'master' into feat-1.5.0
2 parents a98f513 + e7ff6d6 commit 1572e8e

File tree

13 files changed

+155
-77
lines changed

13 files changed

+155
-77
lines changed

CHANGELOG.en-US.md

+25
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,31 @@
1010

1111
---
1212

13+
## 1.4.12
14+
15+
`2020-03-03`
16+
17+
- 🐞 Fix ts type error of `Modal` component [#1809](https://github.com/vueComponent/ant-design-vue/issues/1809)
18+
19+
## 1.4.11
20+
21+
`2020-02-12`
22+
23+
- 🌟 DirectoryTree adds custom switcherIcon function [#1743](https://github.com/vueComponent/ant-design-vue/issues/1743)
24+
- 🌟 Add draggable table column width [example](https://www.antdv.com/components/table/#components-table-demo-resizable-column)
25+
- 🌟 Replace `this.$listeners` of all components to avoid repeated rendering of components [#1705](https://github.com/vueComponent/ant-design-vue/issues/1705)
26+
- 🐞 Fix ConfigProvider component error report error [7a4003](https://github.com/vueComponent/ant-design-vue/commit/7a40031955d520487dcaf9054a1280ae72230049)
27+
- 🐞 Fix placeholder does not disappear when custom input box of AutoComplete component [#1761](https://github.com/vueComponent/ant-design-vue/issues/1761)
28+
- 🐞 Fix Statistic.Countdown does not trigger finish event [#1731](https://github.com/vueComponent/ant-design-vue/pull/1731)
29+
- 🐞 Fix upload component preview image not refreshing [f74469](https://github.com/vueComponent/ant-design-vue/commit/f744690e929d9d6da03c5c513b3ac5497c6490ef)
30+
- 🐞 Fix TimePicker id is not unique [#1566](https://github.com/vueComponent/ant-design-vue/pull/1566)
31+
- 🐞 Fix Pagination pagination without animation [#1540](https://github.com/vueComponent/ant-design-vue/issues/1540)
32+
- 🐞 Fix drop-down list does not show empty elements when Cascader's option is empty array [#1701](https://github.com/vueComponent/ant-design-vue/issues/1540)
33+
- 🐞 Fix spellcheck rendering incorrect for Input component [#1707](https://github.com/vueComponent/ant-design-vue/issues/1707)
34+
- 🐞 Fix Tree component cannot customize icon [#1712](https://github.com/vueComponent/ant-design-vue/pull/1712)
35+
- 🐞 Fix SubMenu forceSubMenuRender property is invalid [#1668](https://github.com/vueComponent/ant-design-vue/issues/1668)
36+
- 🐞 Fix style of upload button is misaligned [#1742](https://github.com/vueComponent/ant-design-vue/pull/1742)
37+
1338
## 1.4.10
1439

1540
`2019-12-11`

CHANGELOG.zh-CN.md

+25
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,31 @@
1010

1111
---
1212

13+
## 1.4.12
14+
15+
`2020-03-03`
16+
17+
- 🐞 修复 `Modal` 组件 ts 类型报错问题 [#1809](https://github.com/vueComponent/ant-design-vue/issues/1809)
18+
19+
## 1.4.11
20+
21+
`2020-02-12`
22+
23+
- 🌟 DirectoryTree 新增自定义 switcherIcon 功能 [#1743](https://github.com/vueComponent/ant-design-vue/issues/1743)
24+
- 🌟 新增可拖拽调整表格列宽[示例](https://www.antdv.com/components/table/#components-table-demo-resizable-column)
25+
- 🌟 替换所有组件的 `this.$listeners` 避免组件重复渲染 [#1705](https://github.com/vueComponent/ant-design-vue/issues/1705)
26+
- 🐞 修复 ConfigProvider 组件更改属性时,报错问题 [7a4003](https://github.com/vueComponent/ant-design-vue/commit/7a40031955d520487dcaf9054a1280ae72230049)
27+
- 🐞 修复 AutoComplete 组件自定义输入框时,placeholder 不消失问题 [#1761](https://github.com/vueComponent/ant-design-vue/issues/1761)
28+
- 🐞 修复 Statistic.Countdown 不触发 finish 事件的问题 [#1731](https://github.com/vueComponent/ant-design-vue/pull/1731)
29+
- 🐞 修复 Upload 组件预览图片不刷新问题 [f74469](https://github.com/vueComponent/ant-design-vue/commit/f744690e929d9d6da03c5c513b3ac5497c6490ef)
30+
- 🐞 修复 TimePicker id 不唯一问题 [#1566](https://github.com/vueComponent/ant-design-vue/pull/1566)
31+
- 🐞 修复 Pagination 分页无动画问题 [#1540](https://github.com/vueComponent/ant-design-vue/issues/1540)
32+
- 🐞 修复 Cascader 的 option 为空数组时,下拉列表不展示空元素问题 [#1701](https://github.com/vueComponent/ant-design-vue/issues/1540)
33+
- 🐞 修复 Input 组件的 spellcheck 渲染不正确问题 [#1707](https://github.com/vueComponent/ant-design-vue/issues/1707)
34+
- 🐞 修复 Tree 组件无法自定义 icon 问题 [#1712](https://github.com/vueComponent/ant-design-vue/pull/1712)
35+
- 🐞 修复 SubMenu forceSubMenuRender 属性失效问题 [#1668](https://github.com/vueComponent/ant-design-vue/issues/1668)
36+
- 🐞 修复 Upload 按钮样式错位问题 [#1742](https://github.com/vueComponent/ant-design-vue/pull/1742)
37+
1338
## 1.4.10
1439

1540
`2019-12-11`

components/timeline/demo/index.vue

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ const md = {
1212
cn: `# 时间轴
1313
垂直展示的时间流信息。
1414
## 何时使用
15-
在操作需要较长时间才能完成时,为用户显示该操作的当前进度和状态。
16-
1715
- 当有一系列信息需按时间排列时,可正序和倒序。
18-
- 需要有一条时间轴进行视觉上的串联时。
16+
- 需要有一条时间轴进行视觉上的串联时。
1917
## 代码演示`,
2018
us: `# Timeline
2119
Vertical display timeline.
2220
## When To Use
23-
- When a series of information needs to be ordered by time (ascend or descend).
21+
- When a series of information needs to be ordered by time (ascending or descending).
2422
- When you need a timeline to make a visual connection.
2523
## Examples
2624
`,

components/vc-checkbox/src/Checkbox.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default {
7777
this.sChecked = e.target.checked;
7878
}
7979
this.$forceUpdate(); // change前,维持现有状态
80+
e.shiftKey = this.eventShiftKey;
8081
this.__emit('change', {
8182
target: {
8283
...props,
@@ -88,7 +89,7 @@ export default {
8889
preventDefault() {
8990
e.preventDefault();
9091
},
91-
nativeEvent: { ...e, shiftKey: this.eventShiftKey },
92+
nativeEvent: e,
9293
});
9394
this.eventShiftKey = false;
9495
},

docs/vue/faq.en-US.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Second, if you don't use the form's automatic check/collection feature, ie you d
2222

2323
### How to modify the default theme of Ant Design Vue?
2424

25-
See [Customize Theme](/docs/vue/customize-theme/)
25+
See [Customize Theme](/docs/vue/customize-theme/).
2626

2727
### How to optimize momentjs bundle size with webpack?
2828

@@ -42,8 +42,17 @@ Yes, ant-design-vue is designed to develop a complete background application, we
4242

4343
Or, follow the instructions in [How to avoid modifying global styles?](docs/react/customize-theme#How-to-avoid-modifying-global-styles-?)
4444

45+
### `ant-design-vue` makes only poor user experience on mobile.
46+
47+
`ant-design-vue` is not designed for mobile.
48+
4549
### When I set `mode` to DatePicker/RangePicker, I cannot select year or month anymore?
4650

4751
In a real world development, you may need a YearPicker, MonthRangePicker or WeekRangePicker. You are trying to add `mode` to DatePicker/RangePicker expected to implement those pickers. However, the DatePicker/RangePicker cannot be selected and the panels won't close now.
4852

4953
That is because `<DatePicker mode="year" />` do not equal to `YearPicker`, `<RangePicker mode="month" />` do not equal to `MonthRangePicker` either. The `mode` property was added to support [showing time picker panel in DatePicker](https://github.com/ant-design/ant-design/issues/5190), which simply control the displayed panel and won't change the original date picking behavior of `DatePicker/RangePicker` (for instance you still need to click date cell to finish selection in a DatePicker, whatever the `mode` is).
54+
55+
##### Solution
56+
57+
The following articles are the implementation articles of the react version, the ideas are the same.
58+
In [one article](https://juejin.im/post/5cf65c366fb9a07eca6968f9) or [another article](https://www.cnblogs.com/zyl-Tara/p/10197177.html) approach, using methods `mode` and `panelChange` to encapsulate a component such as `YearPicker`. We plan to add more date related components directly in [email protected] to support these needs.

docs/vue/introduce.en-US.md

+8
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ If you'd like to help us improve antd, just create a [Pull Request](https://gith
127127

128128
> If you're new to posting issues, we ask that you read [_How To Ask Questions The Smart Way_](http://www.catb.org/~esr/faqs/smart-questions.html) and [How to Ask a Question in Open Source Community](https://github.com/seajs/seajs/issues/545) and [How to Report Bugs Effectively](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html) prior to posting. Well written bug reports help us help you!
129129
130+
## About ant-design-vue
131+
132+
As we all know, Ant Design, as a design language, has gone through many years of iteration and accumulation. Its UI design ideas have become a set of de facto standards and are sought after and loved by many front-end developers and enterprises, and it is also a magic weapon in the hands of React developers. I hope that ant-design-vue will allow Vue developers to enjoy the excellent design of Ant Design.
133+
134+
The ant-design-vue is the Vue implementation of Ant Design. The style of the component is kept in sync with Ant Design. The html structure and css style of the component are also consistent. The style 0 modification is really achieved, and the component API is kept as consistent as possible.
135+
136+
Ant Design Vue is committed to providing programmers with a ** pleasant ** development experience.
137+
130138
## THANK YOU
131139

132140
[Ant Design Team](https://github.com/ant-design/ant-design/blob/master/AUTHORS.txt)

docs/vue/use-with-vue-cli.en-US.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,9 @@ Vue.component(Button.name, Button);
7070

7171
Vue.config.productionTip = false;
7272

73-
/* eslint-disable no-new */
7473
new Vue({
75-
el: '#app',
76-
components: { App },
77-
template: '<App/>',
78-
});
74+
render: h => h(App),
75+
}).$mount('#app');
7976
```
8077

8178
Modify `src/App.vue`
@@ -161,12 +158,9 @@ Remove the `import 'ant-design-vue/dist/antd.css';` statement added before becau
161158

162159
Vue.config.productionTip = false
163160

164-
/* eslint-disable no-new */
165161
new Vue({
166-
el: '#app',
167-
components: { App },
168-
template: '<App/>'
169-
})
162+
render: h => h(App)
163+
}).$mount('#app')
170164
```
171165

172166
Then reboot with `npm run dev` and visit the demo page, you should not find any [warning messages](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png) in the console, which prove that the `import on demand` config is working now. You will find more info about it in [this guide](/docs/vue/getting-started/#Import-on-Demand).

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ant-design-vue",
3-
"version": "1.4.10",
3+
"version": "1.4.12",
44
"title": "Ant Design Vue",
55
"description": "An enterprise-class UI design language and Vue-based implementation",
66
"keywords": [
@@ -216,4 +216,4 @@
216216
"lib/**/style/*",
217217
"*.less"
218218
]
219-
}
219+
}

scripts/postinstall.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ if (!ADBLOCK && !CI && !DISABLE_OPENCOLLECTIVE && !SILENT) {
2929
log('\u001B[96m>\u001B[94m https://opencollective.com/ant-design-vue \u001B[0m');
3030
log('\u001B[96m>\u001B[94m https://www.patreon.com/tangjinzhou \u001B[0m\n');
3131
log(
32-
'\u001B[96mFor china, 更多赞助方式(支付宝、微信)请查看如下链接: ' +
32+
'\u001B[96m更多赞助方式(支付宝、微信、Paypal)请查看如下链接: ' +
3333
emoji.get('pray') +
3434
'\u001B[0m',
3535
);
3636
log('\u001B[96m>\u001B[94m https://www.antdv.com/docs/vue/sponsor-cn \u001B[0m\n');
37+
log('\u001B[96mAnt Design Vue 官方网站: \u001B[0m');
38+
log('\u001B[96m>\u001B[94m https://www.antdv.com/ \u001B[0m\n');
3739
}

site/components/demoBox.vue

+24-22
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,9 @@
1313
<section class="code-box-meta markdown">
1414
<slot v-if="isZhCN" name="description" />
1515
<slot v-else name="us-description" />
16-
<a-tooltip :title="codeExpand ? 'Hide Code' : 'Show Code'">
17-
<span class="code-expand-icon">
18-
<img
19-
width="16"
20-
alt="expand code"
21-
src="https://gw.alipayobjects.com/zos/rmsportal/wSAkBuJFbdxsosKKpqyq.svg"
22-
:class="codeExpand ? 'code-expand-icon-hide' : 'code-expand-icon-show'"
23-
@click="handleCodeExpand"
24-
/>
25-
<img
26-
width="16"
27-
alt="expand code"
28-
src="https://gw.alipayobjects.com/zos/rmsportal/OpROPHYqWmrMDBFMZtKF.svg"
29-
:class="codeExpand ? 'code-expand-icon-show' : 'code-expand-icon-hide'"
30-
@click="handleCodeExpand"
31-
/>
32-
</span>
33-
</a-tooltip>
34-
</section>
35-
<transition appear :css="false" @enter="enter" @leave="leave">
36-
<section v-show="codeExpand" class="highlight-wrapper" style="position: relative;">
16+
<div class="code-box-actions">
3717
<a-tooltip
38-
:title="copied ? '复制成功' : '复制代码'"
18+
:title="copied ? 'Copied!' : 'Copy code'"
3919
:visible="copyTooltipVisible"
4020
@visibleChange="onCopyTooltipVisibleChange"
4121
>
@@ -46,6 +26,28 @@
4626
class="code-box-code-copy"
4727
/>
4828
</a-tooltip>
29+
<a-tooltip :title="codeExpand ? 'Hide Code' : 'Show Code'">
30+
<span class="code-expand-icon">
31+
<img
32+
width="16"
33+
alt="expand code"
34+
src="https://gw.alipayobjects.com/zos/rmsportal/wSAkBuJFbdxsosKKpqyq.svg"
35+
:class="codeExpand ? 'code-expand-icon-hide' : 'code-expand-icon-show'"
36+
@click="handleCodeExpand"
37+
/>
38+
<img
39+
width="16"
40+
alt="expand code"
41+
src="https://gw.alipayobjects.com/zos/rmsportal/OpROPHYqWmrMDBFMZtKF.svg"
42+
:class="codeExpand ? 'code-expand-icon-show' : 'code-expand-icon-hide'"
43+
@click="handleCodeExpand"
44+
/>
45+
</span>
46+
</a-tooltip>
47+
</div>
48+
</section>
49+
<transition appear :css="false" @enter="enter" @leave="leave">
50+
<section v-show="codeExpand" class="highlight-wrapper" style="position: relative;">
4951
<slot name="code" />
5052
</section>
5153
</transition>

site/index.less

+2-7
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,14 @@ pre > code[class*='language-'] {
5656
position: absolute;
5757
top: -14px;
5858
padding: 1px 8px;
59-
margin-left: -8px;
59+
margin-left: 16px;
6060
color: #777;
6161
border-radius: 2px 2px 0 0;
6262
background: #fff;
6363
font-size: 14px;
6464
width: auto;
6565
}
66-
.code-box-code-copy {
67-
opacity: 1;
68-
position: absolute;
69-
right: 15px;
70-
top: 10px;
71-
}
66+
7267
#search-box {
7368
.ant-select-focused,
7469
.ant-select-selection,

0 commit comments

Comments
 (0)