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

使用组件默认值有问题

上级 99c0a628
......@@ -26,7 +26,7 @@ export default {
},
needRightBtn: {
type: Boolean,
default: true
default: false
},
dataList: {
type: Array,
......
......@@ -40,6 +40,7 @@ export default {
type: 1
}
},
allData: {},
dataList: [],
dropdownList: [{
desc: '1分',
......
<template>
<section>
<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>
<CommonNoMore class="mt-10"></CommonNoMore>
</section>
......
<template>
<section>
<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>
<CommonNoMore class="mt-10"></CommonNoMore>
</section>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册