feat: noTranslate attr

This commit is contained in:
Javier Segarra 2024-05-24 08:50:41 +02:00
parent ced4c0aaa3
commit 84e6c2c15b
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ export default boot(({ app }) => {
},
methods: {
translateLabel(labelElement) {
if (Object.keys(this.$attrs).includes('no-translate')) return;
if (labelElement) {
const labelKey = labelElement.textContent.trim();
labelElement.textContent = this.$t(labelKey);

View File

@ -50,6 +50,7 @@ const zones = ref();
<QItemSection>
<VnInput
label="customerFilter.filter.name"
no-translate
v-model="params.name"
is-outlined
/>