全局自适应样式调整,换行自适应行高

This commit is contained in:
zwgczx committed 2026-03-19 17:00:50 +08:00
1 parent 75a6209010
commit 241a6c4003
11 files changed
+329 -77

No files matched your search

+6 -1
View File
@@ -211,7 +211,7 @@ onBeforeUnmount(() => {
<label class="space-y-1.5">
<div class="text-xs text-muted-foreground">费率(%)</div>
<input v-model="rateInput" type="text" inputmode="decimal" placeholder="请输入费率,建议1 ~ 5"
class="h-9 w-full rounded-md border bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-primary/30"
class="rate-input h-9 w-full rounded-md border bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-primary/30"
@blur="applyRateInput" />
</label>
@@ -231,3 +231,8 @@ onBeforeUnmount(() => {
</div>
</template>
<style scoped>
:deep(.rate-input) {
text-align: left !important;
}
</style>