mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
487001d697
.demo.md for component demo .demo-entry.md for demo entry .md for common docs
26 lines
357 B
Markdown
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: ''
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
``` |