We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def.properties = fns.extend({}, def.properties, { 'ref': { type: String, value: '', observer: function (next) { /** 支持动态 ref */ if (this._$ref !== next) { var $refs = this.$parent && this.$parent.$refs if ($refs) { let ref = $refs[this._$ref] delete $refs[this._$ref] this._$ref = next if (ref && next) { $refs[next] } } } } },
这一段中,最后的
if (ref && next) { $refs[next] }
有什么用么?$refs[next]也不是一个方法啊?
$refs[next]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这一段中,最后的
有什么用么?
$refs[next]
也不是一个方法啊?The text was updated successfully, but these errors were encountered: