From b5c5eb130ca0848124f9d136af4be142ad5aac07 Mon Sep 17 00:00:00 2001 From: binxie <137736985@qq.com> Date: 星期一, 26 六月 2023 14:42:02 +0800 Subject: [PATCH] backup0626 --- force-app/main/default/lwc/customOutputGood/customOutputGood.js | 57 ++++++++++++++++++++++----------------------------------- 1 files changed, 22 insertions(+), 35 deletions(-) diff --git a/force-app/main/default/lwc/customOutputGood/customOutputGood.js b/force-app/main/default/lwc/customOutputGood/customOutputGood.js index a3b4649..643c9ce 100644 --- a/force-app/main/default/lwc/customOutputGood/customOutputGood.js +++ b/force-app/main/default/lwc/customOutputGood/customOutputGood.js @@ -1,55 +1,42 @@ -import { LightningElement, api, track } from 'lwc'; +import { LightningElement,api,track } from 'lwc'; export default class CustomOutputGood extends LightningElement { @api outputValue; @api outputType; @api recordId; - - get showTitle() { - if (this.outputType == 'Title') { + + get showTitle(){ + if(this.outputType == 'Title'){ return true; - } else { + }else{ return false; } } - get showLink() { - if (this.outputType == 'Title') { - if ( - this.outputValue == '璁㈠崟鏄庣粏姹囨��' || - this.outputValue == '寰呮搷浣滃叆搴撹鍗曟眹鎬�' - ) { + get showLink(){ + if(this.outputType == 'Title'){ + if(this.outputValue == '璁㈠崟鏄庣粏姹囨��' || this.outputValue == '寰呮搷浣滃叆搴撹鍗曟眹鎬�'){ return false; - } else { - return true; + }else{ + return true } - } else { - if ( - this.outputValue == 0 || - this.outputValue == '0' || - this.outputValue == '' - ) { + }else{ + if(this.outputValue == 0 || this.outputValue == '0' || this.outputValue == ''){ return false; - } else { + }else{ return true; } } } - clickLink(event) { - this.dispatchEvent( - new CustomEvent('clicklink', { - composed: true, - bubbles: true, - cancelable: true, - detail: { - data: { - value: this.outputValue, - type: this.outputType, - recordId: this.recordId - } - } - }) - ); + clickLink(event){ + this.dispatchEvent(new CustomEvent('clicklink', { + composed: true, + bubbles: true, + cancelable: true, + detail: { + data: { value: this.outputValue, type: this.outputType, recordId:this.recordId} + } + })); } } \ No newline at end of file -- Gitblit v1.9.1