缓存线盘点

This commit is contained in:
2023-06-26 18:38:08 +08:00
parent 19aa9eb596
commit 9ff20598c0
3 changed files with 36 additions and 23 deletions

View File

@@ -10,8 +10,8 @@
<uni-icons v-else :type="showSelector? 'top' : 'bottom'" size="14" color="#999" />
</view>
<view class="uni-select--mask" v-if="showSelector" @click="toggleSelector" />
<view class="uni-select__selector" v-if="showSelector">
<view class="uni-popper__arrow"></view>
<view class="uni-select__selector" :class="{'uni-select__selector_up': selectUp === true}" v-if="showSelector">
<view class="uni-popper__arrow" :style="selectUp ? 'display: none' : ''"></view>
<scroll-view scroll-y="true" class="uni-select__selector-scroll">
<view class="uni-select__selector-empty" v-if="mixinDatacomResData.length === 0">
<text>{{emptyTips}}</text>
@@ -88,7 +88,11 @@
format: {
type: String,
default: ''
},
},
selectUp: {
type: Boolean,
default: false
}
},
data() {
return {
@@ -410,6 +414,10 @@
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
z-index: 3;
padding: 4px 0;
}
.uni-select__selector_up {
top: auto;
bottom: calc(100% + 12px);
}
.uni-select__selector-scroll {