[bugfix] Field: label slot not work (#2872)

This commit is contained in:
neverland
2019-02-28 19:41:34 +08:00
committed by GitHub
parent 33e6f2265e
commit b99d7f9c06
3 changed files with 25 additions and 1 deletions

View File

@@ -216,7 +216,7 @@ export default sfc({
icon: this.renderLeftIcon
};
if (slots('label')) {
scopedSlots.label = () => slots('title');
scopedSlots.title = () => slots('label');
}
return (