From 988f9735377909b6310301e582c15804e004783f Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期六, 07 十月 2023 10:36:13 +0800
Subject: [PATCH] 近期修改cjw

---
 force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js
index e459cd4..6c82379 100644
--- a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js
+++ b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-05-25 13:59:44
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-08-16 13:59:32
+ * @LastEditTime: 2023-09-27 15:30:05
  */
 import { LightningElement, track, api } from 'lwc';
 import getRecordsByName from '@salesforce/apex/lexLookupController.getRecordsByName'
@@ -43,11 +43,14 @@
         
     }
     connectedCallback(){
+        
         if(this.initValue != '' && this.initValue != undefined && this.initValue != null){
             this.recordselected = true;
             this.selectedValue = this.initValue;
         }
     }
+   
+    
     @api
     letDisabledTrue(){
         this.recordselected = false;
@@ -65,6 +68,7 @@
     //Method to clear search list and show selected value.
     @api
     clearSelection() {
+        console.log('qwer');
         this.recordselected = false;
         this.selectedValue = "";
         this.recordsList = undefined;
@@ -90,4 +94,7 @@
         });
         this.dispatchEvent(selectedEvent);
     }
+    clear(){
+        this.recordsList = undefined;
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.1