naive-ui/demo/documentation/components/dynamicInput/zhCN/basic.md

26 lines
348 B
Markdown
Raw Normal View History

# 使用输入预设
2020-03-15 12:35:10 +08:00
默认状况下,`n-dynamic-input` 的预设是 `input`
```html
<n-dynamic-input
v-model="value"
placeholder="请输入"
2020-03-15 12:35:10 +08:00
:min="3"
:max="6"
/>
2020-03-09 12:12:31 +08:00
<pre>
{{ JSON.stringify(value, 0, 2) }}
2020-03-09 12:12:31 +08:00
</pre>
```
```js
export default {
data () {
return {
value: [
2020-03-15 12:35:10 +08:00
'',
'',
2020-03-11 16:24:35 +08:00
''
]
}
}
}
```