fix(ns-newform): 优化地址选择占位符显示逻辑

根据地址类型动态切换占位符文本,默认区分省市和省市区场景,移除冗余的flex布局样式
This commit is contained in:
2026-06-12 16:58:41 +08:00
parent 5847612a58
commit ebe2963466

View File

@@ -268,7 +268,7 @@
@getRegions="handleGetRegions($event, index)" @getRegions="handleGetRegions($event, index)"
> >
<view :class="['select-address', !item.val ? 'empty' : '', !item.val ? 'color-tip' : '']"> <view :class="['select-address', !item.val ? 'empty' : '', !item.val ? 'color-tip' : '']">
{{ item.val ? item.val : (item.value.placeholder || '请选择城市') }} {{ item.val ? item.val : (item.value.placeholder || (item.value.default_type == 1 ? '请选择省市' : '请选择省市区')) }}
</view> </view>
</pick-regions> </pick-regions>
<text class="iconfont icon-right"></text> <text class="iconfont icon-right"></text>
@@ -1183,7 +1183,6 @@ export default {
picker, picker,
.pick-regions { .pick-regions {
flex: 1;
min-width: 0; min-width: 0;
width: auto; // 覆盖下方 .box picker,.pick-regions 的 width: 100% width: auto; // 覆盖下方 .box picker,.pick-regions 的 width: 100%
} }