- il catalogo si aggiorna in base alle impostazioni del template anche per la "Stampa"

This commit is contained in:
Surya Paolo
2025-05-14 20:18:04 +02:00
parent f30cbf072a
commit 300b8434ef
9 changed files with 132 additions and 34 deletions

View File

@@ -57,12 +57,14 @@ export default defineComponent({
const sliderValue = computed({
get: () => {
if (!props.modelValue)
return ''
const mystr = props.modelValue + ''
return mystr.replace(props.addstr, '')
if (!props.modelValue) return 0;
const clean = String(props.modelValue).replace(props.addstr, '');
return Number(clean) || 0;
},
set: (value) => emit('update:modelValue', value ? value + props.addstr : '')
set: (value) => {
const valWithSuffix = value ? value + props.addstr : '';
emit('update:modelValue', valWithSuffix);
}
})
function valoreinc() {