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

多选单选触发机制调整

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