Skip to content

Commit 4980075

Browse files
committed
fix: raw component props
1 parent 29cee1a commit 4980075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/mp/runtime/lifecycle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function getGlobalData (app, rootVueVM) {
4444
* 格式化 properties 属性,并给每个属性加上 observer 方法
4545
*/
4646
function normalizeProperties (vm) {
47-
const properties = vm.$options.properties || {}
47+
const properties = vm.$options.properties || vm.$options.props || {}
4848
const res = {}
4949
let val
5050
for (const key in properties) {

0 commit comments

Comments
 (0)