Skip to content

Commit

Permalink
chore: perf vxe-table use case
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionad-Morotar committed Dec 18, 2023
1 parent fd436c7 commit 04c2c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions play/src/vxe-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const playRef = ref();
const isHover = useElementHover(playRef);
const states = reactive({
isVirtualScroll: false,
isVirtualScroll: true,
isVirtualScrollbar: true,
isLoading: false,
tableData: [] as any[],
Expand All @@ -66,7 +66,7 @@ const formatterSex = ({ cellValue }: any) => {
let count = 0
let parentId = 0
const listCount = 50
const listCount = 300
const getTableData = () => {
const res = Array(listCount).fill(0).map((x) => {
const res = {
Expand Down
2 changes: 1 addition & 1 deletion play/src/vxe-table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ watch(() => props.enable, async (enable) => {
barStates.setOffset({ y: { top: $header } });
barStates.init({
mount: tableRef,
content: [$bodyWrapper, $bodyContent, $bodyXSpace, $bodyYSpace],
content: [$bodyContent, $bodyXSpace, $bodyYSpace],
viewport: [$bodyWrapper]
});
} catch (err) {
Expand Down

0 comments on commit 04c2c98

Please sign in to comment.