mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
487001d697
.demo.md for component demo .demo-entry.md for demo entry .md for common docs
357 B
357 B
使用键值对预设
<n-dynamic-input
preset="pair"
v-model="value"
key-placeholder="环境变量名"
value-placeholder="环境变量值"
/>
<pre>
{{ JSON.stringify(value, 0, 2) }}
</pre>
export default {
data () {
return {
value: [
{
key: '',
value: ''
}
]
}
}
}