From 71c0f1e729055a86cd2e00bfc909c0472a3bfef3 Mon Sep 17 00:00:00 2001 From: baiwusanyu-c <740132583@qq.com> Date: Mon, 25 Dec 2023 09:30:09 +0800 Subject: [PATCH] feat: added KStatistic component --- .../__snapshots__/statistic.spec.ts.snap | 8 +- .../Statistic/__test__/fixture/prefix.svelte | 7 + .../Statistic/__test__/fixture/suffix.svelte | 7 + .../Statistic/__test__/statistic.spec.ts | 89 ++++- components/Statistic/package.json | 94 ++--- components/Statistic/src/index.svelte | 113 +++--- components/Statistic/src/index.ts | 2 +- components/Statistic/src/types.d.ts | 78 ++-- components/Statistic/tsconfig.json | 17 +- package.json | 376 +++++++++--------- preset/src/shortcuts/index.ts | 6 +- preset/src/shortcuts/src/statistic.ts | 12 +- 12 files changed, 449 insertions(+), 360 deletions(-) create mode 100644 components/Statistic/__test__/fixture/prefix.svelte create mode 100644 components/Statistic/__test__/fixture/suffix.svelte diff --git a/components/Statistic/__test__/__snapshots__/statistic.spec.ts.snap b/components/Statistic/__test__/__snapshots__/statistic.spec.ts.snap index ddafe4fe..769f7d62 100644 --- a/components/Statistic/__test__/__snapshots__/statistic.spec.ts.snap +++ b/components/Statistic/__test__/__snapshots__/statistic.spec.ts.snap @@ -1,3 +1,9 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Test: KStatistic > props: cls 1`] = `"
"`; +exports[`Test: KStatistic > props: cls 1`] = `"