fix: tree-select maximum error when set slot tilte

feat-less4
tangjinzhou 2020-12-26 22:37:08 +08:00
parent 6ef9404ee9
commit 2be1e77098
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export function convertChildrenToData(nodes: any[]): any[] {
};
Object.keys(restSlot).forEach(p => {
if (typeof restSlot[p] === 'function') {
data[p] = restSlot[p]();
data[p] = <>{restSlot[p]()}</>;
}
});
const childData = convertChildrenToData(children);