forked from opentiny/tiny-vue
30 lines
514 B
Vue
30 lines
514 B
Vue
<template>
|
|
<div class="demo-input">
|
|
<tiny-input type="textarea" v-model="input" placeholder="cols 为默认"></tiny-input>
|
|
<br />
|
|
<br />
|
|
<tiny-input type="textarea" v-model="input" :cols="100" placeholder="cols 为 100"></tiny-input>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { Input } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyInput: Input
|
|
},
|
|
data() {
|
|
return {
|
|
input: ''
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.demo-input .tiny-textarea {
|
|
width: auto;
|
|
}
|
|
</style>
|