如何在Vue中作为道具动态传递组件

时间:2018-09-28 13:16:38

标签: javascript vue.js vuejs2 vue-component

我想知道是否可以做这样的事情:

<Sortable :child-component="List" />
<Sortable :child-component="Menu" />

如果要包装具有某些可重用功能的组件,这将很有用:

让我们说:

mport io

stream_str = io.BytesIO(b"JournalDev Python: \x00\x01")
print(stream_str.getvalue())

这个question差不多了,但是不一样。

0 个答案:

没有答案