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]support rn ref for wx:for #1653

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

CommanderXL
Copy link
Member

No description provided.

@@ -143,6 +143,16 @@ function createInstance ({ propsRef, type, rawOptions, currentInject, validProps
}
return result
},
_r (refsConf = []) {
Copy link
Collaborator

@hiyuki hiyuki Oct 15, 2024

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
Copy link
Collaborator

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] || []
Copy link
Collaborator

Choose a reason for hiding this comment

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

this.__selectorMap需要在render执行前重置一次

@hiyuki hiyuki merged commit d17e329 into didi:master Oct 18, 2024
2 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.

2 participants