现在有一个问题,就是有个页面当中使用了
下面的treeList 是后台的item数据可以接收到的,上面的那个就是页面ID ,接收不到,是组件不接受多个参数这样吗?
这个是父页面用组件的写法,我感觉没有什么错? 求各位大佬指点一下。实在不知道哪里出问题
父页面向自定义组件中传递动态变量值?Does the parent page pass dynamic variable values to custom components?
父页面向自定义组件中传递动态变量值?现在有一个问题,就是有个页面当中使用了
下面的treeList 是后台的item数据可以接收到的,上面的那个就是页面ID ,接收不到,是组件不接受多个参数这样吗?
这个是父页面用组件的写法,我感觉没有什么错? 求各位大佬指点一下。实在不知道哪里出问题
Now there is a problem, that is, a page uses a tag and a custom component is used in the tag. Now I want to transfer the page ID of each slide to this component. The item data in the background can be received in the components after passing, but I can't pass the sliding page ID. I feel that the writing method is correct. But I don't know where to get it. The following treelist is the item data that can be received in the background. The one above is the page ID. if not, the component does not accept multiple parameters? This is the way to write the parent page with components. I don't think there is anything wrong with it? Please give me some advice. I don't know what went wrong
回答:
properties: { treeList: { type: Object, value: {} }}
看看你的 currentTab 是啥
原文出处:父页面向自定义组件中传递动态变量值?
传给子组件的数据不支持驼峰吧,tree-list,current-tab-num