From 744f42c5496e656a1f9927740a3b37c0b97a6cba Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 14 七月 2023 14:34:12 +0800 Subject: [PATCH] lexcommunityupload0714 --- force-app/main/default/lwc/lexCustomInventoryColor/lexCustomInventoryColor.html | 67 +++++++++------------------------ 1 files changed, 19 insertions(+), 48 deletions(-) diff --git a/force-app/main/default/lwc/lexCustomInventoryColor/lexCustomInventoryColor.html b/force-app/main/default/lwc/lexCustomInventoryColor/lexCustomInventoryColor.html index 4192b57..4407559 100644 --- a/force-app/main/default/lwc/lexCustomInventoryColor/lexCustomInventoryColor.html +++ b/force-app/main/default/lwc/lexCustomInventoryColor/lexCustomInventoryColor.html @@ -1,49 +1,20 @@ <template> - <template if:true={showNormal}> - <div - style=" - margin-left: 10px; - margin-right: 10px; - margin-top: 10px; - margin-bottom: 10px; - font-size: 14px; - text-align: right; - padding-right: 10px; - " - > - <lightning-formatted-number value={value}></lightning-formatted-number> - </div> - </template> - <template if:true={showRed}> - <div - style=" - margin-left: 10px; - margin-right: 10px; - margin-top: 10px; - margin-bottom: 10px; - font-size: 14px; - background-color: red; - text-align: right; - padding-right: 10px; - " - > - <lightning-formatted-number value={value}></lightning-formatted-number> - </div> - </template> - <template if:true={showYellow}> - <div - style=" - margin-left: 10px; - margin-right: 10px; - margin-top: 10px; - margin-bottom: 10px; - font-size: 14px; - background-color: yellow; - text-align: right; - padding-right: 10px; - " - > - <lightning-formatted-number value={value}></lightning-formatted-number> - </div> - </template> -</template> + <template if:true={showNormal}> + <div + style="margin-left: 10px;margin-right: 10px;margin-top: 10px;margin-bottom: 10px;font-size:14px;text-align: right;padding-right:10px;"> + <lightning-formatted-number value={value}></lightning-formatted-number> + </div> + </template> + <template if:true={showRed}> + <div + style="margin-left: 10px;margin-right: 10px;margin-top: 10px;margin-bottom: 10px;font-size:14px;background-color:red;text-align: right;padding-right:10px;"> + <lightning-formatted-number value={value}></lightning-formatted-number> + </div> + </template> + <template if:true={showYellow}> + <div + style="margin-left: 10px;margin-right: 10px;margin-top: 10px;margin-bottom: 10px;font-size:14px;background-color:yellow;text-align: right;padding-right:10px;"> + <lightning-formatted-number value={value}></lightning-formatted-number> + </div> + </template> +</template> \ No newline at end of file -- Gitblit v1.9.1