From f468cf2097808f7c7708d0554b016a50e088871e Mon Sep 17 00:00:00 2001 From: bayanxing Date: Tue, 8 Feb 2022 16:24:30 +0800 Subject: [PATCH] =?UTF-8?q?codecheck=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bayanxing --- .../src/main/js/default/pages/toggle/index.hml | 6 +++--- .../src/main/js/default/pages/toggle/index.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ace/ace_standard/src/main/js/default/pages/toggle/index.hml b/ace/ace_standard/src/main/js/default/pages/toggle/index.hml index 7e98d842a..db8059297 100644 --- a/ace/ace_standard/src/main/js/default/pages/toggle/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/toggle/index.hml @@ -7,7 +7,7 @@ 2. Single choice example
-
@@ -18,7 +18,7 @@ 4. Single choice example
-
@@ -30,7 +30,7 @@ 6. Single
-
diff --git a/ace/ace_standard/src/main/js/default/pages/toggle/index.js b/ace/ace_standard/src/main/js/default/pages/toggle/index.js index 5cd03baef..f4233f4cb 100644 --- a/ace/ace_standard/src/main/js/default/pages/toggle/index.js +++ b/ace/ace_standard/src/main/js/default/pages/toggle/index.js @@ -15,7 +15,7 @@ export default { data: { - toggle_List: [ + toggleList: [ { "id":"1001", "name":"Living room", "checked":true }, { "id":"1002", "name":"Bedroom", "checked":false }, { "id":"1003", "name":"Second bedroom", "checked":false }, @@ -30,10 +30,10 @@ export default { allchange(e) { if (e.checked === true) { for (var i = 0; i < this.toggle_list.length; i++) { - if (this.toggle_List[i].id === this.idx) { - this.toggle_List[i].checked = true + if (this.toggleList[i].id === this.idx) { + this.toggleList[i].checked = true } else { - this.toggle_List[i].checked = false + this.toggleList[i].checked = false } } } -- GitLab