fix(Field): incorrect empty cell title

This commit is contained in:
chenjiahan 2020-10-13 21:07:49 +08:00
parent 0acad33ab9
commit 9cd48e0e33

View File

@ -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}