当前位置:网站首页>【Harmony OS】【FAQ】鸿蒙问题合集2
【Harmony OS】【FAQ】鸿蒙问题合集2
2022-08-04 15:02:00 【51CTO】
1、问题描述:
swiper嵌套子组件,子组件里面有PanGesture,有冲突swiper消费了滑动手势,该如何解决?
demo如下:

解决方案:
建议在PhotoView的父组件Swiper上设置priorityGesture属性,默认情况下,子组件优先于父组件识别手势,当父组件配置priorityGesture时,父组件优先于子组件进行识别。参考如下代码:

2、问题描述:
eTS scroll 组件,设置scrollable(ScrollDirection.Horizontal)时,为什么横向滚动滚动条不显示?
demo如下:

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

2、对应js中的imageList定义:

3、可将步骤1中image标签改为div等标签自行定义
4、默认为纵向,横向、纵向属性分别如下:

3、问题描述:
设备的DVID有什么方式可以校验是否是真实的设备吗?
解决方案:
DVID不是某个设备的ID,是指由同一个鸿蒙账号的多个设备组成一个超级终端后的虚拟ID
欲了解更多更全技术文章,欢迎访问 https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh
边栏推荐
猜你喜欢

Zheng Qing freshmen school competition and middle-aged engineering selection competition

Cisco - Small Network Topology (DNS, DHCP, Web Server, Wireless Router)

Database recovery

Compound Refractive Lenses for X-ray Focusing

关于pnpm包管理器的版本问题

leetcode: 251. Expanding 2D Vectors

卖家寄卖流程梳理

Leetcode: 215 disorderly to find the first big k element in the array

《分布式云最佳实践》分论坛,8月11日深圳见

CloudCompare&PCL 点云按网格划分(点云分幅)
随机推荐
Redis 高可用
【 HMS core 】 【 Media 】 online video editing service 】 【 material can't show, or network anomalies have been Loading state
手搓一个“七夕限定”,用3D Engine 5分钟实现烟花绽放效果
【云原生 | 从零开始学Kubernetes】kubernetes之StatefulSet详解
Roslyn 通过 nuget 统一管理信息
JCMsuite Application: Oblique Plane Wave Propagation Transmission Through Aperture
xampp安装包含的组件有(php,perl,apche,mysql)
vim common operation commands
我爱七夕哈哈哈
How to write SQL statements: the usage of Update, Case, and Select together
Next -19- 开启fancybox查看图片大图
编译型与解释型编程语言的区别
leetcode:254. 因子的组合
leetcode: 241. Designing precedence for arithmetic expressions
利用决策树找出最优特征组合
基于数据库实现分布式锁
【剑指offer59】队列的最大值
Google plug-in. Download contents file is automatically deleted after solution
期货开户之前要谈好最低手续费和交返
RS|哨兵二号(.SAFE格式)转tif格式