naive-ui/demo/documentation/components/dynamicInput/enUS/basic.md
2020-03-17 15:31:28 +08:00

26 lines
345 B
Markdown

# Use Preset Input
By default, the preset of `n-dynamic-input` is `input`.
```html
<n-dynamic-input
v-model="value"
placeholder="please input"
:min="3"
:max="6"
/>
<pre>
{{ JSON.stringify(value, 0, 2) }}
</pre>
```
```js
export default {
data () {
return {
value: [
'',
'',
''
]
}
}
}
```