提交 056a58c5 编写于 作者: Neuromancer255's avatar Neuromancer255

Revert "数据选择(下拉视图)调整 --fix4"

This reverts commit 0e8bacc4.
上级 0e8bacc4
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="cancel-icon" v-if="curvalue"><ion-icon name="close-circle-outline" @click="clear"></ion-icon></div> <div class="cancel-icon" v-if="curvalue"><ion-icon name="close-circle-outline" @click="clear"></ion-icon></div>
<div v-if="curvalue== null || curvalue==''" class="ion-select-icon"></div> <div v-if="curvalue== null || curvalue==''" class="ion-select-icon"></div>
<ion-select :value="curvalue" :disabled="disabled " @click="onSearch(null)" @ionChange="change" interface="action-sheet" :cancel-text="$t('app.button.cancel')"> <ion-select :value="curvalue" :disabled="disabled " @click="onSearch(null)" @ionChange="change" interface="action-sheet" :cancel-text="$t('app.button.cancel')">
<ion-select-option v-for="option of items" :key="option.text" :value="option.value">{{option.text}}</ion-select-option> <ion-select-option v-for="option of items" :key="option.value" :value="option.value">{{option.text}}</ion-select-option>
</ion-select> </ion-select>
</div> </div>
</template> </template>
...@@ -215,7 +215,7 @@ export default class AppSelectDropDown extends Vue { ...@@ -215,7 +215,7 @@ export default class AppSelectDropDown extends Vue {
*/ */
get curvalue() { get curvalue() {
if (this.value && this.items.length > 0) { // 判断是否拿到表单传来的值、列表项是否加载完成 if (this.value && this.items.length > 0) { // 判断是否拿到表单传来的值、列表项是否加载完成
let isIncluded = this.items.some((item:any)=>{return item.text === this.value}); let isIncluded = this.items.some((item:any)=>{return item.name === this.value});
if (isIncluded) { if (isIncluded) {
return this.value; return this.value;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册