当前位置:网站首页>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>
边栏推荐
- I.MX6ULL启动方式
- The DBSCAN function of FPC package in R language performs density clustering analysis on data, and the plot function visualizes the clustering graph
- Drive to APasS! Use Mingdao cloud to manage F1 events
- alibaba jarslink
- Unity Shader学习(二)第一个Shader
- 星际争霸的虫王IA退役2年搞AI,自叹不如了
- Usage of rxjs mergemap
- Llvm family (1) - Introduction to llvm
- R语言使用epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用by参数指定分组参数可视化不同分组的点图分布、使用dot.col参数指定分组数据点的颜色
- Time management understood after being urged to work at home
猜你喜欢

Operators are also important if you want to learn the C language well
![[tcapulusdb knowledge base] tcapulusdb doc acceptance - transaction execution introduction](/img/d9/f6735906a130834c4b3e28de2b2617.png)
[tcapulusdb knowledge base] tcapulusdb doc acceptance - transaction execution introduction

Mathematical knowledge -- ideas and examples of game theory (bash game, Nim game, wizov game)

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

mysql学习1:安装mysql

c/s 架构

What is the TCP 3-time handshake process?
![[tcapulusdb knowledge base] tcapulusdb operation and maintenance doc introduction](/img/04/b1194ca3340b23a4fb2091d1b2a44d.png)
[tcapulusdb knowledge base] tcapulusdb operation and maintenance doc introduction

一个有趣的网络掩码的实验

Jwas: a Bayesian based GWAS and GS software developed by Julia
随机推荐
进程间通信详解
Summary of qstype class usage (II)
解开C语言的秘密《关键字》(第六期)
Interview shock 60: what will cause MySQL index invalidation?
TiDB 6.0:让 TSO 更高效丨TiDB Book Rush
最大路径和问题(摘樱桃问题)
想学好C语言,操作符也很重要
解压 .log.gz 文件
建木持续集成平台v2.5.0发布
Topic38——56. 合并区间
How histrix works
Four memory areas (stack, heap, global, code area)
Take stock of some easy-to-use and niche markdown editors
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
Drive to APasS! Use Mingdao cloud to manage F1 events
$15.8 billion! 2021 the world's top15 most profitable hedge fund giant
Interview shock 60: what will cause MySQL index invalidation?
Rxjs mergeMap 的使用场合
FileOutputStream
居家办公被催之后才明白的时间管理