Skip to content

Commit

Permalink
Descriptions: add missing class
Browse files Browse the repository at this point in the history
  • Loading branch information
adaex authored Aug 26, 2021
1 parent e021807 commit 4c8ad6d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/descriptions/src/descriptions-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ export default {
row.map(item =>{
return (
<td
class="el-descriptions-item__cell"
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 @@ -67,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 @@ -75,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 @@ -92,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

0 comments on commit 4c8ad6d

Please sign in to comment.