mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 07:27:33 +08:00
modify style
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
:rules="enableRules ? rules : []" v-model="currentValue"
|
||||
@keydown="onKeyUpDown" @keyup="onKeyUpDown">
|
||||
<template #prepend-inner v-if="currency && prependText">
|
||||
<div style="margin-top: 2px">{{ prependText }}</div>
|
||||
<div>{{ prependText }}</div>
|
||||
</template>
|
||||
<template #append-inner v-if="currency && appendText">
|
||||
<div class="text-no-wrap">{{ appendText }}</div>
|
||||
@@ -71,6 +71,10 @@ export default {
|
||||
finalClass += ` text-${this.color}`;
|
||||
}
|
||||
|
||||
if (this.currency && this.prependText) {
|
||||
finalClass += ` has-pretend-text`;
|
||||
}
|
||||
|
||||
return finalClass;
|
||||
},
|
||||
prependText() {
|
||||
@@ -168,3 +172,9 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.text-field-with-colored-label.has-pretend-text .v-field__input {
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user