Skip to content

Commit

Permalink
fix: 修复 datepicker top 插槽未生效问题 (jd-opensource#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Jul 27, 2022
1 parent a1ed369 commit 68874f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/packages/__VUE/datepicker/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
:title="title"
@confirm="confirm"
:isWrapTeleport="isWrapTeleport"
><slot></slot
></nut-picker>
>
<template #top>
<slot name="top"></slot>
</template>
<slot></slot>
</nut-picker>
</template>
<script lang="ts">
import { toRefs, watch, computed, reactive, onBeforeMount } from 'vue';
Expand Down
3 changes: 3 additions & 0 deletions src/packages/__VUE/datepicker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
:isWrapTeleport="isWrapTeleport"
:threeDimensional="threeDimensional"
>
<template #top>
<slot name="top"></slot>
</template>
<slot></slot>
</nut-picker>
</template>
Expand Down

0 comments on commit 68874f7

Please sign in to comment.