mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
958 B
958 B
Dynamic Input
Demos
basic
pair
custom
Props
Input Props
Name | Type | Default | Description |
---|---|---|---|
value | Array |
required | |
placeholder | string |
'' |
|
onAdd | (resolve: (item) => void) => any |
null |
Callback when click at '+'. Pass resolved item to resolve function to set a new node. |
Pair Props
Name | Type | Default | Description |
---|---|---|---|
value | Array |
- | required |
placeholderKey | string |
key |
|
placeholderValue | string |
value |
|
onAdd | (resolve: (item) => void) => any |
null |
Callback when click at '+'. Pass resolved item to resolve function to set a new node. |
Custom Props
Name | Type | Default | Description |
---|---|---|---|
value | Array |
- | required |
onAdd | (resolve: (item) => void) => any |
null |
Callback when click at '+'. Pass resolved item to resolve function to set a new node. |
Events
Name | Parameters | Description |
---|---|---|
remove | (index: Number) |
Index is the item which you removed |