|
@@ -15,16 +15,6 @@
|
|
|
<view v-if="error" class="error">
|
|
|
<text>{{error}}</text>
|
|
|
</view>
|
|
|
- <!-- <view v-else-if="data.length && item.value" class="selected">
|
|
|
- <view class="selected-item d-flex align-center">
|
|
|
- <view
|
|
|
- class="defaultLink"
|
|
|
- style="max-width: 100rpx; overflow: hidden; white-space: nowrap;"
|
|
|
- >
|
|
|
- {{ data[data.length - 1]?.text || item[labelValue] }}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
<view v-else>
|
|
|
<text :class="{'defaultLink': item.value }">{{ item.text || item[labelValue] }}</text>
|
|
|
<uni-icons v-if="!item.value" type="icon-arrow-sortdown-smal" custom-prefix="iconfont" color="#999"/>
|
|
@@ -98,7 +88,7 @@ watch(() => props.list,
|
|
|
.itemBox {
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
- justify-content: center;
|
|
|
+ justify-content: space-between;
|
|
|
flex-wrap: wrap;
|
|
|
.item {
|
|
|
// width: 20%;
|