mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
tweak
This commit is contained in:
parent
5c3edf850b
commit
058c555dac
@ -38,9 +38,8 @@ export function renderMixin (Vue) {
|
||||
return
|
||||
}
|
||||
// check props
|
||||
const props = this.$options.props
|
||||
if (props && data && data.attrs) {
|
||||
for (let key in props) {
|
||||
if (data && data.attrs) {
|
||||
for (let key in this.$options.props) {
|
||||
let oldVal = this[key]
|
||||
let newVal = data.attrs[key] || data.attrs[hyphenate(key)]
|
||||
if (oldVal !== newVal) {
|
||||
|
Loading…
Reference in New Issue
Block a user