当前位置:网站首页>【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
边栏推荐
- 【Web技术】1401- 图解 Canvas 入门
- I/O stream summary
- 华为云 & 达达,帮有情人“一键送达”
- 微软表示将向内部网络安全专家共享数据 为企业提供更安全保护
- 分布式链路追踪Jaeger + 微服务Pig在Rainbond上的实践分享
- Leetcode: 215 disorderly to find the first big k element in the array
- 快速整明白Redis中的字典到底是个啥
- Hangzhou electric the competition team arrangement (ACM)
- 【剑指offer59】队列的最大值
- 什么,你告诉我?作用域也分种类?
猜你喜欢
ping的原理

leetcode:253. 至少需要多少间会议室

leetcode: 255 Verify preorder traversal sequence binary search tree

leetcode:212. 单词搜索 II

leetcode: 251. Expanding 2D Vectors
![[Beiya data recovery] IBM System Storage storage lvm information lost data recovery solution](/img/1c/3c8c323e6ee3406d202e07f85bab21.jpg)
[Beiya data recovery] IBM System Storage storage lvm information lost data recovery solution

【剑指offer33】二叉搜索树的后序遍历序列

快速整明白Redis中的字典到底是个啥

This week to discuss the user experience: Daedalus Nemo to join Ambire, explore the encryption of the ocean

实际工作中的高级技术(训练加速、推理加速、深度学习自适应、对抗神经网络)
随机推荐
IP第十八天笔记
1401 - Web technology 】 【 introduction to graphical Canvas
饿了么智能头盔专利获授权,进一步提升骑手安全保障
FRED应用:毛细管电泳系统
什么,你告诉我?作用域也分种类?
leetcode:254. 因子的组合
一看就会的Chromedriver(谷歌浏览器驱动)安装教程
剑指Offer 63.股票的最大利润
从-99打造Sentinel高可用集群限流中间件
Http-Sumggling缓存漏洞分析
leetcode:241. 为运算表达式设计优先级
Next -19- 开启fancybox查看图片大图
Go 语言快速入门指南: 变量和常量
C# TextBlock 上标
2022杭电多校3
PTA 6-2 多项式求值
This week to discuss the user experience: Daedalus Nemo to join Ambire, explore the encryption of the ocean
eNSP-小型网络拓扑(DNS、DHCP、网站服务器、无线路由器)
Hangzhou electric the competition team arrangement (ACM)
1403. 非递增顺序的最小子序列