Skip to content

Commit

Permalink
Merge pull request #1810 from didi/fix-redefine-data
Browse files Browse the repository at this point in the history
fix: redefine data error
  • Loading branch information
hiyuki authored Jan 13, 2025
2 parents 4c5dd41 + a2cb6e8 commit 45cd200
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/core/src/platform/env/vuePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,23 @@ export default function install (Vue) {
data: {
get () {
return Object.assign({}, this.$props, this.$data)
}
},
enumerable: true,
configurable: true
},
dataset: {
get () {
return collectDataset(this.$attrs, true)
}
},
enumerable: true,
configurable: true
},
id: {
get () {
return this.$attrs.id || ''
}
},
enumerable: true,
configurable: true
}
})

Expand Down

0 comments on commit 45cd200

Please sign in to comment.