mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
26 lines
345 B
Markdown
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: [
|
|
'',
|
|
'',
|
|
''
|
|
]
|
|
}
|
|
}
|
|
}
|
|
``` |