From 7c1b82cd62b95dfb98c0dd53875409856b850ca4 Mon Sep 17 00:00:00 2001 From: tyh2001 <1469442737@qq.com> Date: Thu, 16 Feb 2023 15:54:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=BC=BA=E5=88=B6=E8=BD=AC=E6=8D=A2=20?= =?UTF-8?q?=F0=9F=96=B2=EF=B8=8F=F0=9F=96=B2=EF=B8=8F=F0=9F=96=B2=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/theme/components/src/index.ts | 1 - .../.vitepress/theme/components/src/rotate.ts | 31 ------------------- docs/.vitepress/theme/components/vp-home.vue | 19 +----------- .../.vitepress/theme/components/vp-search.vue | 2 +- docs/components/number-animate.md | 4 +-- .../fighting-design/_hooks/use-list/index.ts | 4 +-- .../image-preview/src/image-preview.vue | 2 +- .../fighting-design/trigger/src/trigger.vue | 4 +-- packages/fighting-design/up-load/index.ts | 1 + packages/fighting-design/up-load/src/props.ts | 1 + .../fighting-design/up-load/src/up-load.vue | 4 +-- packages/fighting-design/watermark/index.ts | 1 + .../fighting-design/watermark/src/props.ts | 1 + 13 files changed, 15 insertions(+), 60 deletions(-) delete mode 100644 docs/.vitepress/theme/components/src/rotate.ts diff --git a/docs/.vitepress/theme/components/src/index.ts b/docs/.vitepress/theme/components/src/index.ts index f08a01acae..7b8a62ec91 100644 --- a/docs/.vitepress/theme/components/src/index.ts +++ b/docs/.vitepress/theme/components/src/index.ts @@ -1,4 +1,3 @@ export { searchList } from './search-list' export { footerList } from './footer-list' export { contributors } from './contributors' -export { rotate } from './rotate' diff --git a/docs/.vitepress/theme/components/src/rotate.ts b/docs/.vitepress/theme/components/src/rotate.ts deleted file mode 100644 index ac9e233f99..0000000000 --- a/docs/.vitepress/theme/components/src/rotate.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 旋转方法 - */ -export const rotate = () => { - type MyWindow = Window & { - onStart: () => string - onStop: () => string - } - - /** - * 开始旋转 - * - * @returns { string } - */ - ;(window as unknown as MyWindow).onStart = (): string => { - document.querySelector('.fighting__logo')?.classList.add('fighting__logo__rotate') - return '开始旋转' - } - - /** - * 结束旋转 - * - * @returns { string } - */ - ;(window as unknown as MyWindow).onStop = (): string => { - document.querySelector('.fighting__logo')?.classList.remove('fighting__logo__rotate') - return '停止旋转' - } - - console.log('尝试输入 `onStart()` 或 `onStop()` 试试看吧') -} diff --git a/docs/.vitepress/theme/components/vp-home.vue b/docs/.vitepress/theme/components/vp-home.vue index 90a6a8d1cb..7994282734 100644 --- a/docs/.vitepress/theme/components/vp-home.vue +++ b/docs/.vitepress/theme/components/vp-home.vue @@ -89,9 +89,7 @@