From c5352f7a171de2c4127b93ee73fd696a080cbbf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=B3=E7=95=94=E4=B8=80=E8=A7=92?= Date: Fri, 1 Nov 2024 18:11:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/docs/src/deploy.md | 2 +- packages/editor/src/packages/Basic/index.ts | 23 --------- .../editor/src/packages/Container/index.ts | 13 ----- packages/editor/src/packages/EChart/index.ts | 21 -------- .../editor/src/packages/FeedBack/index.ts | 13 ----- .../src/packages/FormItems/Cascader/index.ts | 2 - .../src/packages/FormItems/CheckBox/index.tsx | 2 - .../packages/FormItems/DatePicker/index.ts | 2 - .../FormItems/DatePickerRange/index.ts | 2 - .../packages/FormItems/EditTable/index.tsx | 2 - .../src/packages/FormItems/FormItem/index.ts | 2 - .../src/packages/FormItems/FormList/index.ts | 2 - .../src/packages/FormItems/Input/index.ts | 2 - .../packages/FormItems/InputNumber/index.ts | 2 - .../src/packages/FormItems/InputOTP/index.ts | 2 - .../packages/FormItems/InputPassword/index.ts | 2 - .../src/packages/FormItems/Radio/index.tsx | 2 - .../src/packages/FormItems/RichText/index.ts | 2 - .../src/packages/FormItems/Segmented/index.ts | 2 - .../src/packages/FormItems/Select/index.ts | 2 - .../src/packages/FormItems/Slider/index.ts | 2 - .../packages/FormItems/StaticItem/index.ts | 2 - .../src/packages/FormItems/Switch/index.ts | 2 - .../src/packages/FormItems/TextArea/index.ts | 2 - .../packages/FormItems/TimePicker/index.ts | 2 - .../FormItems/TimePickerRange/index.ts | 2 - .../packages/FormItems/TreeSelect/index.ts | 2 - .../src/packages/FormItems/Upload/index.ts | 2 - .../editor/src/packages/FormItems/index.ts | 49 ------------------- .../editor/src/packages/Functional/index.ts | 19 ------- packages/editor/src/packages/Layout/index.ts | 13 ----- .../editor/src/packages/Other/BMap/index.ts | 7 --- .../editor/src/packages/Other/IFrame/index.ts | 7 --- packages/editor/src/packages/Page/index.ts | 2 - packages/editor/src/packages/Scene/index.ts | 9 ---- packages/editor/src/pages/editor/editor.tsx | 4 +- 36 files changed, 3 insertions(+), 225 deletions(-) delete mode 100644 packages/editor/src/packages/Basic/index.ts delete mode 100644 packages/editor/src/packages/Container/index.ts delete mode 100644 packages/editor/src/packages/EChart/index.ts delete mode 100644 packages/editor/src/packages/FeedBack/index.ts delete mode 100644 packages/editor/src/packages/FormItems/Cascader/index.ts delete mode 100644 packages/editor/src/packages/FormItems/CheckBox/index.tsx delete mode 100644 packages/editor/src/packages/FormItems/DatePicker/index.ts delete mode 100644 packages/editor/src/packages/FormItems/DatePickerRange/index.ts delete mode 100644 packages/editor/src/packages/FormItems/EditTable/index.tsx delete mode 100644 packages/editor/src/packages/FormItems/FormItem/index.ts delete mode 100644 packages/editor/src/packages/FormItems/FormList/index.ts delete mode 100644 packages/editor/src/packages/FormItems/Input/index.ts delete mode 100644 packages/editor/src/packages/FormItems/InputNumber/index.ts delete mode 100644 packages/editor/src/packages/FormItems/InputOTP/index.ts delete mode 100644 packages/editor/src/packages/FormItems/InputPassword/index.ts delete mode 100644 packages/editor/src/packages/FormItems/Radio/index.tsx delete mode 100644 packages/editor/src/packages/FormItems/RichText/index.ts delete mode 100644 packages/editor/src/packages/FormItems/Segmented/index.ts delete mode 100644 packages/editor/src/packages/FormItems/Select/index.ts delete mode 100644 packages/editor/src/packages/FormItems/Slider/index.ts delete mode 100644 packages/editor/src/packages/FormItems/StaticItem/index.ts delete mode 100644 packages/editor/src/packages/FormItems/Switch/index.ts delete mode 100644 packages/editor/src/packages/FormItems/TextArea/index.ts delete mode 100644 packages/editor/src/packages/FormItems/TimePicker/index.ts delete mode 100644 packages/editor/src/packages/FormItems/TimePickerRange/index.ts delete mode 100644 packages/editor/src/packages/FormItems/TreeSelect/index.ts delete mode 100644 packages/editor/src/packages/FormItems/Upload/index.ts delete mode 100644 packages/editor/src/packages/FormItems/index.ts delete mode 100644 packages/editor/src/packages/Functional/index.ts delete mode 100644 packages/editor/src/packages/Layout/index.ts delete mode 100644 packages/editor/src/packages/Other/BMap/index.ts delete mode 100644 packages/editor/src/packages/Other/IFrame/index.ts delete mode 100644 packages/editor/src/packages/Page/index.ts delete mode 100644 packages/editor/src/packages/Scene/index.ts diff --git a/packages/docs/src/deploy.md b/packages/docs/src/deploy.md index 49d845cd..d3f9ab0f 100644 --- a/packages/docs/src/deploy.md +++ b/packages/docs/src/deploy.md @@ -68,7 +68,7 @@ mybatis: */ const SERVER_HOST = 'http://localhost'; const SERVER_PORT = 5000; -const DATABASE_HOST = '';// 自己数据库地址,本地可以写localhost +const DATABASE_HOST = 'localhost';// 自己数据库地址,本地可以写localhost const DATABASE_PORT = 3306;// 自己数据库端口 const DATABASE_USER = '';// 自己数据库用户名 const DATABASE_PASSWORD = '';// 自己数据库密码 diff --git a/packages/editor/src/packages/Basic/index.ts b/packages/editor/src/packages/Basic/index.ts deleted file mode 100644 index 16693704..00000000 --- a/packages/editor/src/packages/Basic/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { lazy } from 'react'; - -export { default as ImageConfig } from './Image/Schema'; -export { default as TextConfig } from './Text/Schema'; -export { default as TitleConfig } from './Title/Schema'; -export { default as LinkConfig } from './Link/Schema'; -export { default as IconConfig } from './Icon/Schema'; -export { default as AvatarConfig } from './Avatar/Schema'; -export { default as StatisticConfig } from './Statistic/Schema'; -export { default as CountDownConfig } from './CountDown/Schema'; -export { default as QRCodeConfig } from './QRCode/Schema'; - -const Image = lazy(() => import('./Image/Image')); -const Text = lazy(() => import('./Text/Text')); -const Title = lazy(() => import('./Title/Title')); -const Link = lazy(() => import('./Link/Link')); -const Icon = lazy(() => import('./Icon/Icon')); -const Avatar = lazy(() => import('./Avatar/Avatar')); -const Statistic = lazy(() => import('./Statistic/Statistic')); -const CountDown = lazy(() => import('./CountDown/CountDown')); -const QRCode = lazy(() => import('./QRCode/QRCode')); - -export { Image, Text, Title, Link, Icon, Avatar, Statistic, CountDown, QRCode }; diff --git a/packages/editor/src/packages/Container/index.ts b/packages/editor/src/packages/Container/index.ts deleted file mode 100644 index 9e353591..00000000 --- a/packages/editor/src/packages/Container/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { lazy } from 'react'; - -export { default as FlexConfig } from './Flex/Schema'; -export { default as FormConfig } from './Form/Schema'; -export { default as CardConfig } from './Card/Schema'; -export { default as DivConfig } from './Div/Schema'; - -const Flex = lazy(() => import('./Flex/Flex')); -const Form = lazy(() => import('./Form/Form')); -const Card = lazy(() => import('./Card/Card')); -const Div = lazy(() => import('./Div/Div')); - -export { Flex, Form, Card, Div }; diff --git a/packages/editor/src/packages/EChart/index.ts b/packages/editor/src/packages/EChart/index.ts deleted file mode 100644 index 5ae6ff13..00000000 --- a/packages/editor/src/packages/EChart/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { lazy } from 'react'; - -export { default as PieChartConfig } from './PieChart/Schema'; -export { default as LineChartConfig } from './LineChart/Schema'; -export { default as ColumnChartConfig } from './ColumnChart/Schema'; -export { default as BarChartConfig } from './BarChart/Schema'; -export { default as TinyLineConfig } from './TinyLine/Schema'; -export { default as TinyColumnConfig } from './TinyColumn/Schema'; -export { default as ProgressConfig } from './Progress/Schema'; -export { default as RingProgressConfig } from './RingProgress/Schema'; - -const PieChart = lazy(() => import('./PieChart/PieChart')); -const LineChart = lazy(() => import('./LineChart/LineChart')); -const ColumnChart = lazy(() => import('./ColumnChart/ColumnChart')); -const BarChart = lazy(() => import('./BarChart/BarChart')); -const TinyLine = lazy(() => import('./TinyLine/TinyLine')); -const TinyColumn = lazy(() => import('./TinyColumn/TinyColumn')); -const Progress = lazy(() => import('./Progress/Progress')); -const RingProgress = lazy(() => import('./RingProgress/RingProgress')); - -export { PieChart, LineChart, ColumnChart, BarChart, TinyLine, TinyColumn, Progress, RingProgress }; diff --git a/packages/editor/src/packages/FeedBack/index.ts b/packages/editor/src/packages/FeedBack/index.ts deleted file mode 100644 index 3fd3b81e..00000000 --- a/packages/editor/src/packages/FeedBack/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { lazy } from 'react'; - -export { default as ModalConfig } from './Modal/Schema'; -export { default as EmptyConfig } from './Empty/Schema'; -export { default as DrawerConfig } from './Drawer/Schema'; -export { default as ResultConfig } from './Result/Schema'; - -const Modal = lazy(() => import('./Modal/Modal')); -const Empty = lazy(() => import('./Empty/Empty')); -const Drawer = lazy(() => import('./Drawer/Drawer')); -const Result = lazy(() => import('./Result/Result')); - -export { Modal, Empty, Drawer, Result }; diff --git a/packages/editor/src/packages/FormItems/Cascader/index.ts b/packages/editor/src/packages/FormItems/Cascader/index.ts deleted file mode 100644 index cfec3c12..00000000 --- a/packages/editor/src/packages/FormItems/Cascader/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Cascader } from './Cascader'; -export { default as CascaderConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/CheckBox/index.tsx b/packages/editor/src/packages/FormItems/CheckBox/index.tsx deleted file mode 100644 index b7b6d599..00000000 --- a/packages/editor/src/packages/FormItems/CheckBox/index.tsx +++ /dev/null @@ -1,2 +0,0 @@ -export { default as CheckBox } from './CheckBox'; -export { default as CheckBoxConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/DatePicker/index.ts b/packages/editor/src/packages/FormItems/DatePicker/index.ts deleted file mode 100644 index 1289dc3b..00000000 --- a/packages/editor/src/packages/FormItems/DatePicker/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as DatePicker } from './DatePicker'; -export { default as DatePickerConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/DatePickerRange/index.ts b/packages/editor/src/packages/FormItems/DatePickerRange/index.ts deleted file mode 100644 index d2320e9e..00000000 --- a/packages/editor/src/packages/FormItems/DatePickerRange/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as DatePickerRange } from './DatePickerRange'; -export { default as DatePickerRangeConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/EditTable/index.tsx b/packages/editor/src/packages/FormItems/EditTable/index.tsx deleted file mode 100644 index 1a83e252..00000000 --- a/packages/editor/src/packages/FormItems/EditTable/index.tsx +++ /dev/null @@ -1,2 +0,0 @@ -export { default as EditTable } from './EditTable'; -export { default as EditTableConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/FormItem/index.ts b/packages/editor/src/packages/FormItems/FormItem/index.ts deleted file mode 100644 index 36517547..00000000 --- a/packages/editor/src/packages/FormItems/FormItem/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as FormItem } from './FormItem'; -export { default as FormItemConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/FormList/index.ts b/packages/editor/src/packages/FormItems/FormList/index.ts deleted file mode 100644 index 7df4d3af..00000000 --- a/packages/editor/src/packages/FormItems/FormList/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as FormList } from './FormList'; -export { default as FormListConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/Input/index.ts b/packages/editor/src/packages/FormItems/Input/index.ts deleted file mode 100644 index 00ee7f9e..00000000 --- a/packages/editor/src/packages/FormItems/Input/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Input } from './Input'; -export { default as InputConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/InputNumber/index.ts b/packages/editor/src/packages/FormItems/InputNumber/index.ts deleted file mode 100644 index be17fad4..00000000 --- a/packages/editor/src/packages/FormItems/InputNumber/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as InputNumber } from './InputNumber'; -export { default as InputNumberConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/InputOTP/index.ts b/packages/editor/src/packages/FormItems/InputOTP/index.ts deleted file mode 100644 index 534e0783..00000000 --- a/packages/editor/src/packages/FormItems/InputOTP/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as InputOTP } from './InputOTP'; -export { default as InputOTPConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/InputPassword/index.ts b/packages/editor/src/packages/FormItems/InputPassword/index.ts deleted file mode 100644 index dac4417c..00000000 --- a/packages/editor/src/packages/FormItems/InputPassword/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as InputPassword } from './InputPassword'; -export { default as InputPasswordConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/Radio/index.tsx b/packages/editor/src/packages/FormItems/Radio/index.tsx deleted file mode 100644 index 06b30f52..00000000 --- a/packages/editor/src/packages/FormItems/Radio/index.tsx +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Radio } from './Radio'; -export { default as RadioConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/RichText/index.ts b/packages/editor/src/packages/FormItems/RichText/index.ts deleted file mode 100644 index ae553f13..00000000 --- a/packages/editor/src/packages/FormItems/RichText/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as RichText } from './RichText'; -export { default as RichTextConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/Segmented/index.ts b/packages/editor/src/packages/FormItems/Segmented/index.ts deleted file mode 100644 index 207010bf..00000000 --- a/packages/editor/src/packages/FormItems/Segmented/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Segmented } from './Segmented'; -export { default as SegmentedConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/Select/index.ts b/packages/editor/src/packages/FormItems/Select/index.ts deleted file mode 100644 index b61008ca..00000000 --- a/packages/editor/src/packages/FormItems/Select/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Select } from './Select'; -export { default as SelectConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/Slider/index.ts b/packages/editor/src/packages/FormItems/Slider/index.ts deleted file mode 100644 index bf3deb63..00000000 --- a/packages/editor/src/packages/FormItems/Slider/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Slider } from './Slider'; -export { default as SliderConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/StaticItem/index.ts b/packages/editor/src/packages/FormItems/StaticItem/index.ts deleted file mode 100644 index ed560147..00000000 --- a/packages/editor/src/packages/FormItems/StaticItem/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as StaticItem } from './StaticItem'; -export { default as StaticItemConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/Switch/index.ts b/packages/editor/src/packages/FormItems/Switch/index.ts deleted file mode 100644 index c404da1b..00000000 --- a/packages/editor/src/packages/FormItems/Switch/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Switch } from './Switch'; -export { default as SwitchConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/TextArea/index.ts b/packages/editor/src/packages/FormItems/TextArea/index.ts deleted file mode 100644 index 3e48ed1b..00000000 --- a/packages/editor/src/packages/FormItems/TextArea/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as TextArea } from './TextArea'; -export { default as TextAreaConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/TimePicker/index.ts b/packages/editor/src/packages/FormItems/TimePicker/index.ts deleted file mode 100644 index 2dae82e9..00000000 --- a/packages/editor/src/packages/FormItems/TimePicker/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as TimePicker } from './TimePicker'; -export { default as TimePickerConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/TimePickerRange/index.ts b/packages/editor/src/packages/FormItems/TimePickerRange/index.ts deleted file mode 100644 index 459cdf48..00000000 --- a/packages/editor/src/packages/FormItems/TimePickerRange/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as TimePickerRange } from './TimePickerRange'; -export { default as TimePickerRangeConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/TreeSelect/index.ts b/packages/editor/src/packages/FormItems/TreeSelect/index.ts deleted file mode 100644 index e4ce9514..00000000 --- a/packages/editor/src/packages/FormItems/TreeSelect/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as TreeSelect } from './TreeSelect'; -export { default as TreeSelectConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/Upload/index.ts b/packages/editor/src/packages/FormItems/Upload/index.ts deleted file mode 100644 index e00c6386..00000000 --- a/packages/editor/src/packages/FormItems/Upload/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Upload } from './Upload'; -export { default as UploadConfig } from './Schema'; diff --git a/packages/editor/src/packages/FormItems/index.ts b/packages/editor/src/packages/FormItems/index.ts deleted file mode 100644 index 6a6eb7c9..00000000 --- a/packages/editor/src/packages/FormItems/index.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { lazy } from 'react'; - -export { default as InputConfig } from './Input/Schema'; -export { default as InputPasswordConfig } from './InputPassword/Schema'; -export { default as InputNumberConfig } from './InputNumber/Schema'; -export { default as InputOTPConfig } from './InputOTP/Schema'; -export { default as TextAreaConfig } from './TextArea/Schema'; -export { default as DatePickerConfig } from './DatePicker/Schema'; -export { default as DatePickerRangeConfig } from './DatePickerRange/Schema'; -export { default as RadioConfig } from './Radio/Schema'; -export { default as SelectConfig } from './Select/Schema'; -export { default as SwitchConfig } from './Switch/Schema'; -export { default as UploadConfig } from './Upload/Schema'; -export { default as StaticItemConfig } from './StaticItem/Schema'; -export { default as FormItemConfig } from './FormItem/Schema'; -export { default as CheckBoxConfig } from './CheckBox/Schema'; -export { default as TimePickerConfig } from './TimePicker/Schema'; -export { default as TimePickerRangeConfig } from './TimePickerRange/Schema'; -export { default as SegmentedConfig } from './Segmented/Schema'; -export { default as CascaderConfig } from './Cascader/Schema'; -export { default as SliderConfig } from './Slider/Schema'; -export { default as TreeSelectConfig } from './TreeSelect/Schema'; -export { default as FormListConfig } from './FormList/Schema'; -export { default as EditTableConfig } from './EditTable/Schema'; -export { default as RichTextConfig } from './RichText/Schema'; - -export const Input = lazy(() => import('./Input/Input')); -export const InputPassword = lazy(() => import('./InputPassword/InputPassword')); -export const InputNumber = lazy(() => import('./InputNumber/InputNumber')); -export const InputOTP = lazy(() => import('./InputOTP/InputOTP')); -export const TextArea = lazy(() => import('./TextArea/TextArea')); -export const DatePicker = lazy(() => import('./DatePicker/DatePicker')); -export const DatePickerRange = lazy(() => import('./DatePickerRange/DatePickerRange')); -export const Radio = lazy(() => import('./Radio/Radio')); -export const Select = lazy(() => import('./Select/Select')); -export const Switch = lazy(() => import('./Switch/Switch')); -export const Upload = lazy(() => import('./Upload/Upload')); -export const StaticItem = lazy(() => import('./StaticItem/StaticItem')); -export const FormItem = lazy(() => import('./FormItem/FormItem')); -export const CheckBox = lazy(() => import('./CheckBox/CheckBox')); -export const TimePicker = lazy(() => import('./TimePicker/TimePicker')); -export const TimePickerRange = lazy(() => import('./TimePickerRange/TimePickerRange')); -export const Segmented = lazy(() => import('./Segmented/Segmented')); -export const Cascader = lazy(() => import('./Cascader/Cascader')); -export const Slider = lazy(() => import('./Slider/Slider')); -export const TreeSelect = lazy(() => import('./TreeSelect/TreeSelect')); -export const FormList = lazy(() => import('./FormList/FormList')); -export const EditTable = lazy(() => import('./EditTable/EditTable')); -export const RichText = lazy(() => import('./RichText/RichText')); diff --git a/packages/editor/src/packages/Functional/index.ts b/packages/editor/src/packages/Functional/index.ts deleted file mode 100644 index 37a406ef..00000000 --- a/packages/editor/src/packages/Functional/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { lazy } from 'react'; - -export { default as ListConfig } from './List/Schema'; -export { default as DescriptionsConfig } from './Descriptions/Schema'; -export { default as StepsConfig } from './Steps/Schema'; -export { default as ButtonConfig } from './Button/Schema'; -export { default as FileUploadConfig } from './FileUpload/Schema'; -export { default as TabsConfig } from './Tabs/Schema'; -export { default as TabConfig } from './Tab/Schema'; - -const List = lazy(() => import('./List/List')); -const Descriptions = lazy(() => import('./Descriptions/Descriptions')); -const Steps = lazy(() => import('./Steps/Steps')); -const Button = lazy(() => import('./Button/Button')); -const FileUpload = lazy(() => import('./FileUpload/FileUpload')); -const Tabs = lazy(() => import('./Tabs/Tabs')); -const Tab = lazy(() => import('./Tab/Tab')); - -export { List, Descriptions, Steps, Button, FileUpload, Tabs, Tab }; diff --git a/packages/editor/src/packages/Layout/index.ts b/packages/editor/src/packages/Layout/index.ts deleted file mode 100644 index 40069f45..00000000 --- a/packages/editor/src/packages/Layout/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { lazy } from 'react'; - -export { default as SpaceConfig } from './Space/Schema'; -export { default as RowConfig } from './Row/Schema'; -export { default as ColConfig } from './Col/Schema'; -export { default as DividerConfig } from './Divider/Schema'; - -const Space = lazy(() => import('./Space/Space')); -const Row = lazy(() => import('./Row/Row')); -const Col = lazy(() => import('./Col/Col')); -const Divider = lazy(() => import('./Divider/Divider')); - -export { Space, Row, Col, Divider }; diff --git a/packages/editor/src/packages/Other/BMap/index.ts b/packages/editor/src/packages/Other/BMap/index.ts deleted file mode 100644 index 4110eef1..00000000 --- a/packages/editor/src/packages/Other/BMap/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { lazy } from 'react'; - -export { default as BMapConfig } from './Schema'; - -const BMap = lazy(() => import('./BMap')); - -export { BMap }; diff --git a/packages/editor/src/packages/Other/IFrame/index.ts b/packages/editor/src/packages/Other/IFrame/index.ts deleted file mode 100644 index cade12d4..00000000 --- a/packages/editor/src/packages/Other/IFrame/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { lazy } from 'react'; - -export { default as IFrameConfig } from './Schema'; - -const IFrame = lazy(() => import('./IFrame')); - -export { IFrame }; diff --git a/packages/editor/src/packages/Page/index.ts b/packages/editor/src/packages/Page/index.ts deleted file mode 100644 index d7399a8f..00000000 --- a/packages/editor/src/packages/Page/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as Page } from './Page'; -export { default as PageConfig } from './Schema'; diff --git a/packages/editor/src/packages/Scene/index.ts b/packages/editor/src/packages/Scene/index.ts deleted file mode 100644 index ffdfa205..00000000 --- a/packages/editor/src/packages/Scene/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { lazy } from 'react'; - -export { default as MarsTableConfig } from './MarsTable/Schema'; -export { default as SearchFormConfig } from './SearchForm/Schema'; - -const MarsTable = lazy(() => import('./MarsTable/MarsTable')); -const SearchForm = lazy(() => import('./SearchForm/SearchForm')); - -export { MarsTable, SearchForm }; diff --git a/packages/editor/src/pages/editor/editor.tsx b/packages/editor/src/pages/editor/editor.tsx index a55fe9a3..dee4d925 100644 --- a/packages/editor/src/pages/editor/editor.tsx +++ b/packages/editor/src/pages/editor/editor.tsx @@ -5,7 +5,6 @@ import { CommentOutlined, InfoCircleOutlined, QuestionCircleOutlined } from '@an import { useDrop } from 'react-dnd'; import { useDebounceFn, useKeyPress } from 'ahooks'; import { getComponent } from '@/packages/index'; -import { Page } from '@/packages/Page'; import { IDragTargetItem } from '@/packages/types/index'; import { createId, getElement } from '@/utils/util'; import storage from '@/utils/storage'; @@ -13,7 +12,8 @@ import { getPageDetail } from '@/api'; import Toolbar from '@/components/Toolbar/Toolbar'; import { message } from '@/utils/AntdGlobal'; import { usePageStore } from '@/stores/pageStore'; -import { PageConfig } from '@/packages/Page'; +import Page from '@/packages/Page/Page'; +import PageConfig from '@/packages/Page/Schema'; import './index.less'; /**