当前位置:网站首页>【Harmony OS】【FAQ】Hongmeng Questions Collection 2
【Harmony OS】【FAQ】Hongmeng Questions Collection 2
2022-08-04 15:09:00 【51CTO】
1、问题描述:
swiper嵌套子组件,子组件里面有PanGesture,有冲突swiperSwipe gestures are consumed,该如何解决?
demo如下:

解决方案:
建议在PhotoView的父组件Swiper上设置priorityGesture属性,默认情况下,Child components recognize gestures in preference to parent components,When the parent component is configuredpriorityGesture时,Parent components are identified prior to child components.参考如下代码:

2、问题描述:
eTS scroll 组件,设置scrollable(ScrollDirection.Horizontal)时,Why is the horizontal scroll bar not showing?
demo如下:

解决方案:
横向的ScrollThere is no slider displayed,如果需要可以用ScrollBar组件自定义
js中类似于scrollview是list和list-item组件联合使用,示例如下:
1、对应hml中遍历js中定义的imageList数据:

2、对应js中的imageList定义:

3、steps can be1中image标签改为divand other labels to define themselves
4、默认为纵向,横向、The vertical properties are as follows:

3、问题描述:
设备的DVIDIs there any way to check if it is a real device?
解决方案:
DVIDnot a deviceID,It refers to the virtual machine formed by multiple devices of the same Hongmeng account into a hyperterminalID
欲了解更多更全技术文章,欢迎访问 https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh
边栏推荐
猜你喜欢

一看就会的Chromedriver(谷歌浏览器驱动)安装教程

leetcode: 241. Designing precedence for arithmetic expressions

LeetCode_模拟_中等_498.对角线遍历

推荐一个鸿蒙即时通讯软件《果聊》

leetcode: 250. Count subtrees of equal value

属于程序猿的浪漫
微软表示将向内部网络安全专家共享数据 为企业提供更安全保护

技术分享| 小程序实现音视频通话

Win10无法访问移动硬盘怎么解决

Hangzhou Electric School Competition (Counter Attack Index)
随机推荐
数据链路层-------以太网协议
从-99打造Sentinel高可用集群限流中间件
明明加了唯一索引,为什么还是产生重复数据?
饿了么智能头盔专利获授权,进一步提升骑手安全保障
普法教育结合VR全景,直观感受和学习法治精神
B. Construct a simple sequence (greedy)
Google plug-in. Download contents file is automatically deleted after solution
性能提升400倍丨外汇掉期估值计算优化案例
Cisco-小型网络拓扑(DNS、DHCP、网站服务器、无线路由器)
实际工作中的高级技术(训练加速、推理加速、深度学习自适应、对抗神经网络)
leetcode: 250. Count subtrees of equal value
Compound Refractive Lenses for X-ray Focusing
Codeforces Round #811 A~F
RS|哨兵二号(.SAFE格式)转tif格式
Sublime Text 好用的插件
C# SolidWorks二次开发---工程图简单版标注孔信息
杭电校赛(逆袭指数)
Android Sqlite3基本命令
Nuget 通过 dotnet 命令行发布
特殊品种的二次开户验资金额