当前位置:网站首页>Applet: the picker view selector scrolls quickly. When confirming, the "value displays an error."“
Applet: the picker view selector scrolls quickly. When confirming, the "value displays an error."“
2022-07-18 23:40:00 【[email protected]】
One 、picker-view brief introduction
Embedded page scroll selector . Only place picker-view-column Components , Other nodes will not display .

Two 、 Problem description :
Technology selection :uniapp.
When making choices here ,
Slide to a character , Click ok , The data of the page is not updated , Stay at the previous option .

3、 ... and 、 Find the cause :
picker When the content is still rolling or the rolling rebound animation is not over ,
Click ok , Close the pop-up picker, Data cannot be updated in time , Need to wait , Or manually touch to stop rolling and then click ok .
Four 、 solve the problem :
@pickstart="pickstart" @pickend="pickend"
<view class="w-picker-view" v-if="mode=='selector'">
<picker-view :indicator-style="itemHeight" @pickstart="pickstart" @pickend="pickend" :value="pickVal" @change="bindChange">
<picker-view-column>
<view class="w-picker-item" v-for="(item,index) in data" :key="index">{
{item.label}}</view>
</picker-view-column>
</picker-view>
</view>// Define tag variables isMoving
pickstart() {
this.isMoving = true;
},
pickend() {
this.isMoving = false;
},
pickerConfirm(e){
if (this.isMoving) {
console.log(' In motion , Can't click ')
return;
}
}After testing, the problem was successfully solved .

5、 ... and 、 Welcome to communicate and correct , Pay attention to me , Learning together .
6、 ... and 、 Reference link :
picker-view | Wechat open documents
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/199/202207162125481712.html
边栏推荐
- Recent software test interview questions encountered by group Friends
- nodejs-Joi模块验证
- Design of DHT11 temperature and humidity sensor based on stm32
- Verify that the two strings are consistent
- Wechat applet_ 14. Creation and reference of components
- Summer study matlab notes
- 【STL】模拟实现vector
- [development tutorial 3] crazy shell arm function mobile phone - Introduction to the whole board resources
- 小程序:picker-view选择器快速滚动,确认时,”值显示错误“
- Wanzi detailed C language document
猜你喜欢

As a time series database, how does tdengine realize and open source its distributed clustering function?

Google icons 库 Compose就可以直接用。

Starbucks does not use two-phase submission

Send papers! AI, machine learning, CV boss scientific research project enrollment!

小程序:picker-view选择器快速滚动,确认时,”值显示错误“

微信小程序_17,插槽

Record of SQL questions of Niuke this week

9、学会查看GC日志

在代码中用YYYY-MM-DD要注意了!

OSPF comprehensive experiment
随机推荐
pytest接口自动化测试框架 | pytest结合二次封装实现接口自动化
Clean the disk with CMD command (mainly the system disk)
How to add compose modify later
Expérience de l'arbre binaire
Preliminary test of ZVS circuit
深入了解arduino舵机控制库文件Servo.h
Google icons library compose can be used directly.
STM32F1与STM32CubeIDE编程实例-W25Q-SPI-Flash与SPIFFS移植
Ellipsis in excess of single line text, ellipsis in excess of multi line text, specify multiple lines
Learn more about Arduino steering gear control library file servo h
常见密码正则表达式
每日一题:回文链表(剑指off027)
小程序:picker-view选择器快速滚动,确认时,”值显示错误“
canal-deployer canal-adapter镜像构建,部署
JVM-SANDBOX导致目标服务JVM Metaspace OOM的调查始末
STM32F1与STM32CubeIDE编程实例-W25Q-SPI-Flash与LittleFS移植
Only 22 years old! This "Post-00" doctor plans to work in 985 universities!
Quickly build an e-commerce platform based on Amazon cloud technology server free service - Deployment
Compose Modify如何添加到后面
Raspberry pie uses opencv for image tracking, face recognition, etc