当前位置:网站首页>【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
边栏推荐
- 16、学习MySQL 正则表达式
- G.登山小分队(暴力&dfs)
- C# 局部函数与事件
- Qt的QItemDelegate使用
- [机缘参悟-60]:《兵者,诡道也》-1-开篇:“死“与“生“都是天道
- 兆骑科创创新创业大赛活动举办,线上直播路演,投融资对接
- Latex 去掉行号
- LeetCode_模拟_中等_498.对角线遍历
- 一看就会的Chromedriver(谷歌浏览器驱动)安装教程
- Bluetooth Technology|In the first half of the year, 1.3 million charging piles were added nationwide, and Bluetooth charging piles will become the mainstream of the market
猜你喜欢
随机推荐
【Web技术】1401- 图解 Canvas 入门
Find My技术|防止你的宠物跑丢,苹果Find My技术可以帮到你
Oracle database user creation, restart, import and export
苏秋贵:揭秘绿联科技用5年时间从0做到6亿,如何一枝独秀?
Why does the decimal point appear when I press the space bar in word 2003?
AOSP built-in APP franchise rights white list
分布式链路追踪Jaeger + 微服务Pig在Rainbond上的实践分享
特殊品种的二次开户验资金额
How to automatically renew the token after it expires?
Next -21- 添加相册系列 - 1- 框架设置
Oracle 数据库用户创建、重启、导入导出
利用决策树找出最优特征组合
leetcode:255 验证前序遍历序列二叉搜索树
C# 判断文件编码
Technology sharing | Description of the electronic fence function in the integrated dispatching system
Almost all known protein structures in the world are open sourced by DeepMind
This week to discuss the user experience: Daedalus Nemo to join Ambire, explore the encryption of the ocean
C# 谁改了我的代码
How to write SQL statements: the usage of Update, Case, and Select together
Redis-哨兵模式









