feat(Picker): add option slot (#7380)

This commit is contained in:
neverland
2020-10-21 21:52:12 +08:00
committed by GitHub
parent 7ec560fc82
commit ea210bb013
6 changed files with 91 additions and 18 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ export default createComponent({
return (
<li {...data}>
<div {...childData} />
{this.slots('option', option) || <div {...childData} />}
</li>
);
});