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

piker图标显示,文字显示

上级 6abf383b
<template> <template>
<div class="app-picker"> <div class="app-picker">
<ion-input class="ibz-input" :value="refvalue" @ionFocus="openView"></ion-input> <ion-input class="ibz-input" :value="refvalue" @ionFocus="openView"></ion-input>
<ion-icon v-if="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 class="open-picker" name="search-outline" @click="openView"></ion-icon> <ion-icon v-show="refvalue == ''" class="open-picker" name="search-outline" @click="openView"></ion-icon>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
...@@ -423,9 +423,11 @@ export default class AppPicker extends Vue { ...@@ -423,9 +423,11 @@ export default class AppPicker extends Vue {
*/ */
public onClear($event: any): void { public onClear($event: any): void {
if (this.valueitem) { if (this.valueitem) {
this.curvalue="";
this.$emit('formitemvaluechange', { name: this.valueitem, value: '' }); this.$emit('formitemvaluechange', { name: this.valueitem, value: '' });
} }
if (this.name) { if (this.name) {
this.curvalue="";
this.$emit('formitemvaluechange', { name: this.name, value: '' }); this.$emit('formitemvaluechange', { name: this.name, value: '' });
} }
// this.$forceUpdate(); // this.$forceUpdate();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册