From 3962c2bb0435484b60a3e408e4738d792e249a53 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期一, 05 六月 2023 11:09:55 +0800
Subject: [PATCH] LEX CommunityNewCmp
---
force-app/main/default/lwc/customOutputGood/customOutputGood.js | 42 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/customOutputGood/customOutputGood.js b/force-app/main/default/lwc/customOutputGood/customOutputGood.js
new file mode 100644
index 0000000..643c9ce
--- /dev/null
+++ b/force-app/main/default/lwc/customOutputGood/customOutputGood.js
@@ -0,0 +1,42 @@
+import { LightningElement,api,track } from 'lwc';
+
+export default class CustomOutputGood extends LightningElement {
+ @api outputValue;
+ @api outputType;
+ @api recordId;
+
+ get showTitle(){
+ if(this.outputType == 'Title'){
+ return true;
+ }else{
+ return false;
+ }
+ }
+
+ get showLink(){
+ if(this.outputType == 'Title'){
+ if(this.outputValue == '璁㈠崟鏄庣粏姹囨��' || this.outputValue == '寰呮搷浣滃叆搴撹鍗曟眹鎬�'){
+ return false;
+ }else{
+ return true
+ }
+ }else{
+ if(this.outputValue == 0 || this.outputValue == '0' || this.outputValue == ''){
+ return false;
+ }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}
+ }
+ }));
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.1