服务端渲染子组件获取render函数传入的初始data #604
EzrealDeng
started this conversation in
San
Replies: 1 comment
-
跟csr差不多,render函数里面的data参数就是父组件的data。 代码略做修改: const App = san.defineComponent({
template: '<container><div><hello attr1="{{attr1}}"></hello></container>',
components: {
'container': container,
'hello': hello,
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions