From 5e02624fd9360fa0149e8d0b4a86eea9a1b7ba65 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Mon, 10 Jun 2024 19:05:34 -0700 Subject: [PATCH] Sync release 3.16.0 (#1671) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(grid): fix right fixed table header gutter style (#1542) * fix(grid): [grid] fix grid no emit filter-change bug (#1536) * fix(grid): [grid] fix grid not emit filter-change bug * fix(grid): [grid] fix grid not emit filter-change bug * docs: add v3.15.0 changelog (#1544) * fix(tree): remove leaf node's padding-left (#1546) * fix(action-menu): [action-menu] fix no divided bug (#1538) * fix(action-menu): [action-menu] fix no divided bug * fix(action-menu): [action-menu] fix no divided bug * refactor(unplugin): rewrite unplugin for autoimport Vue components (#1553) * fix(tabs): [tabs] Fixed issue with default slot and template/v-if/v-for usage in vue2 and vue3 (#1558) * fix(tabs): [tabs] Fix the bug where the name is empty caused by using v-if in tabstem * fix(tabs): [tabs] update renderless version * fix(tabs): [tabs] Fix the issue with rendering in the default slot of Vue3 * fix(tabs): [tabs] Fix the issue of inconsistent highlighting when multiple V-ifs are used * fix(tabs): [tabs] update opentiny/vue-tabs version * fix(theme-saas): update theme saas dependencies (#1582) * Update package.json * feat(unplugin-tiny-vue): add TinyVueResolver (#1585) * docs: add breaking changes to changelog (#1562) * fix(chart): delete chart duplicate key (#1624) * fix(select): [select] add showAllTextTag prop for select (#1627) * fix(select): add showAllTextTag prop for select * fix(select): update select version in package.json * fix: [chart]fix chart height error and area chart empty data error (#1631) * fix: 修复面积图空数据报错问题 * fix: 修复图表高度设置为100%的高度异常问题 * fix: 修改boxplot图表案例引入 * fix(drop-times): [drop-times] modify style (#1635) * feat(theme): update theme version * fix(chart): fix chart extend bugs (#1638) * fix: 修复chart图表的extend未生效问题 * fix: 优化图表extend逻辑 * fix: 优化图表extend逻辑 * docs: optimize component category (#1626) (#1641) * docs: update changelog v3.16.0 (#1642) * feat(version): add npmmirror cdn link (#1646) * feat(version): update docs version * feat(alert): [alert] add type title text color css var (#1653) * feat(alert): [alert] add type title text color css var * feat(alert): [alert] add type title text color css var * fix(select): [select] Fix the issue of invalid select component click events and remove inheritAttrs (#1657) * fix(theme): [grid] fix tree node text overflow (#1661) * fix(vue): [grid] fix multi toolbar can not get tableColumns config (#1656) * fix(vue): [grid] fix multi toolbar can not get tableColumns config * fix(vue): [grid] fix multi toolbar can not get tableColumns config * fix(select,grid): fix select click event bug and grid toolbar bug * fix(modal): adjust the title icon display of the modal (#1658) * fix(modal): adjust the title icon display of the modal * fix: update modal package.json * fix(statistic): optimized the style, test, and example of the statistics component (#1660) * fix: update style and demo statistic of component * fix: update e2e-test * fix: when num is equal to 0 --------- Co-authored-by: gimmyhehe <975402925@qq.com> Co-authored-by: Kagol Co-authored-by: 申君健 <40288193@qq.com> Co-authored-by: chenxi-20 <76168465+chenxi-20@users.noreply.github.com> Co-authored-by: Davont Co-authored-by: 李天佑 <66231260+You-Hw-Y@users.noreply.github.com> Co-authored-by: MomoPoppy <125256456+MomoPoppy@users.noreply.github.com> Co-authored-by: James <72028410+James-9696@users.noreply.github.com> --- .../pc/app/statistic/basic-usage.spec.ts | 16 +------ .../prefix-suffix-slot-composition-api.vue | 18 +++++--- .../app/statistic/prefix-suffix-slot.spec.ts | 19 ++++++++ .../pc/app/statistic/prefix-suffix-slot.vue | 18 +++++--- .../statistic-slot-composition-api.vue | 5 ++- .../pc/app/statistic/statistic-slot.spec.ts | 6 +-- .../demos/pc/app/statistic/statistic-slot.vue | 5 ++- .../statistic-style-composition-api.vue | 9 ++-- .../pc/app/statistic/statistic-style.spec.ts | 7 ++- .../pc/app/statistic/statistic-style.vue | 9 ++-- .../pc/app/statistic/webdoc/statistic.js | 2 +- internals/vue-test-utils/src/index.ts | 2 +- packages/renderless/src/statistic/index.ts | 9 ++++ packages/theme-saas/src/grid/table.less | 1 + packages/theme/package.json | 2 +- packages/theme/src/alert/index.less | 10 ++--- packages/theme/src/alert/vars.less | 10 +++++ packages/theme/src/grid/header.less | 1 + packages/theme/src/grid/table.less | 1 + packages/theme/src/statistic/aurora-theme.js | 3 ++ packages/theme/src/statistic/index.less | 13 ++---- packages/theme/src/statistic/smb-theme.js | 3 +- packages/theme/src/statistic/vars.less | 10 ++--- packages/vue/src/grid/package.json | 2 +- packages/vue/src/grid/src/grid/grid.ts | 10 +++-- packages/vue/src/modal/package.json | 2 +- packages/vue/src/modal/src/pc.vue | 45 +++++++------------ packages/vue/src/select/package.json | 2 +- packages/vue/src/select/src/pc.vue | 3 -- packages/vue/src/statistic/src/pc.vue | 2 +- 30 files changed, 142 insertions(+), 103 deletions(-) create mode 100644 examples/sites/demos/pc/app/statistic/prefix-suffix-slot.spec.ts create mode 100644 packages/theme/src/statistic/aurora-theme.js diff --git a/examples/sites/demos/pc/app/statistic/basic-usage.spec.ts b/examples/sites/demos/pc/app/statistic/basic-usage.spec.ts index 2498e0328..74656c1ae 100644 --- a/examples/sites/demos/pc/app/statistic/basic-usage.spec.ts +++ b/examples/sites/demos/pc/app/statistic/basic-usage.spec.ts @@ -3,18 +3,6 @@ import { test, expect } from '@playwright/test' test('基本用法', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('statistic#basic-usage') - await page - .locator('div') - .filter({ hasText: /123\/100$/ }) - .first() - .click() - await page - .locator('div') - .filter({ hasText: /^基本用法$/ }) - .first() - .click() - await page - .locator('div') - .filter({ hasText: /^306,526\.23$/ }) - .click() + await page.locator('#basic-usage').getByText('306,526', { exact: true }) + await page.getByText('306,526.23') }) diff --git a/examples/sites/demos/pc/app/statistic/prefix-suffix-slot-composition-api.vue b/examples/sites/demos/pc/app/statistic/prefix-suffix-slot-composition-api.vue index 028c004b8..0e22a2788 100644 --- a/examples/sites/demos/pc/app/statistic/prefix-suffix-slot-composition-api.vue +++ b/examples/sites/demos/pc/app/statistic/prefix-suffix-slot-composition-api.vue @@ -2,15 +2,21 @@
- - - - + - - + + + + + + + + + + +
diff --git a/examples/sites/demos/pc/app/statistic/prefix-suffix-slot.spec.ts b/examples/sites/demos/pc/app/statistic/prefix-suffix-slot.spec.ts new file mode 100644 index 000000000..1ef74f5e5 --- /dev/null +++ b/examples/sites/demos/pc/app/statistic/prefix-suffix-slot.spec.ts @@ -0,0 +1,19 @@ +import { test, expect } from '@playwright/test' + +test('前后缀', async ({ page }) => { + page.on('pageerror', (exception) => expect(exception).toBeNull()) + await page.goto('statistic#prefix-suffix-slot') + await page + .locator('div') + .filter({ hasText: /^已使用容量\(GB\)306GB$/ }) + .first() + await page + .locator('div') + .filter({ hasText: /^¥1,280\.00\/年$/ }) + .first() + await page + .locator('div') + .filter({ hasText: /^300GB$/ }) + .first() + await expect(page.getByText(/^¥1,280\.00\/年$/)).toHaveClass(/tiny-statistic__slots/) +}) diff --git a/examples/sites/demos/pc/app/statistic/prefix-suffix-slot.vue b/examples/sites/demos/pc/app/statistic/prefix-suffix-slot.vue index aaf3f7a9c..fbfe4db28 100644 --- a/examples/sites/demos/pc/app/statistic/prefix-suffix-slot.vue +++ b/examples/sites/demos/pc/app/statistic/prefix-suffix-slot.vue @@ -2,15 +2,21 @@
- - - - + - - + + + + + + + + + + +
diff --git a/examples/sites/demos/pc/app/statistic/statistic-slot-composition-api.vue b/examples/sites/demos/pc/app/statistic/statistic-slot-composition-api.vue index fd1ec6348..2b3b8054b 100644 --- a/examples/sites/demos/pc/app/statistic/statistic-slot-composition-api.vue +++ b/examples/sites/demos/pc/app/statistic/statistic-slot-composition-api.vue @@ -3,7 +3,10 @@ - + + + + diff --git a/examples/sites/demos/pc/app/statistic/statistic-slot.spec.ts b/examples/sites/demos/pc/app/statistic/statistic-slot.spec.ts index d6179bc93..b86b41de2 100644 --- a/examples/sites/demos/pc/app/statistic/statistic-slot.spec.ts +++ b/examples/sites/demos/pc/app/statistic/statistic-slot.spec.ts @@ -3,11 +3,9 @@ import { test, expect } from '@playwright/test' test('插槽用法', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('statistic#statistic-slot') - await page.locator('div').filter({ hasText: /^10,010,258$/ }) await page .locator('div') - .filter({ hasText: /^306,526\.23$/ }) + .filter({ hasText: /^存储总量已使用容量\(GB\)10,010,258GB$/ }) .first() - await page.getByText('Like:306,526').click() - await page.getByText('600/').click() + await page.getByText('306,526存储平均值').click() }) diff --git a/examples/sites/demos/pc/app/statistic/statistic-slot.vue b/examples/sites/demos/pc/app/statistic/statistic-slot.vue index c0cc4395a..e8d11ab14 100644 --- a/examples/sites/demos/pc/app/statistic/statistic-slot.vue +++ b/examples/sites/demos/pc/app/statistic/statistic-slot.vue @@ -3,7 +3,10 @@ - + + + + diff --git a/examples/sites/demos/pc/app/statistic/statistic-style-composition-api.vue b/examples/sites/demos/pc/app/statistic/statistic-style-composition-api.vue index 228a0eeca..9a441ab7c 100644 --- a/examples/sites/demos/pc/app/statistic/statistic-style-composition-api.vue +++ b/examples/sites/demos/pc/app/statistic/statistic-style-composition-api.vue @@ -2,7 +2,7 @@
- + - +