-
Notifications
You must be signed in to change notification settings - Fork 382
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]support rn ref for wx:for #1653
[feat]support rn ref for wx:for #1653
Conversation
@@ -143,6 +143,16 @@ function createInstance ({ propsRef, type, rawOptions, currentInject, validProps | |||
} | |||
return result | |||
}, | |||
_r (refsConf = []) { |
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.
_r好像被用过
@@ -1719,41 +1719,53 @@ function processRefReact (el, meta) { | |||
meta.refs = [] | |||
} | |||
const all = !!forScopes.length | |||
const forIndexs = all ? forScopes.map(scope => scope.index).join('+') : null |
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 [key, type, prefix, selectors = ''] = item | ||
selectors.trim().split(/\s+/).forEach(item => { | ||
const selector = prefix + item | ||
this.__selectorMap[selector] = this.__selectorMap[selector] || [] |
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.
this.__selectorMap需要在render执行前重置一次
No description provided.