Skip to content

Commit

Permalink
fix(countdown-input): add slots support
Browse files Browse the repository at this point in the history
为CountdownInput组件添加Input的插槽支持
  • Loading branch information
mynetfan committed Jul 19, 2021
1 parent 535bddd commit a764a95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- **MultipleTab** 修复可能会意外创建登录路由标签的问题
- **BasicTree** 修复搜索功能可能导致`checkedKeys`丢失的问题
- **CodeEditor** 修复 value 不支持 v-model 用法的问题
- **CountdownInput** 修复不支持`input`插槽的问题
- **其它**
- 修复菜单默认折叠的配置不起作用的问题
- 修复`safari`浏览器报错导致网站打不开
Expand Down
3 changes: 3 additions & 0 deletions src/components/CountDown/src/CountdownInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<template #addonAfter>
<CountButton :size="size" :count="count" :value="state" :beforeStartFunc="sendCodeApi" />
</template>
<template #[item]="data" v-for="item in Object.keys($slots).filter((k) => k !== 'addonAfter')">
<slot :name="item" v-bind="data"></slot>
</template>
</a-input>
</template>
<script lang="ts">
Expand Down

0 comments on commit a764a95

Please sign in to comment.