Submission table pagination & migrate chart to vue3 (#254)

* Submission table Pagination in background

* migrate chart to vue3

* Form submissions pagination

* Form submissions

* Fix form starts

* Fix openSelect key issue

---------

Co-authored-by: Forms Dev <chirag+new@notionforms.io>
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Chirag Chhatrala
2023-12-07 19:01:56 +05:30
committed by GitHub
parent 25c5e00c41
commit 24276f0b95
9 changed files with 58 additions and 44 deletions

View File

@@ -182,7 +182,9 @@ export default {
mounted () {
const parent = document.getElementById('table-page')
this.tableHash = cyrb53(JSON.stringify(this.form.properties))
parent.addEventListener('scroll', this.handleScroll, { passive: true })
if (parent) {
parent.addEventListener('scroll', this.handleScroll, { passive: true })
}
window.addEventListener('resize', this.handleScroll)
this.onStructureChange()
this.handleScroll()

View File

@@ -1,7 +1,7 @@
<template>
<span class="-mb-2" v-if="value">
<span v-if="value" class="-mb-2">
<template v-if="valueIsObject">
<open-tag v-for="val,index in value" :key="index" :opt="val" />
<open-tag v-for="(val,index) in value" :key="index+val" :opt="val" />
</template>
<open-tag v-else :opt="value" />
</span>