当前位置:网站首页>Uniapp drop-down layer selection box effect demo (sorting)
Uniapp drop-down layer selection box effect demo (sorting)
2022-06-27 12:21:00 【000000001111】
design sketch :
<template>
<picker @change="onRecipientChangeSelect" :value="recipientIndex" :range="recipient" range-key="name">
<view class="uni-input p-0 txtFont">
<!-- {
{
recipient[recipientIndex].name}}<text class="iconfont icon-xia font-sm pl-1"></text> -->
{
{
shopName}}<text class="iconfont icon-xia font-sm pl-1"></text>
</view>
</picker>
</template>
<script>
export default{
data() {
return {
shopName: ' All ',
recipient: [
{
id: 18,
name: " store 01"
},
{
id: 19,
name: " Store word count super long store word count super long store word count super long store word count "
},
],
recipientIndex: 0,
dataObject: {
},
}
},
methods: {
onRecipientChangeSelect(e) {
console.log(' Carrying value is ', e.detail.value)
// this.recipientIndex = e.detail.value // Select the ordinal of the array
this.dataObject.shopId = this.recipient[e.detail.value].id; // Select store id
this.dataObject.shopName = this.recipient[e.detail.value].name; // Select store name
},
}
}
</script>
边栏推荐
- Wechat applet payment password input
- 消息队列的使用
- The R language uses the follow up The plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses stress The labels parameter adds label information t
- Mybaitis generator details
- Getting started with go web programming: validators
- ACL 2022 | 中科院提出TAMT:TAMT:通过下游任务无关掩码训练搜索可迁移的BERT子网络
- Mit6.031 software construction7 reading notesdesigning specifications
- 解压 .log.gz 文件
- 剑指 Offer 04. 二维数组中的查找
- 居家办公被催之后才明白的时间管理
猜你喜欢

56. Core principle of flutter - flutter startup process and rendering pipeline

如何修改 node_modules 裏的文件

$15.8 billion! 2021 the world's top15 most profitable hedge fund giant

Nifi from introduction to practice (nanny level tutorial) - identity authentication

alibaba jarslink

How to find the movie and TV clips with the same lines? These 8 movies search for artifact, and find the corresponding segment in one line

Raspberry pie 3b+ learning

优博讯出席OpenHarmony技术日,全新打造下一代安全支付终端

nifi从入门到实战(保姆级教程)——身份认证
Interview shock 60: what will cause MySQL index invalidation?
随机推荐
自学ADT和OOP
微服务拆分
i. Construction of mx6ull C language environment
Operators are also important if you want to learn the C language well
行业洞察 | 新零售业态下,品牌电商应如何重塑增长?
Excel中输入整数却总是显示小数,如何调整?
MySQL高阶语句(一)
Jianmu continuous integration platform v2.5.0 release
pull request
MIT6.031 软件构造 Reading7阅读笔记Designing Specifications(设计规范)
今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献
关于枚举类的两种用法
Wechat applet realizes five-star evaluation
Rxjs mergeMap 的使用场合
application.properties 的配置信息
The DBSCAN function of FPC package in R language performs density clustering analysis on data, and the plot function visualizes the clustering graph
C/s architecture
Shell script learning notes
Deep understanding of happens before principle
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (II)