Skip to content

Commit ea376e3

Browse files
committed
@ Adds clickable property to clicked time control into user.
1 parent 82d90bb commit ea376e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/Json2Excel.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
return [];
2121
}
2222
},
23+
clickable:{
24+
type:Boolean,
25+
default:false
26+
},
2327
details: {
2428
type: Object,
2529
default() {
@@ -100,6 +104,9 @@
100104
xlsx.writeFile(this.workBook, `${name}.xlsx`);
101105
},
102106
exportToExcel() {
107+
if (!this.clickable) {
108+
return;
109+
}
103110
this.init();
104111
this.makeDetails();
105112
this.makeHeader();

0 commit comments

Comments
 (0)