From c4902235ce49f1df86f97b62de88cc90706bc44d Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 1 Sep 2021 16:11:27 +0800 Subject: [PATCH] style: js to jsx --- components/_util/{Portal.js => Portal.jsx} | 0 components/_util/{PortalWrapper.js => PortalWrapper.jsx} | 0 components/config-provider/index.tsx | 5 +++-- components/vc-drawer/src/{Drawer.js => Drawer.jsx} | 0 .../src/{InputHandler.js => InputHandler.jsx} | 0 components/vc-input-number/src/{index.js => index.jsx} | 0 components/vc-slick/src/{arrows.js => arrows.jsx} | 0 components/vc-slick/src/{dots.js => dots.jsx} | 0 .../vc-slick/src/{inner-slider.js => inner-slider.jsx} | 0 components/vc-slick/src/{slider.js => slider.jsx} | 0 components/vc-slick/src/{track.js => track.jsx} | 0 11 files changed, 3 insertions(+), 2 deletions(-) rename components/_util/{Portal.js => Portal.jsx} (100%) rename components/_util/{PortalWrapper.js => PortalWrapper.jsx} (100%) rename components/vc-drawer/src/{Drawer.js => Drawer.jsx} (100%) rename components/vc-input-number/src/{InputHandler.js => InputHandler.jsx} (100%) rename components/vc-input-number/src/{index.js => index.jsx} (100%) rename components/vc-slick/src/{arrows.js => arrows.jsx} (100%) rename components/vc-slick/src/{dots.js => dots.jsx} (100%) rename components/vc-slick/src/{inner-slider.js => inner-slider.jsx} (100%) rename components/vc-slick/src/{slider.js => slider.jsx} (100%) rename components/vc-slick/src/{track.js => track.jsx} (100%) diff --git a/components/_util/Portal.js b/components/_util/Portal.jsx similarity index 100% rename from components/_util/Portal.js rename to components/_util/Portal.jsx diff --git a/components/_util/PortalWrapper.js b/components/_util/PortalWrapper.jsx similarity index 100% rename from components/_util/PortalWrapper.js rename to components/_util/PortalWrapper.jsx diff --git a/components/config-provider/index.tsx b/components/config-provider/index.tsx index ebeccf6f3..0fc2e1f44 100644 --- a/components/config-provider/index.tsx +++ b/components/config-provider/index.tsx @@ -1,7 +1,8 @@ import type { PropType, ExtractPropTypes, UnwrapRef } from 'vue'; import { reactive, provide, defineComponent, watch } from 'vue'; import PropTypes from '../_util/vue-types'; -import defaultRenderEmpty, { RenderEmptyHandler } from './renderEmpty'; +import defaultRenderEmpty from './renderEmpty'; +import type { RenderEmptyHandler } from './renderEmpty'; import type { Locale } from '../locale-provider'; import LocaleProvider, { ANT_MARK } from '../locale-provider'; import type { TransformCellTextProps } from '../table/interface'; @@ -15,7 +16,7 @@ export interface CSPConfig { nonce?: string; } -export { RenderEmptyHandler }; +export type { RenderEmptyHandler }; export type Direction = 'ltr' | 'rtl'; diff --git a/components/vc-drawer/src/Drawer.js b/components/vc-drawer/src/Drawer.jsx similarity index 100% rename from components/vc-drawer/src/Drawer.js rename to components/vc-drawer/src/Drawer.jsx diff --git a/components/vc-input-number/src/InputHandler.js b/components/vc-input-number/src/InputHandler.jsx similarity index 100% rename from components/vc-input-number/src/InputHandler.js rename to components/vc-input-number/src/InputHandler.jsx diff --git a/components/vc-input-number/src/index.js b/components/vc-input-number/src/index.jsx similarity index 100% rename from components/vc-input-number/src/index.js rename to components/vc-input-number/src/index.jsx diff --git a/components/vc-slick/src/arrows.js b/components/vc-slick/src/arrows.jsx similarity index 100% rename from components/vc-slick/src/arrows.js rename to components/vc-slick/src/arrows.jsx diff --git a/components/vc-slick/src/dots.js b/components/vc-slick/src/dots.jsx similarity index 100% rename from components/vc-slick/src/dots.js rename to components/vc-slick/src/dots.jsx diff --git a/components/vc-slick/src/inner-slider.js b/components/vc-slick/src/inner-slider.jsx similarity index 100% rename from components/vc-slick/src/inner-slider.js rename to components/vc-slick/src/inner-slider.jsx diff --git a/components/vc-slick/src/slider.js b/components/vc-slick/src/slider.jsx similarity index 100% rename from components/vc-slick/src/slider.js rename to components/vc-slick/src/slider.jsx diff --git a/components/vc-slick/src/track.js b/components/vc-slick/src/track.jsx similarity index 100% rename from components/vc-slick/src/track.js rename to components/vc-slick/src/track.jsx