binxie
2023-06-26 dd004276162a2bf9d042ff0aaa569dc30a95d827
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<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>