diff --git a/src/rate/__test__/index.test.jsx b/src/rate/__test__/index.test.jsx index 8d76d9f69..3a1de9e0e 100644 --- a/src/rate/__test__/index.test.jsx +++ b/src/rate/__test__/index.test.jsx @@ -2,7 +2,7 @@ import { ref, nextTick, markRaw } from 'vue'; import { mount } from '@vue/test-utils'; import { describe, it, expect, vi } from 'vitest'; import { ThumbUpIcon, ThumbDownIcon, StarFilledIcon } from 'tdesign-icons-vue-next'; -import Rate from '../rate.vue'; +import Rate from '../rate'; import { trigger } from '../../image-viewer/__test__/touch'; const move = async (target) => { diff --git a/src/rate/index.ts b/src/rate/index.ts index 9159af0de..3b8458d62 100644 --- a/src/rate/index.ts +++ b/src/rate/index.ts @@ -1,4 +1,4 @@ -import Rate from './rate.vue'; +import Rate from './rate'; import { withInstall, WithInstallType } from '../shared'; import { TdRateProps } from './type'; diff --git a/src/rate/rate.vue b/src/rate/rate.tsx similarity index 52% rename from src/rate/rate.vue rename to src/rate/rate.tsx index 55c63236b..bedec8c62 100644 --- a/src/rate/rate.vue +++ b/src/rate/rate.tsx @@ -1,82 +1,4 @@ - - -