zhangqian
2023-07-04 32944d1a233be29c0cb27d8ad4f21df868fb98a0
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>