Skip to content

Commit

Permalink
fix(Table): Revert "fix(Table): data outdated when rows change (#2600)"
Browse files Browse the repository at this point in the history
This reverts commit b23f2de.
  • Loading branch information
coreyshuman committed Feb 20, 2025
1 parent f2d3876 commit d47a5ff
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/runtime/components/data/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@

<slot
v-else
:key="retriggerSlot"
:name="`${column.key}-data`"
:column="column"
:row="row"
Expand Down Expand Up @@ -132,7 +131,7 @@
</template>

<script lang="ts">
import { computed, defineComponent, ref, toRaw, toRef, watch } from 'vue'
import { computed, defineComponent, toRaw, toRef } from 'vue'
import type { PropType, AriaAttributes } from 'vue'
import { upperFirst } from 'scule'
import { defu } from 'defu'
Expand Down Expand Up @@ -307,8 +306,6 @@ export default defineComponent({
})
})
const retriggerSlot = ref(null)
const savedSort = { column: sort.value.column, direction: null }
const rows = computed(() => {
Expand Down Expand Up @@ -483,12 +480,6 @@ export default defineComponent({
return undefined
}
watch(rows, () => {
retriggerSlot.value = new Date()
}, {
deep: true
})
return {
// eslint-disable-next-line vue/no-dupe-keys
ui,
Expand All @@ -515,8 +506,7 @@ export default defineComponent({
getRowData,
toggleOpened,
getAriaSort,
isExpanded,
retriggerSlot
isExpanded
}
}
})
Expand Down

0 comments on commit d47a5ff

Please sign in to comment.