-
Notifications
You must be signed in to change notification settings - Fork 373
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
Feat react template compiler cr #1482
Conversation
@@ -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 |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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'] }, |
There was a problem hiding this comment.
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: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventConfig和config没有必要存ref
… into feat-react-template-compiler-cr
…didi/mpx into feat-react-template-compiler-cr
… into feat-react-template-compiler-cr
… into feat-react-template-compiler-cr
Feat unify comps
No description provided.