binxie
2024-01-20 2ff0f0a7ab276c3466d9e06e14222db802194efc
1
2
3
4
5
6
7
8
9
10
<template>
    <template if:true={showInputOrText}>
        <lightning-input type="number" variant="label-hidden" value={inputValue} onchange={changeInputValue}></lightning-input>
    </template>
    <template if:false={showInputOrText}>
        <div style="text-align: right;">
            <lightning-formatted-number style="margin-left: 10px;" value={inputValue}></lightning-formatted-number>
        </div>
    </template>
</template>