Browse Source

去掉affixed

master_hella_20240701
yufei0306 8 months ago
parent
commit
a202e0b998
  1. 5
      src/components/Table/src/Table.vue

5
src/components/Table/src/Table.vue

@ -295,7 +295,7 @@ export default defineComponent({
return () => ( return () => (
<div v-loading={unref(getProps).loading}> <div v-loading={unref(getProps).loading}>
<ElTable class="affix-container" <ElTable
// @ts-ignore // @ts-ignore
ref={elTableRef} ref={elTableRef}
data={unref(getProps).data} data={unref(getProps).data}
@ -313,15 +313,12 @@ export default defineComponent({
{unref(getProps).pagination ? ( {unref(getProps).pagination ? (
// update by Pagination // update by Pagination
<ElAffix position="bottom" target=".affix-container" offset="50">
<ElPagination <ElPagination
v-model:pageSize={pageSizeRef.value} v-model:pageSize={pageSizeRef.value}
v-model:currentPage={currentPageRef.value} v-model:currentPage={currentPageRef.value}
class="float-right mb-15px mt-15px" class="float-right mb-15px mt-15px"
{...unref(pagination)} {...unref(pagination)}
></ElPagination> ></ElPagination>
</ElAffix>
) : undefined} ) : undefined}
</div> </div>

Loading…
Cancel
Save