From 1f076f5f15da692ff63862a8d17531872dc87562 Mon Sep 17 00:00:00 2001 From: bayanxing Date: Sat, 21 May 2022 10:35:47 +0800 Subject: [PATCH] add test cases Signed-off-by: bayanxing --- .../main/js/default/pages/web/prop/index.hml | 30 ++++++++++++++++ .../main/js/default/pages/web/prop/index.js | 36 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 arkui/ace_standard/src/main/js/default/pages/web/prop/index.hml create mode 100644 arkui/ace_standard/src/main/js/default/pages/web/prop/index.js diff --git a/arkui/ace_standard/src/main/js/default/pages/web/prop/index.hml b/arkui/ace_standard/src/main/js/default/pages/web/prop/index.hml new file mode 100644 index 000000000..dcb5c76af --- /dev/null +++ b/arkui/ace_standard/src/main/js/default/pages/web/prop/index.hml @@ -0,0 +1,30 @@ + + +
+ + web特有属性 + + + + 特有属性 -- src + + + + + +
\ No newline at end of file diff --git a/arkui/ace_standard/src/main/js/default/pages/web/prop/index.js b/arkui/ace_standard/src/main/js/default/pages/web/prop/index.js new file mode 100644 index 000000000..ac3c9e184 --- /dev/null +++ b/arkui/ace_standard/src/main/js/default/pages/web/prop/index.js @@ -0,0 +1,36 @@ +/** + * 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 { + data:{ + webSrc : null, + webSrcNone : null, + }, + + onShow(){ + this.getPropValues(); + globalThis.value = { + webSrc : this.webSrc, + webSrcNone : this.webSrcNone, + } + }, + + getPropValues() { + this.webSrc = this.$element("webSrc").getInspector() + this.webSrcNone = this.$element("webSrcNone").getInspector() + } +} \ No newline at end of file -- GitLab