提交 d3ffe671 编写于 作者: KK's avatar KK

多选单选触发机制调整

上级 a1536123
<template>
<div class="app-mob-mpicker">
<ion-input :disabled="disabled" :value="(curValue.length > 0 ? 'hasValue' : '')" readonly>
<div>
<ion-input :disabled="disabled" :value="(curValue.length > 0 ? 'hasValue' : '')" readonly @click="openView">
<div class="text" >
<template v-for="(item,index) in curValue">
{{item.text}}
<span v-if="index < curValue.length-1">,</span>
</template>
</div>
</ion-input>
<ion-icon class="open-picker" v-if="!curValue.length > 0" name="search-outline" @click="openView"></ion-icon>
<ion-icon v-else class="open-picker" name="close-circle-outline" @click="onClear"></ion-icon>
<ion-icon class="open-picker" v-if="!curValue.length > 0" name="search-outline" @click.stop="openView"></ion-icon>
<ion-icon v-else class="open-picker" name="close-circle-outline" @click.stop="onClear"></ion-icon>
</div>
</template>
......
<template>
<div class="app-picker">
<ion-input :disabled="disabled" class="ibz-input" :value="refvalue" readonly></ion-input>
<div class="app-picker" >
<ion-input :disabled="disabled" class="ibz-input" :value="refvalue" readonly @click="openView"></ion-input>
<ion-icon v-show="refvalue" class="delete-value " name="close-circle-outline" @click="onClear"></ion-icon>
<ion-icon v-show="refvalue == '' || refvalue == null" class="open-picker" name="search-outline" @click="openView"></ion-icon>
<ion-icon v-show="refvalue == '' || refvalue == null" class="open-picker" name="search-outline" @click.stop="openView"></ion-icon>
</div>
</template>
<script lang="ts">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册