From de9565270a88b0749d17c1961cd41399c8483c96 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期一, 26 六月 2023 17:46:45 +0800
Subject: [PATCH] merge
---
force-app/main/default/lwc/childComponentTest/childComponentTest.js | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/lwc/childComponentTest/childComponentTest.js b/force-app/main/default/lwc/childComponentTest/childComponentTest.js
new file mode 100644
index 0000000..ebed1f2
--- /dev/null
+++ b/force-app/main/default/lwc/childComponentTest/childComponentTest.js
@@ -0,0 +1,18 @@
+import { LightningElement,api } from 'lwc';
+
+export default class ChildComponentTest extends LightningElement {
+ _currentCount = 0;
+ priorCount = 0;
+ @api counter = 0;
+ get counter() {
+ return this._currentCount;
+ }
+ set counter(value) {
+ this.priorCount = this._currentCount;
+ this._currentCount = value;
+ }
+ @api
+ maximizeCounter() {
+ this.counter += 1000000;
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.1