vue父组件怎么给子组件传后台获取的值
1个回答
展开全部
<tr>
<th>#</th>
<th>category name</th>
<th>superior belong</th>
<th>sort</th>
<th>operation</th>
</tr>
</thead>
<tbody>
<tr v-for="cat in categories">
<td>{{ cat.id }}</td>
<td>{{ cat.name }}</td>
<td>{{ cat.parent_id }}</td>
<td>{{ cat.sort_order }}</td>
<td>
<a class="btn btn-primary" v-link="{ path: '/category/edit/' }"><i class="fa fa-edit"> </i>edit</a>
<a class="btn btn-danger" v-link="{ path: '/category/delete/' }"><i class="fa fa-remove"> </i>delete</a>
</td>
</tr>
</tbody>
</table>
<pagination></pagination>
</div>
</template>
<script>
var Pagination = require('../common/Pagination.vue');
var Tab = require('../common/Tab.vue');
export default{
<th>#</th>
<th>category name</th>
<th>superior belong</th>
<th>sort</th>
<th>operation</th>
</tr>
</thead>
<tbody>
<tr v-for="cat in categories">
<td>{{ cat.id }}</td>
<td>{{ cat.name }}</td>
<td>{{ cat.parent_id }}</td>
<td>{{ cat.sort_order }}</td>
<td>
<a class="btn btn-primary" v-link="{ path: '/category/edit/' }"><i class="fa fa-edit"> </i>edit</a>
<a class="btn btn-danger" v-link="{ path: '/category/delete/' }"><i class="fa fa-remove"> </i>delete</a>
</td>
</tr>
</tbody>
</table>
<pagination></pagination>
</div>
</template>
<script>
var Pagination = require('../common/Pagination.vue');
var Tab = require('../common/Tab.vue');
export default{
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询