diff --git a/OAT.xml b/OAT.xml index 687a86fb22ef6fd747990ad703d98801ce139fe7..89cdf49e8c16d8db27d4ccbb8499e38fed276a46 100755 --- a/OAT.xml +++ b/OAT.xml @@ -53,6 +53,12 @@ Note:If the text contains special characters, please escape them according to th --> + + + + + + diff --git a/ace/ace_standard/Test.json b/ace/ace_standard/Test.json index 5b76efdfbfa0d016a74b185e9c28e19c5b4bea1a..f0b72b181f98dfa7f16b9d59d2e695de3d24dbd7 100755 --- a/ace/ace_standard/Test.json +++ b/ace/ace_standard/Test.json @@ -2,9 +2,9 @@ "description": "Configuration for aceceshi Tests", "driver": { "type": "JSUnitTest", - "test-timeout": "60000", + "test-timeout": "80000", "package": "com.example.aceceshi", - "shell-timeout": "60000" + "shell-timeout": "80000" }, "kits": [ { diff --git a/ace/ace_standard/src/main/config.json b/ace/ace_standard/src/main/config.json index 628d13defeff53d7d71e8ff3244dd2b1a43dff93..9f5bd3de29023d3ad3e42b0631039548d9e76925 100755 --- a/ace/ace_standard/src/main/config.json +++ b/ace/ace_standard/src/main/config.json @@ -55,7 +55,17 @@ "pages/button/index", "pages/chart/index", "pages/input/index", - "pages/slider/index" + "pages/slider/index", + "pages/text/index", + "pages/divider/index", + "pages/image/index", + "pages/label/index", + "pages/rating/index", + "pages/search/index", + "pages/toolbar/index", + "pages/textarea/index", + "pages/menu/index", + "pages/search/index" ], "name": "default", "window": { diff --git a/ace/ace_standard/src/main/js/default/common/images/icon.png b/ace/ace_standard/src/main/js/default/common/images/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c Binary files /dev/null and b/ace/ace_standard/src/main/js/default/common/images/icon.png differ diff --git a/ace/ace_standard/src/main/js/default/common/images/image.png b/ace/ace_standard/src/main/js/default/common/images/image.png new file mode 100644 index 0000000000000000000000000000000000000000..7291fc63700cf23dfa9a82db2f3e2eab61931cce Binary files /dev/null and b/ace/ace_standard/src/main/js/default/common/images/image.png differ diff --git a/ace/ace_standard/src/main/js/default/common/images/star-1-1.png b/ace/ace_standard/src/main/js/default/common/images/star-1-1.png new file mode 100644 index 0000000000000000000000000000000000000000..990c5e5ad20698c7701faf641bc80eb004a127b7 Binary files /dev/null and b/ace/ace_standard/src/main/js/default/common/images/star-1-1.png differ diff --git a/ace/ace_standard/src/main/js/default/common/images/star-1-2.png b/ace/ace_standard/src/main/js/default/common/images/star-1-2.png new file mode 100644 index 0000000000000000000000000000000000000000..450c3dd3ca68bf601bd08e5f41797d376e20d00d Binary files /dev/null and b/ace/ace_standard/src/main/js/default/common/images/star-1-2.png differ diff --git a/ace/ace_standard/src/main/js/default/common/images/star-1-3.png b/ace/ace_standard/src/main/js/default/common/images/star-1-3.png new file mode 100644 index 0000000000000000000000000000000000000000..1044869832b423a5dfc2559a395529377bd34f0c Binary files /dev/null and b/ace/ace_standard/src/main/js/default/common/images/star-1-3.png differ diff --git a/ace/ace_standard/src/main/js/default/pages/divider/index.css b/ace/ace_standard/src/main/js/default/pages/divider/index.css new file mode 100644 index 0000000000000000000000000000000000000000..a89e102a24a3b0b19e893123ed4e5b0f8f6bab27 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/divider/index.css @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* xxx.css */ +.container { + margin: 20px; + flex-direction:column; + width:100%; + height:100%; +} + +.title{ + font-size: 16px; + margin: 2px; + padding: 2px; + color: grey; + font-weight: bold; + text-align: center; +} + +.divider1{ + width: 100%; + height: 100%; + min-width: 25px; + min-height: 10px; + max-width: 300px; + max-height: 50px; + padding-left: 10px; + padding-top: 20px; + padding-right: 15px; + padding-bottom: 5px; + margin-left: 10px; + margin-top: 20px; + margin-right: 15px; + margin-bottom: 5px; + border-left-style: solid; + border-right-style: dashed; + border-top-style: dashed; + border-bottom-style: dotted; + border-left-width: 5px; + border-right-width: 10px; + border-top-width: 15px; + border-bottom-width: 20px; + border-left-color: #ff0000; + border-right-color: #00ff00; + border-top-color: #0000ff; + border-bottom-color: #fff000; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 15px; + border-top-left-radius: 8px; + border-top-right-radius: 12px; + background: linear-gradient(pink,#fff000); + box-shadow: 2px 4px 6px 8px #888888; + opacity: 0.5; + display: flex; + visibility: visible; + align-self: center; + image-fill: #000fff; + clip-path: margin-box; +} + +.divider2{ + width: 50px; + height: 100px; + padding-start: 10px; + padding-end: 15px; + margin-start: 5px; + margin-end: 10px; + border-style: dotted; + border-width: 2px; + border-color:#000000; + border-radius:5px; + background-color:#ffaa00; + mask-image: url('common/images/icon.png'); + mask-size: cover; + mask-position: center; + flex:1; + flex-grow: 2; + flex-basis: 10px; + flex-shrink: 1; +} + +.divider3{ + width: 100px; + height: 50px; + padding: 10px; + margin: 5px; + border-left: 1px solid #000000; + border-right: 2px dashed #00ff00; + border-top: 1.5px dotted #0000ff; + border-bottom: 2.5px dotted #fff000; + background-image:url('common/images/image.png'); + background-size:contain; + background-repeat: repeat-x; + background-position: center; +} + +.divider4{ + width: 150px; + height: 50px; + padding: 10px; + margin: 5px; + border: 2px solid #000000; +} + +.contain1{ + width: 150px; + height: 70px; + flex-direction: column; +} + +.divider5{ + width: 120px; + height: 30px; + background-color: yellow; + border-image-source: url('/common/images/image.png'); + border-image-slice: 1px 2px 3px 4px; + border-image-width: 2px 3px 4px 5px; + border-image-outset: 3px 4px 5px 6px; + border-image-repeat: repeat; +} + +.divider6{ + width: 120px; + height: 30px; + position: absolute; + left: 10px; + top: 35px; + bottom: 5px; + right: 10px; + background-color: pink; + border-image: url('common/images/icon.png') 1px 2px 3px 4px 2px 3px 4px 5px 3px 4px 5px 6px round; +} + +.divider7 { + margin-bottom: 50px; + margin-top: 10px; + color: green; + stroke-width: 30px; + line-cap: round; +} diff --git a/ace/ace_standard/src/main/js/default/pages/divider/index.hml b/ace/ace_standard/src/main/js/default/pages/divider/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..846f2afd832f12f0519e215c75acd065ba62faa3 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/divider/index.hml @@ -0,0 +1,51 @@ + + +
+ + divider通用样式1 + + + + + divider通用样式2 + + + + + divider通用样式3 + + + + + divider通用样式4 + + + + + divider通用样式5 + +
+ + + + +
+ + divider特有样式 + + + +
diff --git a/ace/ace_standard/src/main/js/default/pages/divider/index.js b/ace/ace_standard/src/main/js/default/pages/divider/index.js new file mode 100644 index 0000000000000000000000000000000000000000..09b6736a15d613476b8d437b93f9f661d5b36f2b --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/divider/index.js @@ -0,0 +1,20 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export default { + data: { + title: 'World' + } +} diff --git a/ace/ace_standard/src/main/js/default/pages/image/index.css b/ace/ace_standard/src/main/js/default/pages/image/index.css new file mode 100644 index 0000000000000000000000000000000000000000..bf19d9de6096e135a15cf4fd91a4a4cd241c9c8d --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/image/index.css @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.container { + flex-direction: column; /* 设置容器内的项目纵向排列 */ + justify-content: center; /* 设置项目位于容器主轴的中心 */ + align-items: center; /* 项目在交叉轴居中 */ + width:100%; + height:100%; +} + + +#one { + width: 100%; + height: 100%; + min-width: 25px; + min-height: 10px; + max-width: 300px; + max-height: 50px; + padding-left: 10px; + padding-top: 20px; + padding-right: 15px; + padding-bottom: 5px; + margin-left: 10px; + margin-top: 20px; + margin-right: 15px; + margin-bottom: 5px; + border-left-style: solid; + border-right-style: dashed; + border-top-style: dashed; + border-bottom-style: dotted; + border-left-width: 5px; + border-right-width: 10px; + border-top-width: 15px; + border-bottom-width: 20px; + border-left-color: #ff0000; + border-right-color: #00ff00; + border-top-color: #0000ff; + border-bottom-color: #fff000; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 15px; + border-top-left-radius: 8px; + border-top-right-radius: 12px; + background: linear-gradient(pink,#fff000); + box-shadow: 2px 4px 6px 8px #888888; + opacity: 0.5; + display: flex; + visibility: visible; + align-self: center; + image-fill: #000fff; + clip-path: margin-box; +} + +#two{ + width: 100px; + height: 150px; + padding-start: 10px; + padding-end: 15px; + margin-start: 5px; + margin-end: 10px; + border-style: dotted; + border-width: 2px; + border-color:#000000; + border-radius:5px; + background-color:#ffaa00; + mask-image: url('common/images/icon.png'); + mask-size: cover; + mask-position: center; + flex:1; + flex-grow: 2; + flex-basis: 10px; + flex-shrink: 1; +} + +#three{ + width: 100px; + height: 50px; + padding: 10px; + margin: 5px; + border-left: 1px solid #000000; + border-right: 2px dashed #00ff00; + border-top: 1.5px dotted #0000ff; + border-bottom: 2.5px dotted #fff000; + background-image:url('common/images/image.png'); + background-size:contain; + background-repeat: repeat-x; + background-position: center; +} + +#four{ + width: 150px; + height: 50px; + padding: 10px; + margin: 5px; + border: 1px solid #000000; +} + +.contain1{ + width: 150px; + height: 70px; + flex-direction: column; +} + +#five { + width: 120px; + height: 30px; + background-color: yellow; + border-image-source: url('/common/images/image.png'); + border-image-slice: 1px 2px 3px 4px; + border-image-width: 2px 3px 4px 5px; + border-image-outset: 3px 4px 5px 6px; + border-image-repeat: repeat; +} + +#six{ + width: 120px; + height: 30px; + position: absolute; + left: 10px; + top: 35px; + bottom: 5px; + right: 10px; + background-color: pink; + border-image: url('common/images/icon.png') 1px 2px 3px 4px 2px 3px 4px 5px 3px 4px 5px 6px round; +} + +#seven{ + object-fit:cover; + match-text-direction:true; + fit-original-size:true; + object-position:left; + margin-top: 15px; + margin-bottom: 15px; +} diff --git a/ace/ace_standard/src/main/js/default/pages/image/index.hml b/ace/ace_standard/src/main/js/default/pages/image/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..7d944da0c37a32f5c1c852e0dc00900a4ec6d3c2 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/image/index.hml @@ -0,0 +1,83 @@ + + +
+ + common/images/image.png + + + common/images/image.png + + + common/images/image.png + + + common/images/image.png + + +
+ common/images/image.png + + common/images/image.png + +
+ + common/images/image.png + +
diff --git a/ace/ace_standard/src/main/js/default/pages/image/index.js b/ace/ace_standard/src/main/js/default/pages/image/index.js new file mode 100644 index 0000000000000000000000000000000000000000..340173be1a6ec22fa90abccfc38e7ed7e99fc317 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/image/index.js @@ -0,0 +1,18 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export default { + +} \ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/label/index.css b/ace/ace_standard/src/main/js/default/pages/label/index.css new file mode 100644 index 0000000000000000000000000000000000000000..de4cb7be577188b46ee678d384080f758065f5e4 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/label/index.css @@ -0,0 +1,37 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/*xxx.css */ +.container { + flex-direction: column; + align-items: center; +} + +.row { + flex-direction: row; + justify-content: space-between; + width: 100%; +} + +.label { + width: 200px; + margin-top: 50px; + margin-left: 10px; +} + +.input { + margin-top: 50px; + margin-right: 20px; +} diff --git a/ace/ace_standard/src/main/js/default/pages/label/index.hml b/ace/ace_standard/src/main/js/default/pages/label/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..3488acba20b96fa5e965c9852697b6598cce818c --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/label/index.hml @@ -0,0 +1,29 @@ + + +
+
+ + +
+
+ + +
+
+ + +
+
diff --git a/ace/ace_standard/src/main/js/default/pages/label/index.js b/ace/ace_standard/src/main/js/default/pages/label/index.js new file mode 100644 index 0000000000000000000000000000000000000000..09b6736a15d613476b8d437b93f9f661d5b36f2b --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/label/index.js @@ -0,0 +1,20 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export default { + data: { + title: 'World' + } +} diff --git a/ace/ace_standard/src/main/js/default/pages/menu/index.css b/ace/ace_standard/src/main/js/default/pages/menu/index.css new file mode 100644 index 0000000000000000000000000000000000000000..f004e9fc3a55431049fec7b2617d8b6e41eafee1 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/menu/index.css @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.container { + flex-direction: column; + align-items: flex-start; + justify-content: center; +} + +.menu1{ + text-color:red; + font-size:20px; + allow-scale:true; + letter-spacing:5px; + font-style:normal; + font-weight:200; + font-family:sans-serif; + min-width: 25px; + min-height: 10px; + max-width: 300px; + max-height: 50px; + padding-left: 10px; + padding-top: 20px; + padding-right: 15px; + padding-bottom: 5px; + margin-left: 10px; + margin-top: 20px; + margin-right: 15px; + margin-bottom: 5px; +} + +.menu2{ + text-color:yellow; + font-size:20px; + allow-scale:false; + letter-spacing:5px; + font-style:italic; + font-weight:300; + font-family:sans-serif; + margin: 20px; +} + +.menu3{ + text-color:beige; + font-size:20px; + allow-scale:true; + letter-spacing:5px; + font-style:normal; + font-weight:200; + font-family:sans-serif; + margin: 20px; +} + +.menu4{ + text-color:aqua; + font-size:20px; + allow-scale:false; + letter-spacing:5px; + font-style:italic; + font-weight:200; + font-family:sans-serif; + margin: 20px; +} + +.contain1{ + width: 150px; + height: 150px; + flex-direction: column; +} + +.menu5{ + text-color:saddlebrown; + font-size:30px; + allow-scale:true; + letter-spacing:5px; + font-style:normal; + font-weight:300; + font-family:sans-serif; + margin: 20px; +} + +.menu6{ + text-color:darkcyan; + font-size:40px; + allow-scale:false; + letter-spacing:5px; + font-style:italic; + font-weight:200; + font-family:sans-serif; + margin: 20px; +} + +.menu7 { + text-color:navajowhite; + font-size:60px; + allow-scale:true; + letter-spacing:10px; + font-style:normal; + font-weight:500; + font-family:sans-serif; + margin: 20px; +} diff --git a/ace/ace_standard/src/main/js/default/pages/menu/index.hml b/ace/ace_standard/src/main/js/default/pages/menu/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..32c0ffb92cbd56eaac4b1ab45ef83a32240eb2ea --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/menu/index.hml @@ -0,0 +1,70 @@ + + +
+ + menu1 + + + + + + + menu2 + + + + + + + menu3 + + + + + + + menu4 + + + + + + +
+ menu5 + + + + + + + menu6 + + + + + +
+ + menu7 + + + + + + +
\ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/menu/index.js b/ace/ace_standard/src/main/js/default/pages/menu/index.js new file mode 100644 index 0000000000000000000000000000000000000000..c80df9b1c13894820780dba65519f294ede44d31 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/menu/index.js @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import prompt from '@system.prompt'; +export default { + onMenuSelected(e) { + prompt.showToast({ + message: e.value + }) + }, + onTextClick1() { + this.$element('apiMenu1').show({x:120,y:10}); + }, + onTextClick2() { + this.$element('apiMenu2').show({x:120,y:80}); + }, + onTextClick3() { + this.$element('apiMenu3').show({x:120,y:150}); + }, + onTextClick4() { + this.$element('apiMenu4').show({x:120,y:220}); + }, + onTextClick5() { + this.$element('apiMenu5').show({x:120,y:290}); + }, + onTextClick6() { + this.$element('apiMenu6').show({x:120,y:360}); + }, + onTextClick7() { + this.$element('apiMenu7').show({x:120,y:650}); + } +} \ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/rating/index.css b/ace/ace_standard/src/main/js/default/pages/rating/index.css new file mode 100644 index 0000000000000000000000000000000000000000..506839dcae4546a1afe41a11d796d6a5b496d087 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/rating/index.css @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* xxx.css */ +.container { + flex-direction: column; + width: 100%; + height: 100%; +} + +.title{ + font-size: 16px; + margin: 2px; + padding: 2px; + color: grey; + font-weight: bold; + text-align: center; +} + +.rating1{ + width: 100%; + height: 100%; + min-width: 25px; + min-height: 10px; + max-width: 300px; + max-height: 50px; + padding-left: 10px; + padding-top: 20px; + padding-right: 15px; + padding-bottom: 5px; + margin-left: 10px; + margin-top: 20px; + margin-right: 15px; + margin-bottom: 5px; + border-left-style: solid; + border-right-style: dashed; + border-top-style: dashed; + border-bottom-style: dotted; + border-left-width: 2px; + border-right-width: 3px; + border-top-width:4px; + border-bottom-width: 5px; + border-left-color: #ff0000; + border-right-color: #00ff00; + border-top-color: #0000ff; + border-bottom-color: #fff000; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 15px; + border-top-left-radius: 8px; + border-top-right-radius: 12px; + background: linear-gradient(darkgreen,#000000); + box-shadow: 2px 4px 6px 8px #888888; + opacity: 0.5; + display: flex; + visibility: visible; + align-self: center; + image-fill: #000fff; + clip-path: margin-box; +} + +.rating2{ + width: 80%; + height: 100px; + padding-start: 10px; + padding-end: 15px; + margin-start: 5px; + margin-end: 10px; + border-style: dotted; + border-width: 2px; + border-color:#000000; + border-radius:5px; + background-color:#ffaa00; + mask-image: url('common/images/icon.png'); + mask-size: cover; + mask-position: center; + flex:1; + flex-grow: 2; + flex-basis: 10px; + flex-shrink: 1; +} + +.rating3{ + width: 300px; + height: 50px; + padding: 10px; + margin: 5px; + border-left: 1px solid #000000; + border-right: 2px dashed #00ff00; + border-top: 1.5px dotted #0000ff; + border-bottom: 2.5px dotted #fff000; + background-image:url('common/images/image.png'); + background-size:contain; + background-repeat: repeat-x; + background-position: center; +} + +.rating4{ + width: 150px; + height: 50px; + padding: 10px; + margin: 5px; + border: 2px solid #000000; +} + +.contain1{ + width: 150px; + height: 70px; + flex-direction: column; +} + +.rating5{ + width: 120px; + height: 30px; + background-color: yellow; + border-image-source: url('/common/images/image.png'); + border-image-slice: 1px 2px 3px 4px; + border-image-width: 2px 3px 4px 5px; + border-image-outset: 3px 4px 5px 6px; + border-image-repeat: repeat; +} + +.rating6{ + width: 120px; + height: 30px; + position: absolute; + left: 10px; + top: 35px; + bottom: 5px; + right: 10px; + background-color: pink; + border-image: url('common/images/icon.png') 1px 2px 3px 4px 2px 3px 4px 5px 3px 4px 5px 6px round; +} + +.rating7 { + width: 90%; + height: 40px; + star-background: url('common/images/star-1-1.png'); + star-foreground: url('common/images/star-1-3.png'); + star-secondary: url('common/images/star-1-2.png'); + rtl-flip:false +} + +.rating8 { + width: 100%; + margin: 10px; + rtl-flip:true +} + diff --git a/ace/ace_standard/src/main/js/default/pages/rating/index.hml b/ace/ace_standard/src/main/js/default/pages/rating/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..957e95dc121d912206bc18e5378352cd742a09d9 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/rating/index.hml @@ -0,0 +1,53 @@ + + +
+ + rating通用样式1 + + + + + rating通用样式2 + + + + + rating通用样式3 + + + + + rating通用样式4 + + + + + rating通用样式5 + +
+ + + + +
+ + rating特有样式 + + + + + +
\ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/rating/index.js b/ace/ace_standard/src/main/js/default/pages/rating/index.js new file mode 100644 index 0000000000000000000000000000000000000000..2223f1c842233b3f699cd6a4ff5f4eb59c7f58b2 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/rating/index.js @@ -0,0 +1,23 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import prompt from '@system.prompt'; +export default { + changeRating(e){ + prompt.showToast({ + message: e.rating + }); + } +} diff --git a/ace/ace_standard/src/main/js/default/pages/search/index.css b/ace/ace_standard/src/main/js/default/pages/search/index.css new file mode 100644 index 0000000000000000000000000000000000000000..f6d0404fc55dfb70b793dea48541d410e12d7d09 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/search/index.css @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.container { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} + +.search1{ + font-weight: 400; + font-size: 15px; + width: 100%; + height: 100%; + min-width: 25px; + min-height: 10px; + max-width: 300px; + max-height: 50px; + padding-left: 10px; + padding-top: 20px; + padding-right: 15px; + padding-bottom: 5px; + margin-left: 10px; + margin-top: 20px; + margin-right: 15px; + margin-bottom: 5px; + border-left-style: solid; + border-right-style: dashed; + border-top-style: dashed; + border-bottom-style: dotted; + border-left-width: 5px; + border-right-width: 10px; + border-top-width: 15px; + border-bottom-width: 20px; + border-left-color: #ff0000; + border-right-color: #00ff00; + border-top-color: #0000ff; + border-bottom-color: #fff000; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 15px; + border-top-left-radius: 8px; + border-top-right-radius: 12px; + background: linear-gradient(pink,#fff000); + box-shadow: 2px 4px 6px 8px #888888; + opacity: 0.5; + display: flex; + visibility: visible; + align-self: center; + image-fill: #000fff; + clip-path: margin-box; +} + +.search2{ + width: 300px; + height: 100px; + padding-start: 10px; + padding-end: 15px; + margin-start: 5px; + margin-end: 10px; + border-style: dotted; + border-width: 2px; + border-color:#000000; + border-radius:5px; + background-color:#ffaa00; + mask-image: url('common/images/icon.png'); + mask-size: cover; + mask-position: center; + flex:1; + flex-grow: 2; + flex-basis: 10px; + flex-shrink: 1; +} + +.search3{ + width: 400px; + height: 50px; + padding: 10px; + margin: 5px; + border-left: 1px solid #000000; + border-right: 2px dashed #00ff00; + border-top: 1.5px dotted #0000ff; + border-bottom: 2.5px dotted #fff000; + background-image:url('common/images/image.png'); + background-size:contain; + background-repeat: repeat-x; + background-position: center; +} + +.search4{ + width: 450px; + height: 50px; + padding: 10px; + margin: 5px; + border: 1px solid #000000; +} + +.contain1{ + width: 450px; + height: 70px; + flex-direction: column; +} + +.search5{ + width: 400px; + height: 30px; + background-color: yellow; + border-image-source: url('/common/images/image.png'); + border-image-slice: 1px 2px 3px 4px; + border-image-width: 2px 3px 4px 5px; + border-image-outset: 3px 4px 5px 6px; + border-image-repeat: repeat; +} + +.search6{ + width: 400px; + height: 30px; + position: absolute; + left: 10px; + top: 35px; + bottom: 5px; + right: 10px; + background-color: pink; + border-image: url('common/images/icon.png') 1px 2px 3px 4px 2px 3px 4px 5px 3px 4px 5px 6px round; +} + +.search7 { + width: 100%; + margin: 20px; + color: pink; + placeholder-color: cornflowerblue; + caret-color: darkorange; +} diff --git a/ace/ace_standard/src/main/js/default/pages/search/index.hml b/ace/ace_standard/src/main/js/default/pages/search/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..0766e60d2a4abf0475257cc8eb81919233dd69e0 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/search/index.hml @@ -0,0 +1,41 @@ + + +
+ + + + + + + + + + + + + +
+ + + + + +
+ + + + +
\ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/search/index.js b/ace/ace_standard/src/main/js/default/pages/search/index.js new file mode 100644 index 0000000000000000000000000000000000000000..09b6736a15d613476b8d437b93f9f661d5b36f2b --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/search/index.js @@ -0,0 +1,20 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export default { + data: { + title: 'World' + } +} diff --git a/ace/ace_standard/src/main/js/default/pages/text/index.css b/ace/ace_standard/src/main/js/default/pages/text/index.css new file mode 100644 index 0000000000000000000000000000000000000000..046712606b38bf84de9e7a3da7719ddc2d3cb9d8 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/text/index.css @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* xxx.css */ +.container { + flex-direction: column; + align-items: center; + background-color: #F1F3F5; + justify-content: center; +} + +.text1 { + word-spacing: 10px; + adapt-height: true; +} + +.text2 { + width: 200px; + max-lines: 1; + text-overflow: ellipsis; + text-valign: middle; + line-height: 40px; + text-decoration: underline; + text-decoration-color: red; + text-indent: 20px; + white-space: pre; +} + +.common { + color: #ff4400; + text-decoration: line-through; +} diff --git a/ace/ace_standard/src/main/js/default/pages/text/index.hml b/ace/ace_standard/src/main/js/default/pages/text/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..bd3ba576b892b9eac383d841c1fbc9bf80c12c98 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/text/index.hml @@ -0,0 +1,27 @@ + + + +
+ + common style + + + This is a passage + + + This is a passage + +
\ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/text/index.js b/ace/ace_standard/src/main/js/default/pages/text/index.js new file mode 100644 index 0000000000000000000000000000000000000000..3dd2cc61bbf0fa3c02744d3763f3066233950c27 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/text/index.js @@ -0,0 +1,20 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export default { + data: { + title: '' + } +} \ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/textarea/index.css b/ace/ace_standard/src/main/js/default/pages/textarea/index.css new file mode 100644 index 0000000000000000000000000000000000000000..4612d1dba9f2cf207de8f5f7864e613fcb22410f --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/textarea/index.css @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* xxx.css */ +.container { + margin: 20px; + flex-direction:column; + width:100%; + height:100%; +} + +.textarea1{ + width: 100%; + height: 100%; + min-width: 25px; + min-height: 10px; + max-width: 300px; + max-height: 50px; + padding-left: 1px; + padding-top: 2px; + padding-right: 5px; + padding-bottom: 5px; + margin-left: 10px; + margin-top: 20px; + margin-right: 15px; + margin-bottom: 5px; + border-left-style: solid; + border-right-style: dashed; + border-top-style: dashed; + border-bottom-style: dotted; + border-left-width: 5px; + border-right-width: 1px; + border-top-width: 2px; + border-bottom-width: 3px; + border-left-color: #ff0000; + border-right-color: #00ff00; + border-top-color: #0000ff; + border-bottom-color: #fff000; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 15px; + border-top-left-radius: 8px; + border-top-right-radius: 12px; + background: linear-gradient(pink,#000000); + box-shadow: 2px 4px 6px 8px #888888; + opacity: 0.5; + display: flex; + visibility: visible; + align-self: center; + image-fill: #000fff; + clip-path: margin-box; + font-weight:700; +} + +.textarea2{ + width: 80%; + height: 100px; + padding-start: 10px; + padding-end: 15px; + margin-start: 5px; + margin-end: 10px; + border-style: dotted; + border-width: 2px; + border-color:#000000; + border-radius:5px; + background-color:#ffaa00; + mask-image: url('common/images/icon.png'); + mask-size: cover; + mask-position: center; + flex:1; + flex-grow: 2; + flex-basis: 10px; + flex-shrink: 1; +} + +.textarea3{ + width: 100px; + height: 50px; + padding: 10px; + margin: 5px; + border-left: 1px solid #000000; + border-right: 2px dashed #00ff00; + border-top: 1.5px dotted #0000ff; + border-bottom: 2.5px dotted #fff000; + background-image:url('common/images/image.png'); + background-size:contain; + background-repeat: repeat-x; + background-position: center; +} + +.textarea4{ + width: 150px; + height: 50px; + padding: 10px; + margin: 5px; + border: 1px solid #000000; +} + +.contain1{ + width: 150px; + height: 70px; + flex-direction: column; +} + +.textarea5{ + width: 120px; + height: 30px; + background-color: yellow; + border-image-source: url('/common/images/image.png'); + border-image-slice: 1px 2px 3px 4px; + border-image-width: 2px 3px 4px 5px; + border-image-outset: 3px 4px 5px 6px; + border-image-repeat: repeat; +} + +.textarea6{ + width: 120px; + height: 30px; + position: absolute; + left: 10px; + top: 35px; + bottom: 5px; + right: 10px; + background-color: pink; + border-image: url('common/images/icon.png') 1px 2px 3px 4px 2px 3px 4px 5px 3px 4px 5px 6px round; +} + +.textarea7 { + margin-top: 10px; + font-size:20px; + color: green; + allow-scale:true; + placeholder-color:saddlebrown; + font-weight:bold; + font-family:sans-serif; + caret-color:red; +} + +.textarea7 { + margin-top: 10px; + font-size:20px; + color: green; + allow-scale:true; + placeholder-color:saddlebrown; + font-weight:bold; + font-family:sans-serif; + caret-color:red; +} + +.textarea8 { + margin: 30px; + font-size:12px; + color: pink; + allow-scale:false; + font-weight:bold; + font-family:sans-serif; + caret-color:yellow; +} diff --git a/ace/ace_standard/src/main/js/default/pages/textarea/index.hml b/ace/ace_standard/src/main/js/default/pages/textarea/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..cbe2ce56f612d9807ac95c9d4175b2a02c315791 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/textarea/index.hml @@ -0,0 +1,79 @@ + + +
+ textarea通用样式1 + + textarea通用样式2 + + textarea通用样式3 + + textarea通用样式4 + + textarea通用样式5 +
+ + +
+ textarea特有样式 + + +
diff --git a/ace/ace_standard/src/main/js/default/pages/textarea/index.js b/ace/ace_standard/src/main/js/default/pages/textarea/index.js new file mode 100644 index 0000000000000000000000000000000000000000..20ad155580d8a4f070c6de48ea5013b71f2358a5 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/textarea/index.js @@ -0,0 +1,24 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import prompt from '@system.prompt'; +export default { + change(e){ + prompt.showToast({ + message: 'value: ' + e.text + ', lines: ' + e.lines + ', height: ' + e.height, + duration: 3000, + }); + } +} \ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/toolbar/index.css b/ace/ace_standard/src/main/js/default/pages/toolbar/index.css new file mode 100644 index 0000000000000000000000000000000000000000..492d358903c844fd37fc18cae352b4e203298bc6 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/toolbar/index.css @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.container { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} + +.toolbar1{ + width: 100%; + height: 100%; + min-width: 25px; + min-height: 10px; + max-height: 50px; + padding-left: 1px; + padding-top: 2px; + padding-right: 5px; + padding-bottom: 3px; + margin-left: 10px; + margin-top: 20px; + margin-right: 15px; + margin-bottom: 5px; + border-left-style: solid; + border-right-style: dashed; + border-top-style: dashed; + border-bottom-style: dotted; + border-left-width: 2px; + border-right-width: 3px; + border-top-width: 1px; + border-bottom-width: 1.5px; + border-left-color: #ff0000; + border-right-color: #00ff00; + border-top-color: #0000ff; + border-bottom-color: #fff000; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 15px; + border-top-left-radius: 8px; + border-top-right-radius: 12px; + background: linear-gradient(pink,#fff000); + box-shadow: 2px 4px 6px 8px #888888; + opacity: 0.5; + display: flex; + visibility: visible; + align-self: center; + image-fill: #000fff; + clip-path: margin-box; +} + +.toolbar2{ + width: 70%; + height:100px; + padding-start: 10px; + padding-end: 15px; + margin-start: 5px; + margin-end: 10px; + border-style: dotted; + border-width: 2px; + border-color:#000000; + border-radius:5px; + background-color:#ffaa00; + mask-image: url('common/images/icon.png'); + mask-size: cover; + mask-position: center; + flex:1; + flex-grow: 2; + flex-basis: 10px; + flex-shrink: 1; +} + +.toolbar3{ + width: 100%; + height: 50px; + padding: 10px; + margin: 5px; + border-left: 1px solid #000000; + border-right: 2px dashed #00ff00; + border-top: 1.5px dotted #0000ff; + border-bottom: 2.5px dotted #fff000; + background-image:url('common/images/image.png'); + background-size:contain; + background-repeat: repeat-x; + background-position: center; +} + +.toolbar4{ + width: 100%; + height: 50px; + padding: 10px; + margin: 5px; + border: 1px solid #000000; +} + +.contain1{ + flex-direction: column; + height: 100px; +} + +.toolbar5{ + width: 100%; + height: 30px; + background-color: yellow; + border-image-source: url('/common/images/image.png'); + border-image-slice: 1px 2px 3px 4px; + border-image-width: 2px 3px 4px 5px; + border-image-outset: 3px 4px 5px 6px; + border-image-repeat: repeat; +} + +.toolbar6{ + width: 100%; + height: 30px; + position: absolute; + left: 10px; + top: 35px; + bottom: 5px; + right: 10px; + background-color: pink; + border-image: url('common/images/icon.png') 1px 2px 3px 4px 2px 3px 4px 5px 3px 4px 5px 6px round; +} + +.item1{ + color: darkorange; + font-size:10px; + background-color: cornflowerblue; + allow-scale: true; + font-style: italic; + font-weight: 700; + text-decoration: line-through; + font-family: sans-serif; + opacity: 0.5; + display:flex; + visibility: visible; +} + +.item2{ + color: pink; + font-size:20px; + font-style: italic; + background-color: darkgoldenrod; + allow-scale: false; + font-style: italic; + font-weight: 400; + text-decoration: line-through; + font-family: sans-serif; + opacity:0.7; + display:flex; + visibility: hidden; +} + +.item3{ + color: violet; + font-size:16px; + background-color: yellow; + font-weight: 700; + text-decoration: line-through; + opacity: 1; + display: none; +} diff --git a/ace/ace_standard/src/main/js/default/pages/toolbar/index.hml b/ace/ace_standard/src/main/js/default/pages/toolbar/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..e1abfe2507f994f7f94c3d1c1b30a4b891ed23f5 --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/toolbar/index.hml @@ -0,0 +1,67 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/ace/ace_standard/src/main/js/default/pages/toolbar/index.js b/ace/ace_standard/src/main/js/default/pages/toolbar/index.js new file mode 100644 index 0000000000000000000000000000000000000000..09b6736a15d613476b8d437b93f9f661d5b36f2b --- /dev/null +++ b/ace/ace_standard/src/main/js/default/pages/toolbar/index.js @@ -0,0 +1,20 @@ +/** + * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export default { + data: { + title: 'World' + } +} diff --git a/ace/ace_standard/src/main/js/default/test/basicabilityapi.test.js b/ace/ace_standard/src/main/js/default/test/basicabilityapi.test.js index b38d54cd912c007d495e68f0b20df00974f2a48f..0ad1954cb8bc18039b34aaac07b10342a52c54c2 100755 --- a/ace/ace_standard/src/main/js/default/test/basicabilityapi.test.js +++ b/ace/ace_standard/src/main/js/default/test/basicabilityapi.test.js @@ -476,4 +476,4 @@ describe('basicabilityapi', function () { done(); }, 1000); }); -}); \ No newline at end of file +}); diff --git a/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js b/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js index a2c2280af3ed5e4e5e115c9dd2354a7731c45699..15b10c2eb2ddb925183ac12e3341d00d9f05f267 100644 --- a/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js +++ b/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js @@ -28,13 +28,32 @@ describe('aceJsTest', function () { console.info(`sleep ${time} over...`) }) } + async function backToIndex() { + let backToIndexPromise = new Promise((resolve, reject) => { + setTimeout(() => { + router.back({ + uri: 'pages/index/index' + }); + resolve(); + }, 500); + }); + let clearPromise = new Promise((resolve, reject) => { + setTimeout(() => { + router.clear(); + resolve(); + }, 500); + }); + await backToIndexPromise.then(() => { + return clearPromise; + }); + } /** * run after testcase */ afterEach(async function () { console.info('[aceJsTest] after each called') - router.clear(); + await backToIndex(); await sleep(1000) }); @@ -133,4 +152,194 @@ describe('aceJsTest', function () { expect("pages/slider/").assertEqual(pages.path); done(); }); -}); \ No newline at end of file + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400 + * @tc.name testTextComponent + * @tc.desc ACE + */ + it('testTextComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/text/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/text/").assertEqual(pages.path); + done(); + }); + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400 + * @tc.name testLabelComponent + * @tc.desc ACE + */ + it('testLabelComponent', 0, async function (done) { + console.info('testLabelComponent START'); + let result; + let options = { + uri: 'pages/label/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/label/").assertEqual(pages.path); + done(); + }); + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 + * @tc.name testDividerComponent + * @tc.desc ACE + */ + it('testDividerComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/divider/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/divider/").assertEqual(pages.path); + done(); + }); + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 + * @tc.name testGetImageComponent + * @tc.desc ACE + */ + it('testGetImageComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/image/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/image/").assertEqual(pages.path); + done(); + }); + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 + * @tc.name testGetMenuComponent + * @tc.desc ACE + */ + it('testGetMenuComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/menu/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/menu/").assertEqual(pages.path); + done(); + }); + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 + * @tc.name testRatingComponent + * @tc.desc ACE + */ + it('testRatingComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/rating/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/rating/").assertEqual(pages.path); + done(); + }); + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 + * @tc.name testSearchComponent + * @tc.desc ACE + */ + it('testSearchComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/search/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/search/").assertEqual(pages.path); + done(); + }); + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 + * @tc.name testToolbarComponent + * @tc.desc ACE + */ + it('testToolbarComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/toolbar/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(1000) + let pages = router.getState(); + expect("pages/toolbar/").assertEqual(pages.path); + done(); + }); + + /** + * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 + * @tc.name testTextareaComponent + * @tc.desc ACE + */ + it('testTextareaComponent', 0, async function (done) { + let result; + let options = { + uri: 'pages/textarea/index' + } + try { + result = router.push(options) + } catch (err) { + result = err + } + await sleep(5000) + let pages = router.getState(); + expect("pages/textarea/").assertEqual(pages.path); + done(); + }); +});