tiny-vue/examples/sites/demos/mobile-first/app/input/mask.vue

32 lines
517 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="demo-input">
<tiny-input v-model="input" mask disabled></tiny-input>
<tiny-input v-model="input" mask display-only></tiny-input>
</div>
</template>
<script>
import { Input } from '@opentiny/vue'
export default {
components: {
TinyInput: Input
},
data() {
return {
input: '文字过长时会显示点点点并且鼠标悬浮出现tip'
}
}
}
</script>
<style scoped>
.demo-input {
width: 150px;
}
.demo-input > * {
margin-bottom: 10px;
}
</style>