[improvement] NumberKeyboard: add close-button-text prop (#2051)

This commit is contained in:
neverland
2018-11-07 18:03:02 +08:00
committed by GitHub
parent c2af18f6d3
commit b5cdfc3ac5
8 changed files with 26 additions and 22 deletions
+2 -4
View File
@@ -1,12 +1,11 @@
<template>
<i
v-text="text"
:class="['van-hairline', className]"
@touchstart.stop.prevent="onFocus"
@touchmove="onBlur"
@touchend="onBlur"
@touchcancel="onBlur"
class="van-hairline"
:class="[b(), className]"
/>
</template>
@@ -34,8 +33,7 @@ export default create({
className() {
const types = this.type.slice(0);
this.active && types.push('active');
return types.map(type => this.b([type]));
return this.b(types);
}
},