From 86eb68ed84bc57f14eb87a59320821b6af6e7e0d Mon Sep 17 00:00:00 2001 From: weareoutman Date: Tue, 12 Nov 2024 12:02:05 +0800 Subject: [PATCH] chore(): import types from antd/es instead of antd/lib --- bricks/form/src/color-picker/index.tsx | 2 +- .../property-editor/components/common/ColorPickerComponent.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/form/src/color-picker/index.tsx b/bricks/form/src/color-picker/index.tsx index 3e7d482e6..26459a6e5 100644 --- a/bricks/form/src/color-picker/index.tsx +++ b/bricks/form/src/color-picker/index.tsx @@ -3,7 +3,7 @@ import { createDecorators, EventEmitter } from "@next-core/element"; import { wrapBrick } from "@next-core/react-element"; import "@next-core/theme"; import { ColorPicker, theme, ConfigProvider } from "antd"; -import { ColorPickerProps, Color } from "antd/lib/color-picker"; +import type { ColorPickerProps, Color } from "antd/es/color-picker"; import { StyleProvider, createCache } from "@ant-design/cssinjs"; import { FormItemElementBase } from "@next-shared/form"; import type { FormItem, FormItemProps } from "../form-item/index.js"; diff --git a/bricks/visual-builder/src/property-editor/components/common/ColorPickerComponent.tsx b/bricks/visual-builder/src/property-editor/components/common/ColorPickerComponent.tsx index 3ab220369..e51ac71f7 100644 --- a/bricks/visual-builder/src/property-editor/components/common/ColorPickerComponent.tsx +++ b/bricks/visual-builder/src/property-editor/components/common/ColorPickerComponent.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useMemo, useState } from "react"; import { ColorPicker } from "antd"; -import { ColorPickerProps } from "antd/lib/color-picker"; +import type { ColorPickerProps } from "antd/es/color-picker"; import { palettePresets, systemPresetColorsMap,