naive-ui/demo/documentation/components/dynamicInput/zhCN/pair.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

26 lines
357 B
Markdown

# 使用键值对预设
```html
<n-dynamic-input
preset="pair"
v-model="value"
key-placeholder="环境变量名"
value-placeholder="环境变量值"
/>
<pre>
{{ JSON.stringify(value, 0, 2) }}
</pre>
```
```js
export default {
data () {
return {
value: [
{
key: '',
value: ''
}
]
}
}
}
```