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 () => { return () => {
const labelAlign = getProp('labelAlign'); const labelAlign = getProp('labelAlign');
const Label = renderLabel();
const LeftIcon = renderLeftIcon();
return ( return (
<Cell <Cell
v-slots={{ v-slots={{
icon: renderLeftIcon, icon: LeftIcon ? () => LeftIcon : null,
title: renderLabel, title: Label ? () => Label : null,
extra: slots.extra, extra: slots.extra,
}} }}
size={props.size} size={props.size}