From f05bfc9a39bccc8afb928efe7555f21e0e69c5bd Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 10 七月 2023 10:51:38 +0800
Subject: [PATCH] backupfixtablecolumn0710

---
 force-app/main/default/lwc/customUnitComp/customUnitComp.js |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/force-app/main/default/lwc/customUnitComp/customUnitComp.js b/force-app/main/default/lwc/customUnitComp/customUnitComp.js
index 89e69e5..4592b6c 100644
--- a/force-app/main/default/lwc/customUnitComp/customUnitComp.js
+++ b/force-app/main/default/lwc/customUnitComp/customUnitComp.js
@@ -1,4 +1,4 @@
-import { LightningElement, api } from 'lwc';
+import { LightningElement,api } from 'lwc';
 
 export default class CustomUnitComp extends LightningElement {
     @api unitValue;
@@ -6,24 +6,22 @@
     @api recordId;
     @api isDisabled;
 
-    connectedCallback() {
-        if (this.isDisabled == null) {
+    connectedCallback(){
+        if(this.isDisabled == null){
             this.isDisabled = false;
         }
     }
 
-    handleDataChange(event) {
+    handleDataChange(event){
         console.log('unitValue = ' + event.target.value);
         this.unitValue = event.target.value;
-        this.dispatchEvent(
-            new CustomEvent('unitchange', {
-                composed: true,
-                bubbles: true,
-                cancelable: true,
-                detail: {
-                    data: { unitValue: this.unitValue, recordId: this.recordId }
-                }
-            })
-        );
+        this.dispatchEvent(new CustomEvent('unitchange', {
+            composed: true,
+            bubbles: true,
+            cancelable: true,
+            detail: {
+                data: { unitValue: this.unitValue, recordId: this.recordId }
+            }
+        }));
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1