From d533f39b6fa798e238810d17e928dee75d5b1af7 Mon Sep 17 00:00:00 2001
From: yumenghui <953181891@qq.com>
Date: 星期五, 11 八月 2023 16:02:17 +0800
Subject: [PATCH] 备注添加改造

---
 force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html b/force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html
index 081898f..e7e600a 100644
--- a/force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html
+++ b/force-app/main/default/lwc/lexInputLookupCell/lexInputLookupCell.html
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-27 11:38:36
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-04-27 11:44:04
+ * @LastEditTime: 2023-05-18 16:37:50
 -->
 <template>
     <template if:true={isLookup}>
@@ -12,7 +12,12 @@
             object-api-name={apiName}
             record-id=''
         >
-            <lightning-input-field field-name={fieldName} onclick={handleinputChange} variant="label-hidden"> </lightning-input-field>
+            <template if:true={isRequired}>
+                <lightning-input-field field-name={fieldName} onclick={handleinputChange} variant="label-hidden" disabled={isDisable} required> </lightning-input-field>
+            </template>
+            <template if:false={isRequired}>
+                <lightning-input-field field-name={fieldName} onclick={handleinputChange} variant="label-hidden" disabled={isDisable}> </lightning-input-field>
+            </template>
         </lightning-record-edit-form>
     </template>
 </template>
\ No newline at end of file

--
Gitblit v1.9.1