mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Field): incorrect empty cell title
This commit is contained in:
parent
0acad33ab9
commit
9cd48e0e33
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user