chore: use gen instead of render (#4922)

This commit is contained in:
neverland
2019-11-05 09:12:03 +08:00
committed by GitHub
parent 9c54a77845
commit 56e9b7afa0
11 changed files with 46 additions and 46 deletions
+3 -3
View File
@@ -29,7 +29,7 @@ function AddressList(
slots: AddressListSlots,
ctx: RenderContext<AddressListProps>
) {
function renderList(list?: AddressItemData[], disabled?: boolean) {
function genList(list?: AddressItemData[], disabled?: boolean) {
if (!list) {
return;
}
@@ -57,8 +57,8 @@ function AddressList(
));
}
const List = renderList(props.list);
const DisabledList = renderList(props.disabledList, true);
const List = genList(props.list);
const DisabledList = genList(props.disabledList, true);
return (
<div class={bem()} {...inherit(ctx)}>