Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat react template compiler cr #1482

Merged

Conversation

yandadaFreedom
Copy link
Collaborator

No description provided.

yandadaFreedom and others added 30 commits May 17, 2024 14:11
@@ -221,8 +241,7 @@ const _ScrollView = forwardRef(function _ScrollView(props: ScrollViewProps = {},

function onLayout(e: LayoutChangeEvent) {
scrollOptions.current.visibleLength = selectLength(e.nativeEvent.layout);
scrollOptions.current.offsetLeft = e.nativeEvent.layout.x || 0
scrollOptions.current.offsetTop = e.nativeEvent.layout.y || 0
layoutRef.current = e.nativeEvent.layout
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删除

handleTouchcancel(e, 'capture')
}
}]

function addTouchEvents() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有包一个函数的必要

}

const eventConfigList: EventConfig[] = [
{ bindtap: ['onTouchEnd'] },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个数据结构有点奇怪,为啥不是一个大对象

props: props
props: { ...props, ...additionalProps },
config,
eventConfig: []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eventConfig和config没有必要存ref

WX-DongXing and others added 23 commits May 23, 2024 16:50
@yandadaFreedom yandadaFreedom merged commit d4ba918 into feat-react-template-compiler May 24, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants