当前位置:网站首页>Three level linkage demo of uniapp uview u-picker components
Three level linkage demo of uniapp uview u-picker components
2022-07-05 03:59:00 【Summer is already slightly cool】
One 、 Write it at the front
- 【 I have something to say 】
It took hours , cough >_<
, Wrote a Demo, Just give you an idea , Please forgive me for any deficiencies ~ - 【 Import the project 】 Choose in turn
file
Import the project
- 【 Project content 】 This Demo In order to
grade class Student
Take these three levels as an example . - 【 Project components 】 It's using uView Components
- 【 Project operation 】 Choose in turn :
function
Run to browser (B)
Chrome( Use whatever browser you have , I use this ~)
Two 、 Effect screenshots
0、 Project creation : I was in uniapp Modified on the default template
- 【 Project creation 】Hbuilder establish , Choose in turn :
file
newly build
project
choice Default template
1、 home page
2、 Add a page
3、 Add a page - Click on Please select
4、 Edit page
5、 Edit page - Click on Please select
3、 ... and 、uView Component Introduction
- In the project
\uPickerDemo
route\uni_modules\uview-ui\
MediumREADME.md
There are detailed explanations in the document - I am in the project.
\uPickerDemo
Has also been configured ~
Four 、 A general process
- 1、 branch 2 An entrance : An addition , An editor ( Editing involves data echo )
- 2、 When adding , The displayed data is default , Is the details of the first row of data in the previous column ( All grades ( First column ), The corresponding class of grade one ( Second column ), The corresponding students in class one ( The third column ))
- 3、 When editing , The first column of data remains unchanged ( Highlight the corresponding line ); The data in the second column is the details of the highlighted row in the first column ( You also need to highlight the corresponding line ); The data in the third column is the details of the highlighted row in the second column ( You also need to highlight the corresponding line )
- 4、 Click on
Please select
That's ok , Pop up the selection box - 5、change When the first column : The data in the second column is the details of the highlighted options in the first column ; And change the data in the third column to the data details in the first row of the second column
- 6、change When the second column : The data in the third column is the details of the highlighted options in the second column
- 7、 After selecting the data, assign the data to
input
The box shows And close the box
5、 ... and 、method Methods to introduce
1、backStudent
- Operation of the content displayed in the option box : Default value when adding , Echo value when editing
2、clickStudent
- Click on
Please select
That's ok , open Selection box
3、changeHandler
- Triggered when the selection value changes : When the first column changes , Synchronize the second column , Data in the third column ; When the second column changes , Synchronize the data in the first column
4、confirmStudent
- After selection , Click ok , to input assignment , And shut down Selection box
6、 ... and 、 Project Download
边栏推荐
- IronXL for .NET 2022.6
- EasyCVR更改录像存储路径,不生成录像文件如何解决?
- 【看完就懂系列】一文6000字教你从0到1实现接口自动化
- CTF stegano practice stegano 9
- Interview byte, pass the exam and directly work on three sides. As a result, I found an architect to hang me?
- The new project Galaxy token just announced by coinlist is gal
- 阿里云ECS使用cloudfs4oss挂载OSS
- speed or tempo in classical music
- [untitled]
- Deep learning - LSTM Foundation
猜你喜欢
为什么百度、阿里这些大厂宁愿花25K招聘应届生,也不愿涨薪5K留住老员工?
error Couldn‘t find a package.json file in “你的路径“
Uni app common functions /api
[an Xun cup 2019] not file upload
Use of vscode software
MindFusion.Virtual Keyboard for WPF
A brief introduction to the behavior tree of unity AI
ABP vNext microservice architecture detailed tutorial - distributed permission framework (Part 1)
DMX parameter exploration of grandma2 onpc 3.1.2.5
An elegant program for Euclid‘s algorithm
随机推荐
ActiveReportsJS 3.1 VS ActiveReportsJS 3.0
Thread Basics
The order of LDS links
BDF application - topology sequence
[C language] address book - dynamic and static implementation
【无标题】
error Couldn‘t find a package. JSON file in "your path“
请问一下我的请求是条件更新,但在buffer中就被拦截了,这种情况我只能每次去flush缓存么?
How about programmers' eyesight| Daily anecdotes
[summary of two registration methods]
MindFusion.Virtual Keyboard for WPF
UI自动化测试从此告别手动下载浏览器驱动
线程基础知识
@Transactional 注解导致跨库查询失效的问题
一文带你了解BI的前世今身与企业数字化转型的关系
JVM garbage collection
阿里云ECS使用cloudfs4oss挂载OSS
ClickPaaS低代码平台
[wp]bmzclub几道题的writeup
JWT漏洞复现