Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
解决countdown-input组件无法显示countdown按钮问题 (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowbook authored Jun 14, 2024
1 parent 4df27ec commit e80c3d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/src/countdown-input/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const slotKeys = computed(() => {

<template>
<vben-input v-bind="attrs" :class="bem()" :size="size" :value="state">
<template #addonAfter>
<template #suffix> <!--NaiveUI的后缀slot写法不是addonAfter是suffx-->
<CountButton
:size="size"
:count="count"
Expand All @@ -54,6 +54,9 @@ const slotKeys = computed(() => {

<style lang="less">
.count-down-input {
.n-input-wrapper{
padding-right:0px; //NaiveUI有Count-down按钮时不需要右边距
}
.ant-input-group-addon {
padding-right: 0;
background-color: transparent;
Expand Down

0 comments on commit e80c3d9

Please sign in to comment.