Skip to content

Commit

Permalink
fix: input suffix padding
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-wow committed Dec 23, 2024
1 parent 4f0a1b0 commit 44db39b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 5 additions & 0 deletions packages/common/component/ConfigItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,11 @@ export default {
:deep(.tiny-select .tiny-input__inner) {
padding-right: 26px;
}
:deep(.tiny-input-suffix) {
.tiny-input__inner {
padding-right: 28px;
}
}
}
.prop-description {
Expand Down
8 changes: 0 additions & 8 deletions packages/common/component/I18nInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,6 @@ export default {
color: var(--ti-lowcode-icon-bind-color);
}
}
:deep(.tiny-input) {
&.tiny-input-suffix {
.tiny-input__inner {
padding-right: var(--ti-input-suffix-padding-right);
padding-left: var(--ti-input-suffix-padding-left);
}
}
}
}
.popover-content {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<tiny-input v-model="value" :type="type" :placeholder="placeholder" :rows="rows" @update:modelValue="change">
<template #suffix>
<template v-if="suffixIcons?.length" #suffix>
<div v-for="item in suffixIcons" :key="item.icon">
<svg-icon v-if="item.icon" :name="item.icon" class="tiny-svg-size" @click="item.onClick.action"></svg-icon>
</div>
Expand Down

0 comments on commit 44db39b

Please sign in to comment.