fix:优化图书分类选择器样式,统一为dropdown style
This commit is contained in:
parent
78d1aaca90
commit
73afce9453
@ -372,9 +372,11 @@
|
||||
<view class="inline-fields" style="flex:1;align-items:stretch;">
|
||||
<view class="inline-field" style="flex:1;">
|
||||
<picker @change="onNoIsbnCategoryChange" :value="noIsbnCategoryIndex" :range="noIsbnCategoryNames">
|
||||
<view class="category-select" style="height:100%;">
|
||||
<view class="category-select">
|
||||
<text class="category-value">{{ noIsbnCategoryNames[noIsbnCategoryIndex] || '请选择分类' }}</text>
|
||||
<text class="picker-arrow">›</text>
|
||||
<view class="dropdown-btn" style="height:100%;">
|
||||
<text style="font-size:20rpx;color:#909399;">▼</text>
|
||||
</view>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
@ -4682,20 +4684,39 @@ picker {
|
||||
.category-select {
|
||||
background-color: #ffffff;
|
||||
border: 2rpx solid #dcdfe6;
|
||||
border-radius: 8rpx;
|
||||
border-right: none;
|
||||
border-radius: 8rpx 0 0 8rpx;
|
||||
height: 76rpx;
|
||||
padding: 0 16rpx;
|
||||
padding: 0 0 0 16rpx;
|
||||
font-size: 28rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
display: flex !important;
|
||||
align-items: stretch;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.category-value {
|
||||
font-size: 28rpx;
|
||||
color: #606266;
|
||||
flex: 1;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
line-height: 76rpx;
|
||||
}
|
||||
|
||||
.category-select .dropdown-btn {
|
||||
border: none !important;
|
||||
border-left: 2rpx solid #dcdfe6 !important;
|
||||
border-radius: 0 8rpx 8rpx 0;
|
||||
height: 100%;
|
||||
width: 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
background: #f5f7fa;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ========== 仓库弹窗 ========== */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user