From 12e60b39fb28d23d3f7ab37daeffe76fca3ff015 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Mon, 30 Oct 2023 04:53:55 -0700 Subject: [PATCH] fix(docs): [grid] update big data docs (#703) --- .../full-data-loading-composition-api.vue | 0 .../full-data-loading.spec.js | 2 +- .../full-data-loading.vue | 0 .../grid-large-tree-data-composition-api.vue | 0 .../grid-large-tree-data.spec.js | 2 +- .../grid-large-tree-data.vue | 0 .../scroll-paging-composition-api.vue | 0 .../scroll-paging.spec.js | 2 +- .../scroll-paging.vue | 0 .../virtual-rolling-composition-api.vue | 37 +++++--- .../virtual-rolling.spec.js | 2 +- .../virtual-rolling.vue | 32 ++++--- .../grid-optimization-composition-api.vue | 79 ---------------- .../tiny-first-menu/grid-optimization.vue | 89 ------------------- .../grid/webdoc/grid-grid-optimization.cn.md | 7 -- .../grid/webdoc/grid-grid-optimization.en.md | 7 -- .../app/grid/webdoc/grid-grid-optimization.js | 18 ---- .../webdoc/grid-grid-optimization.json.cn.md | 7 -- .../webdoc/grid-grid-optimization.json.en.md | 7 -- .../pc/app/grid/webdoc/grid-large-data.js | 16 ++-- .../sites/demos/pc/app/grid/webdoc/grid.js | 8 +- examples/sites/demos/pc/menus.js | 1 - packages/vue/src/grid/__tests__/grid.test.tsx | 5 +- 23 files changed, 62 insertions(+), 259 deletions(-) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/full-data-loading-composition-api.vue (100%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/full-data-loading.spec.js (89%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/full-data-loading.vue (100%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/grid-large-tree-data-composition-api.vue (100%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/grid-large-tree-data.spec.js (87%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/grid-large-tree-data.vue (100%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/scroll-paging-composition-api.vue (100%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/scroll-paging.spec.js (86%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/scroll-paging.vue (100%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/virtual-rolling-composition-api.vue (55%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/virtual-rolling.spec.js (88%) rename examples/sites/demos/pc/app/grid/{tiny-first-menu => large-data}/virtual-rolling.vue (56%) delete mode 100644 examples/sites/demos/pc/app/grid/tiny-first-menu/grid-optimization-composition-api.vue delete mode 100644 examples/sites/demos/pc/app/grid/tiny-first-menu/grid-optimization.vue delete mode 100644 examples/sites/demos/pc/app/grid/webdoc/grid-grid-optimization.cn.md delete mode 100644 examples/sites/demos/pc/app/grid/webdoc/grid-grid-optimization.en.md delete mode 100644 examples/sites/demos/pc/app/grid/webdoc/grid-grid-optimization.js delete mode 100644 examples/sites/demos/pc/app/grid/webdoc/grid-grid-optimization.json.cn.md delete mode 100644 examples/sites/demos/pc/app/grid/webdoc/grid-grid-optimization.json.en.md diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/full-data-loading-composition-api.vue b/examples/sites/demos/pc/app/grid/large-data/full-data-loading-composition-api.vue similarity index 100% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/full-data-loading-composition-api.vue rename to examples/sites/demos/pc/app/grid/large-data/full-data-loading-composition-api.vue diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/full-data-loading.spec.js b/examples/sites/demos/pc/app/grid/large-data/full-data-loading.spec.js similarity index 89% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/full-data-loading.spec.js rename to examples/sites/demos/pc/app/grid/large-data/full-data-loading.spec.js index 4f5d3de27..569b452af 100644 --- a/examples/sites/demos/pc/app/grid/tiny-first-menu/full-data-loading.spec.js +++ b/examples/sites/demos/pc/app/grid/large-data/full-data-loading.spec.js @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test' test('全量加载', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) - await page.goto('grid-large-data#tiny-first-menu-full-data-loading') + await page.goto('grid-large-data#large-data-full-data-loading') await page.locator('.tiny-grid__body').hover() // 先滚动1000px await page.mouse.wheel(0, 1000) diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/full-data-loading.vue b/examples/sites/demos/pc/app/grid/large-data/full-data-loading.vue similarity index 100% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/full-data-loading.vue rename to examples/sites/demos/pc/app/grid/large-data/full-data-loading.vue diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/grid-large-tree-data-composition-api.vue b/examples/sites/demos/pc/app/grid/large-data/grid-large-tree-data-composition-api.vue similarity index 100% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/grid-large-tree-data-composition-api.vue rename to examples/sites/demos/pc/app/grid/large-data/grid-large-tree-data-composition-api.vue diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/grid-large-tree-data.spec.js b/examples/sites/demos/pc/app/grid/large-data/grid-large-tree-data.spec.js similarity index 87% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/grid-large-tree-data.spec.js rename to examples/sites/demos/pc/app/grid/large-data/grid-large-tree-data.spec.js index da61bd265..0a1d8457f 100644 --- a/examples/sites/demos/pc/app/grid/tiny-first-menu/grid-large-tree-data.spec.js +++ b/examples/sites/demos/pc/app/grid/large-data/grid-large-tree-data.spec.js @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test' test('树表虚拟滚动', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) - await page.goto('grid-large-data#tiny-first-menu-grid-large-tree-data') + await page.goto('grid-large-data#large-data-grid-large-tree-data') // 展开树表 await page.getByRole('cell', { name: 'IR-1-120个子US' }).locator('path').click() await expect(page.getByText('124', { exact: true })).toBeVisible() diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/grid-large-tree-data.vue b/examples/sites/demos/pc/app/grid/large-data/grid-large-tree-data.vue similarity index 100% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/grid-large-tree-data.vue rename to examples/sites/demos/pc/app/grid/large-data/grid-large-tree-data.vue diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/scroll-paging-composition-api.vue b/examples/sites/demos/pc/app/grid/large-data/scroll-paging-composition-api.vue similarity index 100% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/scroll-paging-composition-api.vue rename to examples/sites/demos/pc/app/grid/large-data/scroll-paging-composition-api.vue diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/scroll-paging.spec.js b/examples/sites/demos/pc/app/grid/large-data/scroll-paging.spec.js similarity index 86% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/scroll-paging.spec.js rename to examples/sites/demos/pc/app/grid/large-data/scroll-paging.spec.js index 18bf1d0c5..7bc05d7eb 100644 --- a/examples/sites/demos/pc/app/grid/tiny-first-menu/scroll-paging.spec.js +++ b/examples/sites/demos/pc/app/grid/large-data/scroll-paging.spec.js @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test' test('滚动分页', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) - await page.goto('grid-large-data#tiny-first-menu-scroll-paging') + await page.goto('grid-large-data#large-data-scroll-paging') const scrollContainer = page.locator('.tiny-grid-body__y-space.visual') const scrollBar = page.locator('.tiny-grid-body__y-scrollbar') await expect(scrollContainer).toHaveCSS('height', '420px') diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/scroll-paging.vue b/examples/sites/demos/pc/app/grid/large-data/scroll-paging.vue similarity index 100% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/scroll-paging.vue rename to examples/sites/demos/pc/app/grid/large-data/scroll-paging.vue diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling-composition-api.vue b/examples/sites/demos/pc/app/grid/large-data/virtual-rolling-composition-api.vue similarity index 55% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling-composition-api.vue rename to examples/sites/demos/pc/app/grid/large-data/virtual-rolling-composition-api.vue index e34972a7f..67401217f 100644 --- a/examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling-composition-api.vue +++ b/examples/sites/demos/pc/app/grid/large-data/virtual-rolling-composition-api.vue @@ -1,14 +1,5 @@ - diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling.spec.js b/examples/sites/demos/pc/app/grid/large-data/virtual-rolling.spec.js similarity index 88% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling.spec.js rename to examples/sites/demos/pc/app/grid/large-data/virtual-rolling.spec.js index d63232bac..488a4336a 100644 --- a/examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling.spec.js +++ b/examples/sites/demos/pc/app/grid/large-data/virtual-rolling.spec.js @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test' test('虚拟滚动', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) - await page.goto('grid-large-data#tiny-first-menu-virtual-rolling') + await page.goto('grid-large-data#large-data-virtual-rolling') await page.locator('.tiny-grid__body').hover() // 先滚动1000px await page.mouse.wheel(0, 1000) diff --git a/examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling.vue b/examples/sites/demos/pc/app/grid/large-data/virtual-rolling.vue similarity index 56% rename from examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling.vue rename to examples/sites/demos/pc/app/grid/large-data/virtual-rolling.vue index c2c67ba65..996eb88bf 100644 --- a/examples/sites/demos/pc/app/grid/tiny-first-menu/virtual-rolling.vue +++ b/examples/sites/demos/pc/app/grid/large-data/virtual-rolling.vue @@ -1,14 +1,5 @@