mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
487001d697
.demo.md for component demo .demo-entry.md for demo entry .md for common docs
457 B
457 B
自动调整尺寸
Textarea 自动调整尺寸。
<n-input
v-model="value"
placeholder="自动调整尺寸"
type="textarea"
size="small"
:autosize="{
minRows: 3,
maxRows: 5
}"
/>
<n-input
v-model="value"
type="textarea"
placeholder="自动调整尺寸"
:autosize="{
minRows: 3
}"
/>
export default {
data() {
return {
value: null
}
}
}
.n-input {
margin-bottom: 8px;
}