mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
fix InputKeyValuePairs can not remove the first item
This commit is contained in:
parent
969cbf79aa
commit
e00515d840
@ -120,7 +120,7 @@ export default {
|
||||
this.value.push({})
|
||||
},
|
||||
remove (index) {
|
||||
if (index === 0) {
|
||||
if (index === 0 && this.value.length <= 1) {
|
||||
Object.keys(this.value[0]).forEach((key) => {
|
||||
let type = typeof (this.value[0][key])
|
||||
switch (type) {
|
||||
|
Loading…
Reference in New Issue
Block a user