当前位置:网站首页>自定义picker滚动选择器样式
自定义picker滚动选择器样式
2022-08-10 14:29:00 【a_靖】
先上效果图
上代码:
我把它封装成了组件,可以直接引用,传入list就行
<template>
<view class="picker">
<picker-view
mask-style="background:rgba(15, 67, 80, 0.001);"
indicator-style="color:red;"
indicator-class="indicatorClass"
immediate-change="true"
:value="value" @change="bindChange" class="picker-view">
<picker-view-column>
<view class="item" v-for="(item,index) in list"
:class="pickerFc(index)"
:key="index">{
{item}}</view>
</picker-view-column>
</picker-view>
</view>
</template>
<script>
export default {
props: ['list'],
data() {
return {
value: [0],
visible: tru
边栏推荐
猜你喜欢
随机推荐
BFT机器人带你走进智慧生活 ——探索遨博机器人i系列的多种应用
Epoll learn to think: a high performance server processing framework
普林斯顿微积分读本05第四章--求解多项式的极限问题
leetcode 739. Daily Temperatures 每日温度(中等)
【MindSpore易点通机器人-02】设计与技术选型
"Thesis Reading" PLATO: Pre-trained Dialogue Generation Model with Discrete Latent Variable
PyTorch multi-machine multi-card training: DDP combat and skills
mysql进阶(三十三)MySQL数据表添加字段
线上线下课程教学培训小程序开发制作功能介绍
How does IT Xiaobai learn PHP systematically
符合信创要求的堡垒机有哪些?支持哪些系统?
快速了解大端模式和小端模式
PHP 判断文件是否有内容,没有内容则复制另一个文件写入
池化技术有多牛?来,告诉你阿里的Druid为啥如此牛逼!
MQTT服务器搭建
1004(树状数组+离线操作+离散化)
MySQL - storage engine for databases
PHP judges whether the file has content, and if there is no content, copy another file to write
vue 怎么清除tab 切换缓存问题 ?
The a-modal in the antd component is set to a fixed height, and the content is scrolled and displayed