vue number keyboard for mobile
npm install vue-numkeyboard
import numkeyboard from 'vue-numkeyboard';
import 'vue-numkeyboard/style.css';
Vue.use(numkeyboard);
<numkeyboard v-model="num" ok-text="OK" text-align="left"></numkeyboard>
attribute | type | default | required | desc |
---|---|---|---|---|
expose-elem | String | current input element | false | raise page height if expose elemenet is covered by keyboard |
point | Boolean | true | false | show digital point |
ok-text | String | OK | false | ok button text |
text-align | String | '' | false | start inputing from left or right |
placeholder | String | '' | false | placeholder |