From 5cdcc89e219e1a2b26df9bc8ead63570010eaf8d Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Mon, 22 Apr 2024 11:33:23 +0800 Subject: [PATCH] refactor(indexes): sfc to tsx (#1327) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor(indexes): sfc to tsx * refactor(indexes): sfc to tsx * test: 临时屏蔽toMatchSnapshot * chore: test update --- .../__test__/__snapshots__/demo.test.jsx.snap | 91 +++++++++---------- .../__snapshots__/index.test.jsx.snap | 49 +++++----- src/indexes/index.ts | 4 +- src/indexes/indexes-anchor.tsx | 30 ++++++ src/indexes/indexes-anchor.vue | 32 ------- src/indexes/indexes.en-US.md | 5 +- src/indexes/indexes.md | 10 +- src/indexes/{indexes.vue => indexes.tsx} | 79 ++++++++-------- 8 files changed, 139 insertions(+), 161 deletions(-) create mode 100644 src/indexes/indexes-anchor.tsx delete mode 100644 src/indexes/indexes-anchor.vue rename src/indexes/{indexes.vue => indexes.tsx} (81%) diff --git a/src/indexes/__test__/__snapshots__/demo.test.jsx.snap b/src/indexes/__test__/__snapshots__/demo.test.jsx.snap index 99ca4fc79..b4696bb79 100644 --- a/src/indexes/__test__/__snapshots__/demo.test.jsx.snap +++ b/src/indexes/__test__/__snapshots__/demo.test.jsx.snap @@ -15,64 +15,64 @@ exports[`Indexes > Indexes baseVue demo works fine 1`] = ` class="t-indexes__sidebar-item" data-index="A" > - A - + A +
@@ -89,8 +89,7 @@ exports[`Indexes > Indexes baseVue demo works fine 1`] = `