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

23 lines
297 B
Markdown
Raw Normal View History

2020-03-09 09:29:48 +08:00
# 基础用法
```html
2020-03-09 09:29:48 +08:00
<n-custom-add
v-model="test1"
placeholder-key="placeholder1"
placeholder-value="placeholder2"
/>
```
```js
export default {
data () {
return {
test1: [
{
key: 'key1',
value: 'value1'
},
{}
]
}
}
}
```