当前位置:网站首页>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
fileImport the project - 【 Project content 】 This Demo In order to
grade class StudentTake these three levels as an example . - 【 Project components 】 It's using uView Components
- 【 Project operation 】 Choose in turn :
functionRun 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 :
filenewly buildprojectchoice 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
\uPickerDemoroute\uni_modules\uview-ui\MediumREADME.mdThere are detailed explanations in the document - I am in the project.
\uPickerDemoHas 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 selectThat'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
inputThe 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 selectThat'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
边栏推荐
- An elegant program for Euclid‘s algorithm
- PlasticSCM 企业版Crack
- [数组]566. 重塑矩阵-简单
- Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
- [untitled]
- ActiveReportsJS 3.1 VS ActiveReportsJS 3.0
- JWT vulnerability recurrence
- Why is there a reincarnation of 60 years instead of 120 years in the tiangan dizhi chronology
- 【看完就懂系列】一文6000字教你从0到1实现接口自动化
- Summary of scene design
猜你喜欢

laravel8 导出Excle文件

输入的查询SQL语句,是如何执行的?

Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery

UI自動化測試從此告別手動下載瀏覽器驅動

Containerd series - what is containerd?

官宣!第三届云原生编程挑战赛正式启动!

How to use jedis of redis

Uni app common functions /api

error Couldn‘t find a package. JSON file in "your path“

How about programmers' eyesight| Daily anecdotes
随机推荐
How to make the listbox scroll automatically when adding a new item- How can I have a ListBox auto-scroll when a new item is added?
Nmap使用手册学习记录
线上故障突突突?如何紧急诊断、排查与恢复
Test d'automatisation de l'interface utilisateur télécharger manuellement le pilote du navigateur à partir de maintenant
An elegant program for Euclid‘s algorithm
【软件逆向-基础知识】分析方法、汇编指令体系结构
JWT vulnerability recurrence
Interview byte, pass the exam and directly work on three sides. As a result, I found an architect to hang me?
On the day 25K joined Tencent, I cried
我国算力规模排名全球第二:计算正向智算跨越
Containerd series - detailed explanation of plugins
C # use awaiter
[untitled]
Nmap user manual learning records
Why is there a reincarnation of 60 years instead of 120 years in the tiangan dizhi chronology
speed or tempo in classical music
[positioning in JS]
An elegant program for Euclid‘s algorithm
Containerization Foundation
【软件逆向-分析工具】反汇编和反编译工具