|
@ -4,7 +4,7 @@ |
|
|
<view class="popup-title">选择备件</view> |
|
|
<view class="popup-title">选择备件</view> |
|
|
<view class="popup"> |
|
|
<view class="popup"> |
|
|
<u-search placeholder="搜索" v-model="form1.searchName" @change="searchItem" clearabled=false></u-search> |
|
|
<u-search placeholder="搜索" v-model="form1.searchName" @change="searchItem" clearabled=false></u-search> |
|
|
<scroll-view class="list" scroll-y="true" style="maxHeight: '500px'"> |
|
|
<scroll-view class="list" scroll-y="true" style="max-height: 800rpx"> |
|
|
<view class="item" v-for="(item, index) in singleColumnList" :key="index" @click="chooseItem(item)"> |
|
|
<view class="item" v-for="(item, index) in singleColumnList" :key="index" @click="chooseItem(item)"> |
|
|
<u-checkbox v-model="item.checked" shape="circle" style="margin-top: 8rpx;"></u-checkbox> |
|
|
<u-checkbox v-model="item.checked" shape="circle" style="margin-top: 8rpx;"></u-checkbox> |
|
|
<view class="right"> |
|
|
<view class="right"> |
|
@ -242,7 +242,7 @@ function chooseItem(item) { |
|
|
|
|
|
|
|
|
.list { |
|
|
.list { |
|
|
// overflow-y: auto; /* 启用垂直滚动条 */ |
|
|
// overflow-y: auto; /* 启用垂直滚动条 */ |
|
|
max-height: 500px; /* 设置最大高度 */ |
|
|
// max-height: 500px; /* 设置最大高度 */ |
|
|
.item { |
|
|
.item { |
|
|
display: flex; |
|
|
display: flex; |
|
|
margin-bottom: 20rpx; |
|
|
margin-bottom: 20rpx; |
|
|