Skip to content

Commit

Permalink
Merge branch 'ElemeFE:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tomieric authored Oct 2, 2021
2 parents f16cc75 + 492ab00 commit 2ce398d
Show file tree
Hide file tree
Showing 20 changed files with 168 additions and 50 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
## Changelog

### 2.15.6

*2021-09-02*

#### Bug fixes

- Cascader
- fix a bug that makes the browser jitter in zoom mode (#21207 by @cs1707)
- optimize performance (#21231 by @cs1707)
- Select
- fix long text overflow in multiple mode (#21237 by @cs1707)
- Dropdown
- add disabled property (#21235 by @mshioda)
- Radio
- fix checked state when browser go back (#21250 by @cs1707)
- Descriptions
- fix type declaration (#21265 by @adaex)
- avoid table style conflict (#21254 by @adaex)
- Drawer
- fix append to body (#21264 by @cs1707)
- Local
- fix italian mistake (#21012 by @ricardotondello)

### 2.15.5

*2021-08-04*

#### Bug fixes

- Select
- fix resetInputHeight (#21201 by @cs1707)

Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.es.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
## Changelog

### 2.15.6

*2021-09-02*

#### Bug fixes

- Cascader
- fix a bug that makes the browser jitter in zoom mode (#21207 by @cs1707)
- optimize performance (#21231 by @cs1707)
- Select
- fix long text overflow in multiple mode (#21237 by @cs1707)
- Dropdown
- add disabled property (#21235 by @mshioda)
- Radio
- fix checked state when browser go back (#21250 by @cs1707)
- Descriptions
- fix type declaration (#21265 by @adaex)
- avoid table style conflict (#21254 by @adaex)
- Drawer
- fix append to body (#21264 by @cs1707)
- Local
- fix italian mistake (#21012 by @ricardotondello)

### 2.15.5

*2021-08-04*

#### Bug fixes

- Select
- fix resetInputHeight (#21201 by @cs1707)

Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.fr-FR.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
## Changelog

### 2.15.6

*2021-09-02*

#### Bug fixes

- Cascader
- fix a bug that makes the browser jitter in zoom mode (#21207 by @cs1707)
- optimize performance (#21231 by @cs1707)
- Select
- fix long text overflow in multiple mode (#21237 by @cs1707)
- Dropdown
- add disabled property (#21235 by @mshioda)
- Radio
- fix checked state when browser go back (#21250 by @cs1707)
- Descriptions
- fix type declaration (#21265 by @adaex)
- avoid table style conflict (#21254 by @adaex)
- Drawer
- fix append to body (#21264 by @cs1707)
- Local
- fix italian mistake (#21012 by @ricardotondello)

### 2.15.5

*2021-08-04*

#### Bug fixes

- Select
- fix resetInputHeight (#21201 by @cs1707)

Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
## 更新日志

### 2.15.6

*2021-09-02*

#### Bug 修复

- Cascader
- 修复浏览器缩放模式下抖动的 bug (#21207 by @cs1707)
- 优化性能 (#21231 by @cs1707)
- Select
- 修复多选模式下文字溢出的 bug (#21237 by @cs1707)
- Dropdown
- 增加 disabled 属性 (#21235 by @mshioda)
- Radio
- 修复浏览器返回后保留状态的 bug (#21250 by @cs1707)
- Descriptions
- 修复类型定义 (#21265 by @adaex)
- 修复与表格组件混用样式冲突的问题 (#21254 by @adaex)
- Drawer
- 修复 append-to-body (#21264 by @cs1707)
- Local
- 修复 italian 翻译错误 (#21012 by @ricardotondello)

### 2.15.5

*2021-08-04*
Expand Down
2 changes: 1 addition & 1 deletion examples/versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4","2.5.4":"2.5","2.6.3":"2.6","2.7.2":"2.7","2.8.2":"2.8","2.9.2":"2.9","2.10.1":"2.10","2.11.1":"2.11","2.12.0":"2.12","2.13.2":"2.13","2.14.1":"2.14","2.15.5":"2.15"}
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4","2.5.4":"2.5","2.6.3":"2.6","2.7.2":"2.7","2.8.2":"2.8","2.9.2":"2.9","2.10.1":"2.10","2.11.1":"2.11","2.12.0":"2.12","2.13.2":"2.13","2.14.1":"2.14","2.15.6":"2.15"}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-ui",
"version": "2.15.5",
"version": "2.15.6",
"description": "A Component Library for Vue.js.",
"main": "lib/element-ui.common.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/badge/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
v-text="content"
class="el-badge__content"
:class="[
'el-badge__content--' + type,
type ? 'el-badge__content--' + type : null,
{
'is-fixed': $slots.default,
'is-dot': isDot
Expand Down
9 changes: 5 additions & 4 deletions packages/descriptions/src/descriptions-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default {
return (
<th
class={{
'el-descriptions-item__cell': true,
'el-descriptions-item__label': true,
'has-colon': elDescriptions.border ? false : elDescriptions.colon,
'is-bordered-label': elDescriptions.border,
Expand All @@ -44,8 +45,7 @@ export default {
row.map(item =>{
return (
<td
class="el-descriptions-item__content"
class={['el-descriptions-item__content', item.contentClassName]}
class={['el-descriptions-item__cell', 'el-descriptions-item__content', item.contentClassName]}
style={item.contentStyle}
colSpan={item.props.span}
>{item.slots.default}</td>
Expand All @@ -65,6 +65,7 @@ export default {
return ([
<th
class={{
'el-descriptions-item__cell': true,
'el-descriptions-item__label': true,
'is-bordered-label': elDescriptions.border,
[item.labelClassName]: true
Expand All @@ -73,7 +74,7 @@ export default {
colSpan="1"
>{item.label}</th>,
<td
class={['el-descriptions-item__content', item.contentClassName]}
class={['el-descriptions-item__cell', 'el-descriptions-item__content', item.contentClassName]}
style={item.contentStyle}
colSpan={item.props.span * 2 - 1}
>{item.slots.default}</td>
Expand All @@ -90,7 +91,7 @@ export default {
{
row.map(item=> {
return (
<td class="el-descriptions-item" colSpan={item.props.span}>
<td class="el-descriptions-item el-descriptions-item__cell" colSpan={item.props.span}>
<div class="el-descriptions-item__container">
<span
class={{
Expand Down
2 changes: 1 addition & 1 deletion packages/descriptions/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default {
}

<div class="el-descriptions__body">
<table class={[{'is-bordered': border}, descriptionsSize ? `el-descriptions--${descriptionsSize}` : '']}>
<table class={['el-descriptions__table', {'is-bordered': border}, descriptionsSize ? `el-descriptions--${descriptionsSize}` : '']}>
{rows.map(row => (
<DescriptionsRow row={row}></DescriptionsRow>
))}
Expand Down
3 changes: 3 additions & 0 deletions packages/drawer/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ export default {
if (this.visible) {
this.rendered = true;
this.open();
if (this.appendToBody) {
document.body.appendChild(this.$el);
}
}
},
destroyed() {
Expand Down
4 changes: 2 additions & 2 deletions packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,10 @@
handleFocus(event) {
if (!this.softFocus) {
if (this.automaticDropdown || this.filterable) {
this.visible = true;
if (this.filterable) {
if (this.filterable && !this.visible) {
this.menuVisibleOnFocus = true;
}
this.visible = true;
}
this.$emit('focus', event);
} else {
Expand Down
4 changes: 3 additions & 1 deletion packages/table/src/table-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ export default {
}));
}

classes.push('el-table__cell');

return classes.join(' ');
},

Expand Down Expand Up @@ -404,7 +406,7 @@ export default {
return [[
tr,
<tr key={'expanded-row__' + tr.key}>
<td colspan={ this.columnsCount } class="el-table__expanded-cell">
<td colspan={ this.columnsCount } class="el-table__cell el-table__expanded-cell">
{ renderExpanded(this.$createElement, { row, $index, store: this.store }) }
</td>
</tr>]];
Expand Down
4 changes: 2 additions & 2 deletions packages/table/src/table-footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default {
key={cellIndex}
colspan={ column.colSpan }
rowspan={ column.rowSpan }
class={ this.getRowClasses(column, cellIndex) }>
class={ [...this.getRowClasses(column, cellIndex), 'el-table__cell'] }>
<div class={ ['cell', column.labelClassName] }>
{
sums[cellIndex]
Expand All @@ -72,7 +72,7 @@ export default {
</td>)
}
{
this.hasGutter ? <th class="gutter"></th> : ''
this.hasGutter ? <th class="el-table__cell gutter"></th> : ''
}
</tr>
</tbody>
Expand Down
4 changes: 3 additions & 1 deletion packages/table/src/table-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default {
</th>))
}
{
this.hasGutter ? <th class="gutter"></th> : ''
this.hasGutter ? <th class="el-table__cell gutter"></th> : ''
}
</tr>
)
Expand Down Expand Up @@ -286,6 +286,8 @@ export default {
}));
}

classes.push('el-table__cell');

return classes.join(' ');
},

Expand Down
2 changes: 1 addition & 1 deletion packages/theme-chalk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-theme-chalk",
"version": "2.15.5",
"version": "2.15.6",
"description": "Element component chalk theme.",
"main": "lib/index.css",
"style": "lib/index.css",
Expand Down
20 changes: 10 additions & 10 deletions packages/theme-chalk/src/descriptions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
color: $--color-text-regular;
background-color: $--color-white;

table {
.el-descriptions__table {
border-collapse: collapse;
width: 100%;
table-layout: fixed;

th, td {
.el-descriptions-item__cell {
box-sizing: border-box;
text-align: left;
font-weight: normal;
Expand All @@ -51,27 +51,27 @@

.is-bordered {
table-layout: auto;
th, td {
.el-descriptions-item__cell {
border: $--descriptions-table-border;
padding: 12px 10px;
}
}

:not(.is-bordered) {
th, td {
.el-descriptions-item__cell {
padding-bottom: 12px;
}
}

@include m(medium) {
&.is-bordered {
th, td {
.el-descriptions-item__cell {
padding: 10px;
}
}

&:not(.is-bordered) {
th, td {
.el-descriptions-item__cell {
padding-bottom: 10px;
}
}
Expand All @@ -81,13 +81,13 @@
font-size: 12px;

&.is-bordered {
th, td {
.el-descriptions-item__cell {
padding: 8px 10px;
}
}

&:not(.is-bordered) {
th, td {
.el-descriptions-item__cell {
padding-bottom: 8px;
}
}
Expand All @@ -97,13 +97,13 @@
font-size: 12px;

&.is-bordered {
th, td {
.el-descriptions-item__cell {
padding: 6px 10px;
}
}

&:not(.is-bordered) {
th, td {
.el-descriptions-item__cell {
padding-bottom: 6px;
}
}
Expand Down
Loading

0 comments on commit 2ce398d

Please sign in to comment.