mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
Merge branch 'develop' of ***REMOVED*** into develop
This commit is contained in:
commit
bb1b49c8c6
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "naive-ui",
|
||||
"version": "0.2.96",
|
||||
"version": "0.2.97",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
@ -96,4 +96,4 @@
|
||||
"node-sass": "^4.12.0",
|
||||
"sass-loader": "^7.1.0"
|
||||
}
|
||||
}
|
||||
}
|
@ -98,9 +98,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
toggle (isActive) {
|
||||
!isActive && setTimeout(() => {
|
||||
this.$destroy()
|
||||
}, 300)
|
||||
this.handleCancel()
|
||||
},
|
||||
handleCancel () {
|
||||
this.onCancel()
|
||||
|
@ -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