|
@ -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> |
|
|
<view class="list" :style="{ overflowY: 'auto', maxHeight: '500px' }"> |
|
|
<scroll-view class="list" scroll-y="true" style="maxHeight: '500px'"> |
|
|
<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"> |
|
@ -33,7 +33,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="popup-footer"> |
|
|
<view class="popup-footer"> |
|
|
<view @click="chooseItem1(0)">取消</view> |
|
|
<view @click="chooseItem1(0)">取消</view> |
|
@ -241,7 +241,7 @@ function chooseItem(item) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.list { |
|
|
.list { |
|
|
overflow-y: auto; /* 启用垂直滚动条 */ |
|
|
// overflow-y: auto; /* 启用垂直滚动条 */ |
|
|
max-height: 500px; /* 设置最大高度 */ |
|
|
max-height: 500px; /* 设置最大高度 */ |
|
|
.item { |
|
|
.item { |
|
|
display: flex; |
|
|
display: flex; |
|
|