yumenghui
2023-08-04 0a3f9325599467015aecc4af7543dd10fe70ec56
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>