大神求助一下,attrs与v-bind的问题:父组件传递一些值,子组件使用attrs接收后对其修改并生成了新的对象,然后将这个新对象传递给了这个子组件下面的组件,现在的问题是这个组件传递下去的为什么还是原来的attrs的内容? #10645
Unanswered
sun-feel
asked this question in
Help/Questions
Replies: 1 comment
-
添加这个: |
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
Uh oh!
There was an error while loading. Please reload this page.
-
父组件传递一些值,子组件使用attrs接收后对其修改并生成了新的对象,然后将这个新对象传递给了这个子组件下面的组件,现在的问题是这个组件传递下去的为什么还是原来的attrs的内容?
修改的方法如下:



使用方法如下:
现在问题就在于传递给el-select组件的为什么还是有filter-method这个属性,并且在控制台报了警告:
上面打印的空对象就是计算属性最后一步打印的返回,不知道这是怎么回事,有大神懂的吗?该怎么处理?谢谢
同时,之前我使用的是方法去处理但是好像也不行,像这样的:


Beta Was this translation helpful? Give feedback.
All reactions