提交 f89fb151 编写于 作者: guangjun.yang's avatar guangjun.yang

使用组件默认值有问题

上级 99c0a628
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
}, },
needRightBtn: { needRightBtn: {
type: Boolean, type: Boolean,
default: true default: false
}, },
dataList: { dataList: {
type: Array, type: Array,
......
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
type: 1 type: 1
} }
}, },
allData: {},
dataList: [], dataList: [],
dropdownList: [{ dropdownList: [{
desc: '1分', desc: '1分',
......
<template> <template>
<section> <section>
<CommonHeader title="完成天数排名"></CommonHeader> <CommonHeader title="完成天数排名"></CommonHeader>
<CommonTitleMiniWithDropdown :dataList="dataList" :title="listTitle" :needRightBtn="needRightBtn" @selectSortItem="selectSortItem"></CommonTitleMiniWithDropdown> <CommonTitleMiniWithDropdown :dataList="dataList" :title="listTitle" @selectSortItem="selectSortItem"></CommonTitleMiniWithDropdown>
<RankingItemDays :rankList="rankList"></RankingItemDays> <RankingItemDays :rankList="rankList"></RankingItemDays>
<CommonNoMore class="mt-10"></CommonNoMore> <CommonNoMore class="mt-10"></CommonNoMore>
</section> </section>
......
<template> <template>
<section> <section>
<CommonHeader title="项目情况排名"></CommonHeader> <CommonHeader title="项目情况排名"></CommonHeader>
<CommonTitleWithDropdown :dropdownList="dropdownList" :title="title" :needRightBtn="needRightBtn" @selectSortItem="selectSortItem"></CommonTitleWithDropdown> <CommonTitleWithDropdown :dataList="dropdownList" :title="title" :needRightBtn="needRightBtn" @selectSortItem="selectSortItem"></CommonTitleWithDropdown>
<RankingList :rankList="rankList"></RankingList> <RankingList :rankList="rankList"></RankingList>
<CommonNoMore class="mt-10"></CommonNoMore> <CommonNoMore class="mt-10"></CommonNoMore>
</section> </section>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册