From e2d457dd9106132c8906825d513cc05e0b488c0d Mon Sep 17 00:00:00 2001 From: lfl <15188787339@163.com> Date: Mon, 23 Sep 2024 16:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/model/IconModel.ets | 22 +-- .../main/resources/base/element/string.json | 44 ++++++ .../main/resources/en_US/element/string.json | 126 +++++++++++++++++- .../main/resources/zh_CN/element/string.json | 126 +++++++++++++++++- 4 files changed, 305 insertions(+), 13 deletions(-) diff --git a/entry/src/main/ets/model/IconModel.ets b/entry/src/main/ets/model/IconModel.ets index 3487089..b478f1c 100644 --- a/entry/src/main/ets/model/IconModel.ets +++ b/entry/src/main/ets/model/IconModel.ets @@ -17,21 +17,21 @@ import { IconDataModel, ProductDataModel } from '../viewmodel/IconViewModel'; // Shortcut Icon Data. export const ICON_DATA1: Array = [ - new IconDataModel(0, 2, $r('app.media.ic_device_matebook_filled'), '笔记本'), - new IconDataModel(1, 2, $r('app.media.ic_device_smartscreen_filled'), '智慧屏'), - new IconDataModel(2, 1, $r("app.media.ic_device_sound_x_filled"), '音箱'), - new IconDataModel(3, 1, $r("app.media.ic_device_vr_glass_filled"), 'VR眼镜'), - new IconDataModel(4, 1, $r('app.media.ic_device_watch_filled'), '手表'), - new IconDataModel(5, 1, $r('app.media.ic_public_devices_phone_filled'), '手机') + new IconDataModel(0, 2, $r('app.media.ic_device_matebook_filled'), $r('app.string.notebook')), + new IconDataModel(1, 2, $r('app.media.ic_device_smartscreen_filled'), $r('app.string.smart_display')), + new IconDataModel(2, 1, $r("app.media.ic_device_sound_x_filled"), $r('app.string.speaker_box')), + new IconDataModel(3, 1, $r("app.media.ic_device_vr_glass_filled"), $r('app.string.VR_glasses')), + new IconDataModel(4, 1, $r('app.media.ic_device_watch_filled'), $r('app.string.watch')), + new IconDataModel(5, 1, $r('app.media.ic_public_devices_phone_filled'), $r('app.string.phone')) ]; // Shortcut Icon Data. export const ICON_DATA2: Array = [ - new IconDataModel(0, 1, $r('app.media.ic_gallery_puzzle'), '拼图'), - new IconDataModel(1, 1, $r('app.media.ic_public_car'), '汽车'), - new IconDataModel(2, 1, $r('app.media.ic_public_cards'), '钱包'), - new IconDataModel(3, 1, $r('app.media.ic_public_highlight'), '收藏'), - new IconDataModel(4, 1, $r('app.media.ic_contacts_birthday'), '生日') + new IconDataModel(0, 1, $r('app.media.ic_gallery_puzzle'), $r('app.string.saw_puzzle')), + new IconDataModel(1, 1, $r('app.media.ic_public_car'), $r('app.string.cars')), + new IconDataModel(2, 1, $r('app.media.ic_public_cards'), $r('app.string.purse')), + new IconDataModel(3, 1, $r('app.media.ic_public_highlight'), $r('app.string.collect')), + new IconDataModel(4, 1, $r('app.media.ic_contacts_birthday'), $r('app.string.birthday')) ]; // Offering List Data Source. diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 57f746c..5f68527 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -91,6 +91,50 @@ { "name": "component_stack_other_function", "value": "仅演示,可自行实现业务功能" + }, + { + "name": "notebook", + "value": "笔记本" + }, + { + "name": "smart_display", + "value": "智慧屏" + }, + { + "name": "speaker_box", + "value": "音箱" + }, + { + "name": "VR_glasses", + "value": "VR眼镜" + }, + { + "name": "watch", + "value": "手表" + }, + { + "name": "phone", + "value": "手机" + }, + { + "name": "saw_puzzle", + "value": "拼图" + }, + { + "name": "cars", + "value": "汽车" + }, + { + "name": "purse", + "value": "钱包" + }, + { + "name": "collect", + "value": "收藏" + }, + { + "name": "birthday", + "value": "生日" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index f945955..ebbd7aa 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -10,7 +10,131 @@ }, { "name": "EntryAbility_label", - "value": "label" + "value": "Component stacking" + }, + { + "name": "product_title00", + "value": "powerbank" + }, + { + "name": "product_title01", + "value": "laptop" + }, + { + "name": "product_title02", + "value": "Mobile phone" + }, + { + "name": "product_title03", + "value": "Minimalist trend backpack" + }, + { + "name": "product_title04", + "value": "Folding screen" + }, + { + "name": "product_price00", + "value": "¥79.9" + }, + { + "name": "product_price01", + "value": "¥6975.8" + }, + { + "name": "product_price02", + "value": "¥4279.6" + }, + { + "name": "product_price03", + "value": "¥105.3" + }, + { + "name": "product_price04", + "value": "¥1252.9" + }, + { + "name": "product_insurance00", + "value": "7 days insurance" + }, + { + "name": "product_insurance01", + "value": "15 days insurance" + }, + { + "name": "product_insurance02", + "value": "30 days insurance" + }, + { + "name": "product_insurance03", + "value": "7 days insurance" + }, + { + "name": "product_insurance04", + "value": "30 days insurance" + }, + { + "name": "product_insurance05", + "value": "30 days insurance" + }, + { + "name": "search_title", + "value": "Good selection" + }, + { + "name": "warning_text_title", + "value": "Function description" + }, + { + "name": "warning_text", + "value": "This example shows the visual effect of using the Stack component to build a multi-layered stack. By binding the onScroll Scroll event callback function of Scroll component, the scroll action is accurately captured. When scrolling, the components' transparency, height and other properties are adjusted in real time, thus successfully achieving nested scrolling effects, dynamic changes in transparency and smooth component switching." + }, + { + "name": "component_stack_other_function", + "value": "Demonstration only, can realize the business function by itself" + }, + { + "name": "notebook", + "value": "Notebook" + }, + { + "name": "smart_display", + "value": "Smart display" + }, + { + "name": "speaker_box", + "value": "Speaker box" + }, + { + "name": "VR_glasses", + "value": "VR glasses" + }, + { + "name": "watch", + "value": "watch" + }, + { + "name": "phone", + "value": "phone" + }, + { + "name": "saw_puzzle", + "value": "Saw puzzle" + }, + { + "name": "cars", + "value": "cars" + }, + { + "name": "purse", + "value": "purse" + }, + { + "name": "collect", + "value": "collect" + }, + { + "name": "birthday", + "value": "birthday" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index dce2b9c..5f68527 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -2,7 +2,7 @@ "string": [ { "name": "module_desc", - "value": "模块描述" + "value": "module description" }, { "name": "EntryAbility_desc", @@ -11,6 +11,130 @@ { "name": "EntryAbility_label", "value": "组件堆叠" + }, + { + "name": "product_title00", + "value": "充电宝" + }, + { + "name": "product_title01", + "value": "笔记本电脑" + }, + { + "name": "product_title02", + "value": "移动手机" + }, + { + "name": "product_title03", + "value": "极简潮流背包" + }, + { + "name": "product_title04", + "value": "折叠屏" + }, + { + "name": "product_price00", + "value": "¥79.9" + }, + { + "name": "product_price01", + "value": "¥6975.8" + }, + { + "name": "product_price02", + "value": "¥4279.6" + }, + { + "name": "product_price03", + "value": "¥105.3" + }, + { + "name": "product_price04", + "value": "¥1252.9" + }, + { + "name": "product_insurance00", + "value": "7天保价" + }, + { + "name": "product_insurance01", + "value": "15天保价" + }, + { + "name": "product_insurance02", + "value": "30天保价" + }, + { + "name": "product_insurance03", + "value": "7天保价" + }, + { + "name": "product_insurance04", + "value": "30天保价" + }, + { + "name": "product_insurance05", + "value": "30天保价" + }, + { + "name": "search_title", + "value": "好物精选" + }, + { + "name": "warning_text_title", + "value": "功能描述" + }, + { + "name": "warning_text", + "value": "本示例介绍运用Stack组件以构建多层次堆叠的视觉效果。通过绑定Scroll组件的onScroll滚动事件回调函数,精准捕获滚动动作的发生。当滚动时,实时地调节组件的透明度、高度等属性,从而成功实现了嵌套滚动效果、透明度动态变化以及平滑的组件切换。" + }, + { + "name": "component_stack_other_function", + "value": "仅演示,可自行实现业务功能" + }, + { + "name": "notebook", + "value": "笔记本" + }, + { + "name": "smart_display", + "value": "智慧屏" + }, + { + "name": "speaker_box", + "value": "音箱" + }, + { + "name": "VR_glasses", + "value": "VR眼镜" + }, + { + "name": "watch", + "value": "手表" + }, + { + "name": "phone", + "value": "手机" + }, + { + "name": "saw_puzzle", + "value": "拼图" + }, + { + "name": "cars", + "value": "汽车" + }, + { + "name": "purse", + "value": "钱包" + }, + { + "name": "collect", + "value": "收藏" + }, + { + "name": "birthday", + "value": "生日" } ] } \ No newline at end of file -- Gitee