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

props开发工具上父组件可以传值给子组件,在真机ios上就不行。就是拿不到数据 #1894

Open
littleQing opened this issue Nov 4, 2018 · 3 comments

Comments

@littleQing
Copy link

littleQing commented Nov 4, 2018

父组件:

import fakeHtml from './../../utils/fake'
data = {
id: '',
isLongTap: false,
left: (DEVICE_WIDTH - PixelRatio * 568) / 2,
top: 100,
keynoteText: {
class: 'keynote-text'
},
name1: 'myHtmlParserKiner1',
contentHtml: ''
}
onLoad(options) {
this.contentHtml = fakeHtml
this.$apply()
}
子组件:
props = {
parserName: {
type: String,
default: 'htmlParserName'
},
parserContent: {
type: String,
default: "

无内容

"
},
parserType: {
type: String,
default: 'html'
},
parserPadding: {
type: Number,
default: 5
}
}

@littleQing
Copy link
Author

调试小程序,扫码,首次点击页面进来,props传值不过去,返回上一页再次点击进来,props就传递进来了。诡异~~~~~

@acegank
Copy link

acegank commented Jan 19, 2019

同问,最后怎么处理,不想用广播。。

@acegank
Copy link

acegank commented Jan 19, 2019

#270

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

No branches or pull requests

2 participants