Skip to content

Commit ea50d93

Browse files
author
tsv2013
committed
Fixed build
1 parent 8bbdaee commit ea50d93

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Analytics.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ onMounted(() => {
2121
data
2222
);
2323
surveyAnalytics.render(
24-
document.getElementById("summaryContainer")
24+
document.getElementById("summaryContainer") as HTMLElement
2525
);
2626
});
2727
</script>

src/components/AnalyticsDatatables.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ const survey = new Model(json);
2929
onMounted(() => {
3030
DataTables.initJQuery($);
3131
const surveyAnalyticsDataTables = new DataTables(survey, data);
32-
surveyAnalyticsDataTables.render(document.getElementById("tableContainer"));
32+
surveyAnalyticsDataTables.render(document.getElementById("tableContainer") as HTMLElement);
3333
});
3434
</script>

src/components/AnalyticsTabulator.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import "jspdf-autotable"
1313
import jsPDF from "jspdf";
1414
import * as XLSX from "xlsx";
1515
16-
window.jsPDF = jsPDF;
17-
window.XLSX = XLSX;
16+
window["jsPDF"] = jsPDF;
17+
window["XLSX"] = XLSX;
1818
1919
import { Tabulator } from "survey-analytics/survey.analytics.tabulator";
2020
@@ -27,7 +27,7 @@ const survey = new Model(json);
2727
2828
onMounted(() => {
2929
const surveyAnalyticsTabulator = new Tabulator(survey, data);
30-
surveyAnalyticsTabulator.render(document.getElementById("tableContainer"));
30+
surveyAnalyticsTabulator.render(document.getElementById("tableContainer") as HTMLElement);
3131
});
3232
3333
</script>

0 commit comments

Comments
 (0)