From 00e147ec892cb1e89d0698787a8c60da1014cdb7 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期一, 26 六月 2023 17:42:22 +0800
Subject: [PATCH] Community升级
---
force-app/main/default/lwc/customUnitComp/customUnitComp.js | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/force-app/main/default/lwc/customUnitComp/customUnitComp.js b/force-app/main/default/lwc/customUnitComp/customUnitComp.js
index 4592b6c..89e69e5 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,22 +6,24 @@
@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