diff --git a/ace/ace_standard/src/main/js/default/pages/dialog/router/index.js b/ace/ace_standard/src/main/js/default/pages/dialog/router/index.js index 3b7195d21b36404168d6f5efcd35503863d0e819..ec5e830b3b4b446c18d6d21e3723afd8bdf2388b 100644 --- a/ace/ace_standard/src/main/js/default/pages/dialog/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/dialog/router/index.js @@ -1,3 +1,65 @@ +/** + * 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 { + showDialog1() { + this.$element('simpleDialog1').show() + }, + showDialog2() { + this.$element('simpleDialog2').show() + }, + showDialog3() { + this.$element('simpleDialog3').show() + }, + showDialog4() { + this.$element('simpleDialog3').show() + }, + showDialog5() { + this.$element('simpleDialog5').show() + }, + cancelDialog() { + prompt.showToast({ + message: 'Dialog cancelled' + }) + }, + cancelSchedule() { + this.$element('simpleDialog1').close() + this.$element('simpleDialog2').close() + this.$element('simpleDialog3').close() + this.$element('simpleDialog4').close() + this.$element('simpleDialog5').close() + prompt.showToast({ + message: 'Successfully cancelled' + }) + }, + setSchedule() { + this.$element('simpleDialog1').close() + this.$element('simpleDialog2').close() + this.$element('simpleDialog3').close() + this.$element('simpleDialog4').close() + this.$element('simpleDialog5').close() + prompt.showToast({ + message: 'Successfully confirmed' + }) + }, + doubleClick(){ + prompt.showToast({ + message: 'doubleClick' + }) + } +} /** * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/ace/ace_standard/src/main/js/default/pages/stepperItem/router/index.hml b/ace/ace_standard/src/main/js/default/pages/stepperItem/router/index.hml index cec9b137f1d9bc05b3256b2875940f8a0639619a..ee9fe0c98dbb7b97ef0bb9468ad2b7bb8a7baee6 100644 --- a/ace/ace_standard/src/main/js/default/pages/stepperItem/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/stepperItem/router/index.hml @@ -115,9 +115,9 @@ - - - + + +
diff --git a/ace/ace_standard/src/main/js/default/pages/stepperItem/router/index.js b/ace/ace_standard/src/main/js/default/pages/stepperItem/router/index.js index 3eb1e7ebc5c4151ea77488a48821ebc811cd6def..055f531e287b7664a16dbf15ded5a5b0e2200f4c 100644 --- a/ace/ace_standard/src/main/js/default/pages/stepperItem/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/stepperItem/router/index.js @@ -13,8 +13,8 @@ * limitations under the License. */ -import prompt from '@system.prompt'; +import prompt from '@system.prompt'; var options = { duration: 1500, @@ -441,6 +441,7 @@ export default { functionTest3(event){ var function3 = this.$element('function3'); + var animation = function3.animate(frames, options); animation.play() animation.onfinish = function(){