feat(Calendar): add popable prop

This commit is contained in:
陈嘉涵
2019-12-26 10:23:56 +08:00
committed by neverland
parent f49c21a7ca
commit 39179c2336
4 changed files with 80 additions and 48 deletions

View File

@@ -8,15 +8,11 @@
@click="toggle('selectSingleDate', true)"
/>
<van-popup
<van-calendar
v-model="show.selectSingleDate"
round
closeable
position="bottom"
style="height: 80vh;"
>
<van-calendar @select="onSelect($event, 'selectSingleDate')" />
</van-popup>
:poppable="false"
@select="onSelect($event, 'selectSingleDate')"
/>
<van-cell
is-link
@@ -25,18 +21,11 @@
@click="toggle('selectDateRange', true)"
/>
<van-popup
<van-calendar
v-model="show.selectDateRange"
round
closeable
position="bottom"
style="height: 80vh;"
>
<van-calendar
type="range"
@select="onSelect($event, 'selectDateRange')"
/>
</van-popup>
type="range"
@select="onSelect($event, 'selectDateRange')"
/>
</demo-block>
</demo-section>
</template>