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 () => {
|
||||
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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user