From c69e36a64e4954b0b7e818843e8a833b3201ec29 Mon Sep 17 00:00:00 2001
From: liangxiaozhen <liangxiaozhen>
Date: 星期二, 08 八月 2023 18:23:15 +0800
Subject: [PATCH] 页面加lightning样式,开始询价LWC组件修改,补充controller
---
force-app/main/default/lwc/lexReturnGoodCusInput/lexReturnGoodCusInput.js | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/force-app/main/default/lwc/lexReturnGoodCusInput/lexReturnGoodCusInput.js b/force-app/main/default/lwc/lexReturnGoodCusInput/lexReturnGoodCusInput.js
index 84d7bf9..81d837e 100644
--- a/force-app/main/default/lwc/lexReturnGoodCusInput/lexReturnGoodCusInput.js
+++ b/force-app/main/default/lwc/lexReturnGoodCusInput/lexReturnGoodCusInput.js
@@ -1,31 +1,37 @@
-import { LightningElement,api,track } from 'lwc';
+import { LightningElement, api, track } from 'lwc';
export default class LexReturnGoodCusInput extends LightningElement {
@api boxPrice;
@api inputValue;
@api recordId;
- get showInputOrText(){
- if(this.boxPrice == '鐩�'){
+ get showInputOrText() {
+ if (this.boxPrice == '鐩�') {
return false;
- }else{
+ } else {
return true;
}
}
- connectedCallback(){
- console.log('inputValue:'+this.inputValue+this.boxPrice);
+ connectedCallback() {
+ console.log('inputValue:' + this.inputValue + this.boxPrice);
}
- changeInputValue(event){
+ changeInputValue(event) {
this.inputValue = event.detail.value;
- this.dispatchEvent(new CustomEvent('changereturncount', {
- composed: true,
- bubbles: true,
- cancelable: true,
- detail: {
- data: { value: this.inputValue, boxPrice: this.boxPrice, recordId:this.recordId}
- }
- }));
+ this.dispatchEvent(
+ new CustomEvent('changereturncount', {
+ composed: true,
+ bubbles: true,
+ cancelable: true,
+ detail: {
+ data: {
+ value: this.inputValue,
+ boxPrice: this.boxPrice,
+ recordId: this.recordId
+ }
+ }
+ })
+ );
}
}
\ No newline at end of file
--
Gitblit v1.9.1