mirror of
https://github.com/youzan/vant.git
synced 2025-12-23 01:00:44 +08:00
[bugfix] Field: label slot not work (#2872)
This commit is contained in:
@@ -216,7 +216,7 @@ export default sfc({
|
||||
icon: this.renderLeftIcon
|
||||
};
|
||||
if (slots('label')) {
|
||||
scopedSlots.label = () => slots('title');
|
||||
scopedSlots.title = () => slots('label');
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user