提交 29da818c 编写于 作者: zhujiamin's avatar zhujiamin

新增动作面板组件 --fix1

上级 b86121b1
<template>
<div class="app-mobile-actionsheet">
<div class="cancel-icon" v-if="curValue || curValue === 0"><ion-icon name="close-circle-outline" @click="clear"></ion-icon></div>
<div v-if="curValue== null || curValue==''" class="select-icon" ></div>
<div v-if="curValue== null || curValue==''" class="select-icon" @click="showSheet"></div>
<!-- <ion-input :value="action" readonly @ionFocus="showSheet"></ion-input> -->
<div @click="showSheet" class="text">{{action}}</div>
<van-action-sheet get-container="#app" v-model="show" :actions="actions" @open="load" @select="change" :cancel-text="$t('app.button.cancel')" @cancel="cancel"/>
......@@ -101,7 +101,6 @@ export default class AppMobActionsheet extends Vue {
* @memberof AppMobActionsheet
*/
public change(action: any) {
console.log(action);
this.action = action.name;
this.$store.commit('setSelectStatus',true);
let devalue:any = action.value;
......@@ -119,7 +118,6 @@ export default class AppMobActionsheet extends Vue {
}
}
}
console.log(devalue);
this.$emit("change", devalue);
this.show = false;
}
......@@ -280,7 +278,6 @@ export default class AppMobActionsheet extends Vue {
} else {
this.options = [];
}
console.log(this.options);
this.handleActions();
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册