当前位置:网站首页>uniapp下拉弹层选择框效果demo(整理)
uniapp下拉弹层选择框效果demo(整理)
2022-06-27 11:55:00 【000000001111】
效果图:
<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: '全部',
recipient: [
{
id: 18,
name: "门店01"
},
{
id: 19,
name: "门店字数超长门店字数超长门店字数超长门店字数"
},
],
recipientIndex: 0,
dataObject: {
},
}
},
methods: {
onRecipientChangeSelect(e) {
console.log('携带值为', e.detail.value)
// this.recipientIndex = e.detail.value //选择数组的第几个
this.dataObject.shopId = this.recipient[e.detail.value].id; //选择商店id
this.dataObject.shopName = this.recipient[e.detail.value].name; //选择商店name
},
}
}
</script>
边栏推荐
- How histrix works
- .NET6接入Skywalking链路追踪完整流程
- 【On nacos】快速上手 Nacos
- 居家办公被催之后才明白的时间管理
- Popular science of device review: popular science of innovative medical device series - sternum plate products
- [tcapulusdb knowledge base] Introduction to tcapulusdb general documents
- mysql学习1:安装mysql
- R language uses the polR function of mass package to construct the ordered multi classification logistic regression model, and uses the vglm function of VGAM package to test the parallelism hypothesis
- 建木持续集成平台v2.5.0发布
- The GLM function of R language is used to build a binary logistic regression model (the family parameter is binomial), and the AIC function is used to compare the AIC values of the two models (simple
猜你喜欢

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

【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(二)

pull request

最短编辑距离(线性dp写法)

Youboxun attended the openharmony technology day to create a new generation of secure payment terminals

Histrix工作原理

JSP custom tag

秒云荣获《2022爱分析 · IT运维厂商全景报告》智能运维AIOps市场代表厂商

Rxjs mergeMap 的使用场合
![Dynamic programming [4] (counting class DP) example: integer partition](/img/06/4b3863bbb85582348c6f4ea7c5511e.png)
Dynamic programming [4] (counting class DP) example: integer partition
随机推荐
Don't miss it. New media operates 15 treasure official account to share
等等, 怎么使用 SetMemoryLimit?
Interviewer: with the for loop, why do you need foreach?
Minimum editing distance (linear DP writing method)
[tcapulusdb knowledge base] Introduction to tcapulusdb system management
mysql学习1:安装mysql
Interview shock 60: what will cause MySQL index invalidation?
如何修改 node_modules 里的文件
Xuri 3sdb, installing the original ROS
After Jerry's sleep, the regular wake-up system continues to run without resetting [chapter]
盘点一些好用且小众的 Markdown 编辑器
亚马逊测评掉评、留不上评是怎么回事呢?要如何应对?
想学好C语言,操作符也很重要
2022ciscn central China Web
巅峰小店APP仿站开发玩法模式讲解源码分享
R language dplyr package arrange function sorts dataframe data, sorts dataframe data through multiple data columns, specifies the first field to be sorted in descending order, and does not specify the
This privatized deployed enterprise knowledge base makes telecommuting a zero distance
2022CISCN华中 Web
Salesforce 容器化 ISV 场景下的软件供应链安全落地实践
Peak store app imitation station development play mode explanation source code sharing