},
update(el, binding, vnode) {},
unbind(el, binding) {
document.removeEventListener(‘click’, el.vueClickOutside);
delete el.vueClickOutside;
}
};
keyboard.vue
<i v-if=“key === ‘top’” @click.stop=“clickKey” class=“iconfont icon-zhiding tab-top”>
<i v-else-if=“key === ‘123’” @click.stop=“clickKey” class=“tab-num”>123
<i v-else-if=“key === ‘del’” @click.stop=“clickKey” id=“del” class=“iconfont icon-delete key-delete”>
<i v-else-if=“key === ‘blank’” @click.stop=“clickKey” class=“iconfont icon-konggejian-jianpanyong tab-blank”>
<i v-else-if=“key === ‘symbol’” @click.stop=“clickKey” class=“tab-symbol”>符
<i v-else-if=“key === ‘point’” @click.stop=“clickKey” class=“tab-point”>·
<i v-else-if=“key === ‘enter’” @click.stop=“clickKey” class=“iconfont icon-huiche tab-enter”>
<i v-else @click.stop=“clickKey” >{{key}}