Merge branch 'develop' of ***REMOVED*** into develop

This commit is contained in:
07akioni 2019-08-14 19:31:32 +08:00
commit bb1b49c8c6
3 changed files with 4 additions and 6 deletions

View File

@ -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"
}
}
}

View File

@ -98,9 +98,7 @@ export default {
},
methods: {
toggle (isActive) {
!isActive && setTimeout(() => {
this.$destroy()
}, 300)
this.handleCancel()
},
handleCancel () {
this.onCancel()

View File

@ -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) {