Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Vue()实例里面的分页如何给组件中的data #1

Open
airzhanglin opened this issue Jun 5, 2017 · 1 comment
Open

Vue()实例里面的分页如何给组件中的data #1

airzhanglin opened this issue Jun 5, 2017 · 1 comment

Comments

@airzhanglin
Copy link

new Vue({
el: '#app',
data: {
allpage: 0,
showItem:0,
current: 1,
},
})
这里面的数据如何同步到组件当中呢

@fecqs
Copy link
Owner

fecqs commented Jun 6, 2017

@airzhanglin 1按照我的例子做应该不会有什么问题。2你这种方式父组价通过传递props的形式 传递数据给子组件。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants