Skip to content

Commit

Permalink
fix(Field): incorrect empty cell title
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Oct 13, 2020
1 parent 0acad33 commit 9cd48e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/field/index.js
Expand Up @@ -542,12 +542,14 @@ export default createComponent({

return () => {
const labelAlign = getProp('labelAlign');
const Label = renderLabel();
const LeftIcon = renderLeftIcon();

return (
<Cell
v-slots={{
icon: renderLeftIcon,
title: renderLabel,
icon: LeftIcon ? () => LeftIcon : null,
title: Label ? () => Label : null,
extra: slots.extra,
}}
size={props.size}
Expand Down

0 comments on commit 9cd48e0

Please sign in to comment.