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

32 lines
467 B
Vue

<template>
<div class="demo-input">
<tiny-input v-model="input" placeholder="请输入内容" @change="change"></tiny-input>
</div>
</template>
<script>
import { Input, Modal } from '@opentiny/vue'
export default {
components: {
TinyInput: Input
},
data() {
return {
input: ''
}
},
methods: {
change() {
Modal.message('change')
}
}
}
</script>
<style scoped>
.demo-input .tiny-input {
width: 250px;
}
</style>