From 5299c64b4140e5185282e712436df842f432f856 Mon Sep 17 00:00:00 2001 From: dongwei Date: Tue, 8 Mar 2022 18:17:28 +0800 Subject: [PATCH] add test cases Signed-off-by: dongwei --- .../js/default/pages/picker/prop/index.css | 5 +++ .../js/default/pages/picker/prop/index.hml | 34 +++++++++++++++++++ .../js/default/pages/picker/router/index.hml | 5 +-- .../js/default/pages/picker/router/index.js | 9 ++++- 4 files changed, 50 insertions(+), 3 deletions(-) diff --git a/ace/ace_standard/src/main/js/default/pages/picker/prop/index.css b/ace/ace_standard/src/main/js/default/pages/picker/prop/index.css index 6321bd2a8..f315e35c5 100644 --- a/ace/ace_standard/src/main/js/default/pages/picker/prop/index.css +++ b/ace/ace_standard/src/main/js/default/pages/picker/prop/index.css @@ -389,4 +389,9 @@ picker { width: 100%; height: 20px; background-color: red; +} +.picker { + width: 100%; + height: 20px; + background-color: #00ff00; } \ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/picker/prop/index.hml b/ace/ace_standard/src/main/js/default/pages/picker/prop/index.hml index f7abd9fd6..e06739bd9 100644 --- a/ace/ace_standard/src/main/js/default/pages/picker/prop/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/picker/prop/index.hml @@ -140,6 +140,15 @@ picker + + picker + + picker + + picker 渲染属性 -- show @@ -207,5 +216,30 @@ range="{{multitext}}" selected="{{multitextselect}}" > + + picker特有属性 -- picker + + + + + + picker特有属性 -- tid + + + diff --git a/ace/ace_standard/src/main/js/default/pages/picker/router/index.hml b/ace/ace_standard/src/main/js/default/pages/picker/router/index.hml index 6465105fe..afd161b9b 100644 --- a/ace/ace_standard/src/main/js/default/pages/picker/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/picker/router/index.hml @@ -137,6 +137,7 @@ @@ -156,8 +157,8 @@ picker特有事件1 - +
diff --git a/ace/ace_standard/src/main/js/default/pages/picker/router/index.js b/ace/ace_standard/src/main/js/default/pages/picker/router/index.js index 5bf02c858..effb643e1 100644 --- a/ace/ace_standard/src/main/js/default/pages/picker/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/picker/router/index.js @@ -272,7 +272,11 @@ export default { message: 'key:\n' + message }); }, - + onAccessibility (event) { + if (event.eventType === 1) { + console.log("onAccessibility" + JSON.stringify(event)); + } + }, swipe(event){ var direction = event.direction; var distance = event.distance; @@ -576,4 +580,7 @@ export default { multitextoncancel() { prompt.showToast({ message:"multitextoncancel" }) }, + columnchange () { + prompt.showToast({ message:"columnchange" }) + } } -- GitLab