Commit a764a95ae9a6cff831f75aa97b00724cadc48e92
1 parent
535bdddf
fix(countdown-input): add `slots` support
为CountdownInput组件添加Input的插槽支持
Showing
2 changed files
with
4 additions
and
0 deletions
CHANGELOG.zh_CN.md
src/components/CountDown/src/CountdownInput.vue
... | ... | @@ -3,6 +3,9 @@ |
3 | 3 | <template #addonAfter> |
4 | 4 | <CountButton :size="size" :count="count" :value="state" :beforeStartFunc="sendCodeApi" /> |
5 | 5 | </template> |
6 | + <template #[item]="data" v-for="item in Object.keys($slots).filter((k) => k !== 'addonAfter')"> | |
7 | + <slot :name="item" v-bind="data"></slot> | |
8 | + </template> | |
6 | 9 | </a-input> |
7 | 10 | </template> |
8 | 11 | <script lang="ts"> | ... | ... |