|
@@ -63,7 +63,7 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
cell(nval) {
|
|
|
- if(nval && nval.length>0) {
|
|
|
+ if(nval) {
|
|
|
this.cellArray = Array.isArray(nval)?nval:[nval]
|
|
|
this.option = this.cellArray[0].ShowStyle?{
|
|
|
...JSON.parse(this.cellArray[0].ShowStyle)
|
|
@@ -71,6 +71,12 @@ export default {
|
|
|
nt: "",//numberType
|
|
|
pn: 0,//ponitNum
|
|
|
}
|
|
|
+ }else{
|
|
|
+ this.cellArray=[]
|
|
|
+ this.option ={
|
|
|
+ nt: "",//numberType
|
|
|
+ pn: 0,//ponitNum
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|