Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: delete redundant code and empty files (#139)
tonytonychopper12346a390d00e9e
diff --git a/examples/univer-vanilla-ts/src/main.tsx b/examples/univer-vanilla-ts/src/main.tsxindex 1731383d8d..baca80c3de 100644--- a/examples/univer-vanilla-ts/src/main.tsx+++ b/examples/univer-vanilla-ts/src/main.tsx@@ -1,10 +1,8 @@-import { UniverSheet, Univer } from '@univerjs/core';import { RenderEngine } from '@univerjs/base-render';import { SheetPlugin } from '@univerjs/base-sheets';-import { SheetUIPlugin } from '@univerjs/ui-plugin-sheets';-import { UIPlugin } from '@univerjs/base-ui';-import { DEFAULT_WORKBOOK_DATA_DEMO } from '@univerjs/common-plugin-data';+import { Univer, UniverSheet } from '@univerjs/core';+import { SheetUIPlugin } from '@univerjs/ui-plugin-sheets';// univerconst univer = new Univer();diff --git a/packages/base-sheets/src/Basics/Enum/ACTION_NAMES.ts b/packages/base-sheets/src/Basics/Enum/ACTION_NAMES.tsdeleted file mode 100644index 33701efe7d..0000000000--- a/packages/base-sheets/src/Basics/Enum/ACTION_NAMES.ts+++ /dev/null@@ -1,3 +0,0 @@-export enum ACTION_NAMES {- SET_SELECTION_VALUE_ACTION = 'SetSelectionValueAction',-}diff --git a/packages/base-sheets/src/Basics/Enum/index.ts b/packages/base-sheets/src/Basics/Enum/index.tsdeleted file mode 100644index 3dc59e6eea..0000000000--- a/packages/base-sheets/src/Basics/Enum/index.ts+++ /dev/null@@ -1,3 +0,0 @@-// @index('./*.ts', f => `export * from '${f.path}'`)-export * from './ACTION_NAMES';-// @endindexdiff --git a/packages/base-sheets/src/Basics/index.ts b/packages/base-sheets/src/Basics/index.tsindex efa0fc44e8..09c897c0dd 100644--- a/packages/base-sheets/src/Basics/index.ts+++ b/packages/base-sheets/src/Basics/index.ts@@ -1,6 +1,5 @@// @index(['./*.ts','./**/index.ts'], f => `export * from '${f.path}'`)export * from './Const/index';-export * from './Enum/index';export * from './Interfaces/index';export * from './Observer';// @endindexdiff --git a/packages/base-ui/src/BaseComponent.ts b/packages/base-ui/src/BaseComponent.tsindex e41ea4e0ca..bb5979749a 100644--- a/packages/base-ui/src/BaseComponent.ts+++ b/packages/base-ui/src/BaseComponent.ts@@ -1,5 +1,4 @@import { Context } from '@univerjs/core/src/Basics/Context';-import { ComponentClass, ForwardFn } from 'react';// TODO Button const enum; BaseComponentSheet => BaseComponentXXX@@ -10,12 +9,3 @@ export interface BaseComponentProps {/** @deprecated */context?: Context;}--export interface BaseComponent<T = any> {- render(): JSXComponent<T>;-}-// component type-export type FunctionComponent<T = void> = (props: T) => JSX.Element;-export type ClassComponent<T = any, E = any> = ComponentClass<T, E>;-export type ForwardFnComponent<T> = ForwardFn<T>;-export type JSXComponent<T = void> = FunctionComponent<T> | ForwardFnComponent<T> | ClassComponent<T>;diff --git a/packages/base-ui/src/Basics/Bootstrap.ts b/packages/base-ui/src/Basics/Bootstrap.tsdeleted file mode 100644index 2798bd6746..0000000000--- a/packages/base-ui/src/Basics/Bootstrap.ts+++ /dev/null@@ -1,6 +0,0 @@-// import { IOCContainer } from '@univerjs/core';-// import { StyleUniver } from '@univerjs/style-univer/src/StyleUniver';--// export function Bootstrap(IOC: IOCContainer) {-// IOC.addMapping('StyleUniver', StyleUniver);-// }diff --git a/packages/base-ui/src/Basics/Const/index.ts b/packages/base-ui/src/Basics/Const/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/base-ui/src/Basics/Shared/Clipboard.ts b/packages/base-ui/src/Basics/Shared/Clipboard.tsindex 4539ab5f7d..c3c1e1837a 100644--- a/packages/base-ui/src/Basics/Shared/Clipboard.ts+++ b/packages/base-ui/src/Basics/Shared/Clipboard.ts@@ -1,98 +1,5 @@-// import { PasteType } from '../Interfaces/PasteType';--// export type ClipboardType = {-// type?: 'text/html' | 'text/plain' | 'image/png';-// data: string;-// };--// export class Paste {-// static clipboard = window.navigator.clipboard;--// static textArea: HTMLTextAreaElement;--// static async writeText(text: string, e?: ClipboardEvent) {-// if (Paste.clipboard) {-// return Paste.clipboard.writeText(text).then(-// () => true,-// (err) => console.dir(err)-// );-// }--// e?.clipboardData?.setData('text/html', text);-// }--// static async write(data: ClipboardType, e?: ClipboardEvent) {-// if (Paste.clipboard) {-// const blob = new Blob([data.data], { type: data.type ?? 'text/html' });-// const clipboardData = [new ClipboardItem({ 'text/html': blob })];--// return Paste.clipboard.write(clipboardData).then(-// () => true,-// () => false-// );-// }--// e?.clipboardData?.setData(data.type ?? 'text/html', data.data);-// }--// static async readText() {-// if (Paste.clipboard) {-// return Paste.clipboard.readText().then(-// (text) => text,-// () => null-// );-// }-// if (!Paste.textArea) return null;-// return new Promise((resolve, reject) => {-// resolve(Paste.textArea.value);-// })-// .then((text) => text)-// .then(() => null);-// }--// static async read(e?: ClipboardEvent): Promise<Array<PasteType | null> | null> {-// if (Paste.clipboard) {-// const clipboardItems = await Paste.clipboard.read();-// const Promises: Array<Promise<PasteType | null>> = [];-// for (const clipboardItem of clipboardItems) {-// for (const type of clipboardItem.types) {-// const blob = await clipboardItem.getType(type);-// const reader = new FileReader();-// if (type === 'image/png') {-// reader.readAsDataURL(blob);-// } else {-// reader.readAsText(blob);-// }-// const promise: Promise<PasteType | null> = new Promise((resolve: (value: PasteType) => void, reject) => {-// reader.onload = (e) => {-// const item: PasteType = { type, result: reader.result };-// resolve(item);-// };-// }).then(-// (res) => res,-// () => null-// );-// Promises.push(promise);-// }-// }-// return Promise.all(Promises);-// }--// const result = [];-// const clipboardData = e?.clipboardData;-// const types = clipboardData?.types;-// if (!types) return null;-// for (let i = 0; i < types.length; i++) {-// result.push({-// type: types[i],-// result: clipboardData.getData(types[i]),-// });-// }-// return result;-// }-// }-import { Nullable } from '@univerjs/core';+import { PasteType } from '../Interfaces/PasteType';export type ClipboardType = {diff --git a/packages/base-ui/src/Basics/Shared/FullScreen.ts b/packages/base-ui/src/Basics/Shared/FullScreen.tsdeleted file mode 100644index 6a6d07fd4a..0000000000--- a/packages/base-ui/src/Basics/Shared/FullScreen.ts+++ /dev/null@@ -1 +0,0 @@-export class FullScreen {}diff --git a/packages/base-ui/src/Components/Button/Button.tsx b/packages/base-ui/src/Components/Button/Button.tsxindex 2ac2281581..1397e91650 100644--- a/packages/base-ui/src/Components/Button/Button.tsx+++ b/packages/base-ui/src/Components/Button/Button.tsx@@ -1,6 +1,6 @@import { useEffect, useState } from 'react';-import { BaseComponent, BaseComponentProps, JSXComponent } from '../../BaseComponent';+import { BaseComponentProps } from '../../BaseComponent';import { joinClassNames } from '../../Utils/util';import { LoadingIcon } from '../Icon';import styles from './Style/index.module.less';@@ -33,9 +33,6 @@ export interface BaseButtonProps extends BaseComponentProps {}// component class-export interface ButtonComponent extends BaseComponent<BaseButtonProps> {- render(): JSXComponent<BaseButtonProps>;-}// interface IState {// isActive: boolean;diff --git a/packages/base-ui/src/Enum/ISelectButton.ts b/packages/base-ui/src/Enum/ISelectButton.tsdeleted file mode 100644index 65cd3f97c0..0000000000--- a/packages/base-ui/src/Enum/ISelectButton.ts+++ /dev/null@@ -1,9 +0,0 @@-export enum ISelectButton {- INPUT = 'input',- COLOR = 'color',- DOUBLE = 'double',- JSX = 'jsx',- INPUT_NUMBER = 'inputNumber',-}--export type ISelectButtonType = `${ISelectButton}`;diff --git a/packages/base-ui/src/Enum/index.ts b/packages/base-ui/src/Enum/index.tsindex 545b3978aa..70f070e2a4 100644--- a/packages/base-ui/src/Enum/index.ts+++ b/packages/base-ui/src/Enum/index.ts@@ -1,5 +1,4 @@// @index('./*.ts', f => `export * from '${f.path}'`)export * from './Component';-export * from './ISelectButton';export * from './LocaleType';// @endindexdiff --git a/packages/base-ui/src/IData/index.ts b/packages/base-ui/src/IData/index.tsdeleted file mode 100644index 06df97e07c..0000000000--- a/packages/base-ui/src/IData/index.ts+++ /dev/null@@ -1,2 +0,0 @@-// @index('./*.ts', f => `export * from '${f.path}'`)-// @endindexdiff --git a/packages/base-ui/src/UIPlugin.ts b/packages/base-ui/src/UIPlugin.tsdeleted file mode 100644index 3085b23c16..0000000000--- a/packages/base-ui/src/UIPlugin.ts+++ /dev/null@@ -1,35 +0,0 @@-import { Plugin, PLUGIN_NAMES, Univer, SheetContext } from '@univerjs/core';--export interface IUIPluginConfig {}--const DEFAULT_SLIDE_PLUGIN_DATA = {};--export class UIPlugin extends Plugin<any, SheetContext> {- private _config: IUIPluginConfig;-- constructor(config: Partial<IUIPluginConfig> = {}) {- super(PLUGIN_NAMES.BASE_UI);-- this._config = Object.assign(DEFAULT_SLIDE_PLUGIN_DATA, config);- }-- static create(config?: IUIPluginConfig) {- return new UIPlugin(config);- }-- installTo(univerInstance: Univer) {- univerInstance.install(this);- }-- initialize(context: SheetContext): void {- this.context = context;- }-- getConfig() {- return this._config;- }-- onMounted(ctx: SheetContext): void {- this.initialize(ctx);- }-}\ No newline at end of filediff --git a/packages/base-ui/src/Utils/util.ts b/packages/base-ui/src/Utils/util.tsindex 48f5da9780..0667d4e873 100644--- a/packages/base-ui/src/Utils/util.ts+++ b/packages/base-ui/src/Utils/util.ts@@ -1,5 +1,3 @@-import { RefObject } from 'react';-/*** check element* @param elementdiff --git a/packages/base-ui/src/index.ts b/packages/base-ui/src/index.tsindex c84182da8c..8a4a732793 100644--- a/packages/base-ui/src/index.ts+++ b/packages/base-ui/src/index.ts@@ -23,5 +23,4 @@ export { DesktopMenuService, IMenuService } from './services/menu/menu.service';export { DesktopPlatformService, IPlatformService } from './services/platform/platform.service';export { KeyCode, MetaKeys } from './services/shortcut/keycode';export { DesktopShortcutService, IShortcutItem, IShortcutService } from './services/shortcut/shortcut.service';-export * from './UIPlugin';export * from './Utils';diff --git a/packages/sheets-plugin-operation/src/Domain/Clipboard.ts b/packages/sheets-plugin-operation/src/Domain/Clipboard.tsindex 32133ab440..c64fc69d6b 100644--- a/packages/sheets-plugin-operation/src/Domain/Clipboard.ts+++ b/packages/sheets-plugin-operation/src/Domain/Clipboard.ts@@ -1,5 +1,5 @@+import { PasteType } from '@univerjs/base-ui';import { Nullable } from '@univerjs/core';-import { PasteType } from './Paste';export type ClipboardType = {type?: 'text/html' | 'text/plain' | 'image/png';diff --git a/packages/sheets-plugin-operation/src/Domain/Paste.ts b/packages/sheets-plugin-operation/src/Domain/Paste.tsindex 77adaa9311..4de8a53609 100644--- a/packages/sheets-plugin-operation/src/Domain/Paste.ts+++ b/packages/sheets-plugin-operation/src/Domain/Paste.ts@@ -18,11 +18,6 @@ import {// SetRowHeightAction,} from '@univerjs/core';-export interface PasteType {- type: string;- result: string | ArrayBuffer | null;-}-export interface PasteInfo {data: Nullable<Array<[]>>;colInfo: Nullable<number[]>;diff --git a/packages/ui-plugin-docs/src/Basics/Enum/index.ts b/packages/ui-plugin-docs/src/Basics/Enum/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/ui-plugin-docs/src/Basics/Shared/index.ts b/packages/ui-plugin-docs/src/Basics/Shared/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/ui-plugin-docs/src/View/Common/ColorSelect/ColorSelect.tsx b/packages/ui-plugin-docs/src/View/Common/ColorSelect/ColorSelect.tsxdeleted file mode 100644index 148599e9c8..0000000000--- a/packages/ui-plugin-docs/src/View/Common/ColorSelect/ColorSelect.tsx+++ /dev/null@@ -1,43 +0,0 @@-import { BaseComponentProps, ICustomComponent, CustomLabel } from '@univerjs/base-ui';-import { Component, ComponentChildren } from 'react';-import styles from './index.module.less';--interface IProps extends BaseComponentProps {- label?: ComponentChildren | ICustomComponent;- id: string;- color: string;-}--interface IState {- color: string;-}--export class ColorSelect extends Component<IProps, IState> {- override componentDidMount(): void {- this.props.getComponent?.(this);- }-- override UNSAFE_componentWillReceiveProps(props: IProps) {- this.setState({- color: props.color,- });- }-- setColor(color: string) {- this.setState({- color,- });- }-- render() {- const { label } = this.props;- return (- <div className={styles.colorSelect}>- <div>- <CustomLabel label={label} />- </div>- <div className={styles.colorSelectLine} style={{ background: this.state.color }}></div>- </div>- );- }-}diff --git a/packages/ui-plugin-docs/src/View/Common/ColorSelect/index.module.css b/packages/ui-plugin-docs/src/View/Common/ColorSelect/index.module.cssdeleted file mode 100644index d2777b3979..0000000000--- a/packages/ui-plugin-docs/src/View/Common/ColorSelect/index.module.css+++ /dev/null@@ -1,11 +0,0 @@-.color-select {- position: relative;-}-.color-select .color-select-line {- position: absolute;- width: 15px;- height: 5px;- bottom: 0px;- left: 50%;- transform: translate(-50%, 0);-}diff --git a/packages/ui-plugin-docs/src/View/Common/ColorSelect/index.module.less b/packages/ui-plugin-docs/src/View/Common/ColorSelect/index.module.lessdeleted file mode 100644index 41556b46dd..0000000000--- a/packages/ui-plugin-docs/src/View/Common/ColorSelect/index.module.less+++ /dev/null@@ -1,12 +0,0 @@-.color-select {- position: relative;-- .color-select-line {- position: absolute;- width: 15px;- height: 5px;- bottom: 0px;- left: 50%;- transform: translate(-50%, 0);- }-}\ No newline at end of filediff --git a/packages/ui-plugin-docs/src/View/Common/index.tsx b/packages/ui-plugin-docs/src/View/Common/index.tsxdeleted file mode 100644index 6177edb882..0000000000--- a/packages/ui-plugin-docs/src/View/Common/index.tsx+++ /dev/null@@ -1 +0,0 @@-export * from './ColorSelect/ColorSelect';diff --git a/packages/ui-plugin-sheets/src/Basics/Enum/index.ts b/packages/ui-plugin-sheets/src/Basics/Enum/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/ui-plugin-sheets/src/Basics/Interfaces/IClipboardData.ts b/packages/ui-plugin-sheets/src/Basics/Interfaces/IClipboardData.tsdeleted file mode 100644index 36401ff5c4..0000000000--- a/packages/ui-plugin-sheets/src/Basics/Interfaces/IClipboardData.ts+++ /dev/null@@ -1,4 +0,0 @@-export interface IClipboardData {- plain?: string;- html?: string;-}diff --git a/packages/ui-plugin-sheets/src/Basics/Interfaces/IDragAndDropData.ts b/packages/ui-plugin-sheets/src/Basics/Interfaces/IDragAndDropData.tsdeleted file mode 100644index d6e80ce70b..0000000000--- a/packages/ui-plugin-sheets/src/Basics/Interfaces/IDragAndDropData.ts+++ /dev/null@@ -1,16 +0,0 @@-export interface IDragAndDropData {- /**- * drag data item kind, one of: "string", "file"- */- kind: string;-- /**- * MIME type, "text/plain", "image/jpeg"- */- type: string;-- /**- * File object- */- file: File;-}diff --git a/packages/ui-plugin-sheets/src/Basics/Interfaces/PasteType.ts b/packages/ui-plugin-sheets/src/Basics/Interfaces/PasteType.tsdeleted file mode 100644index f20b0b115c..0000000000--- a/packages/ui-plugin-sheets/src/Basics/Interfaces/PasteType.ts+++ /dev/null@@ -1,4 +0,0 @@-export interface PasteType {- type: string;- result: string | ArrayBuffer | null;-}diff --git a/packages/ui-plugin-sheets/src/Basics/Interfaces/index.ts b/packages/ui-plugin-sheets/src/Basics/Interfaces/index.tsindex 04b5538a4e..0d1728a847 100644--- a/packages/ui-plugin-sheets/src/Basics/Interfaces/index.ts+++ b/packages/ui-plugin-sheets/src/Basics/Interfaces/index.ts@@ -1,5 +1,2 @@-export * from './IClipboardData';-export * from './IDragAndDropData';-export * from './PasteType';export * from './ComponentConfig';// @endindexdiff --git a/packages/ui-plugin-sheets/src/Basics/Libs/index.ts b/packages/ui-plugin-sheets/src/Basics/Libs/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/ui-plugin-sheets/src/Basics/Shared/index.ts b/packages/ui-plugin-sheets/src/Basics/Shared/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/ui-plugin-sheets/src/View/CountBar/CountBar.tsx b/packages/ui-plugin-sheets/src/View/CountBar/CountBar.tsxindex 25f1d78569..d5eac7d2c0 100644--- a/packages/ui-plugin-sheets/src/View/CountBar/CountBar.tsx+++ b/packages/ui-plugin-sheets/src/View/CountBar/CountBar.tsx@@ -12,7 +12,8 @@ interface CountState {content: string;}-interface CountBarProps extends BaseCountBarProps {+interface CountBarProps extends BaseComponentProps {+ changeRatio: (ratio: string) => void;onChange?: (value: string) => void;}diff --git a/packages/ui-plugin-sheets/src/View/RightMenu/RightMenu.tsx b/packages/ui-plugin-sheets/src/View/RightMenu/RightMenu.tsxindex 712c15a1e5..13b13cdb14 100644--- a/packages/ui-plugin-sheets/src/View/RightMenu/RightMenu.tsx+++ b/packages/ui-plugin-sheets/src/View/RightMenu/RightMenu.tsx@@ -24,6 +24,16 @@ interface IState {};}+export interface BaseRightMenuProps extends BaseComponentProps {+ onClick?: () => void;+ style?: {};+}++export interface BaseRightMenuProps extends BaseComponentProps {+ onClick?: () => void;+ style?: {};+}+export class RightMenu extends Component<BaseRightMenuProps, IState> {static override contextType = AppContext;diff --git a/packages/ui-plugin-slides/src/Basics/Enum/index.ts b/packages/ui-plugin-slides/src/Basics/Enum/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/ui-plugin-slides/src/Basics/Shared/index.ts b/packages/ui-plugin-slides/src/Basics/Shared/index.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/packages/ui-plugin-slides/src/Controller/ToolbarUIController.ts b/packages/ui-plugin-slides/src/Controller/ToolbarUIController.tsindex 43c4fb42e8..5ee8e98ab8 100644--- a/packages/ui-plugin-slides/src/Controller/ToolbarUIController.ts+++ b/packages/ui-plugin-slides/src/Controller/ToolbarUIController.ts@@ -1,12 +1,12 @@import { BorderInfo } from '@univerjs/base-slides';import { BaseSelectChildrenProps, BaseSelectProps, ColorPicker, ComponentManager } from '@univerjs/base-ui';-import { ComponentChildren } from 'react';import { BorderType, HorizontalAlign, ICurrentUniverService, IKeyValue, ObserverManager, Tools, UIObserver, VerticalAlign, WrapStrategy } from '@univerjs/core';import { Inject, SkipSelf } from '@wendellhu/redi';-import { DefaultToolbarConfig, SlideToolbarConfig, SLIDE_UI_PLUGIN_NAME } from '../Basics';-import { ColorSelect, LineBold, LineColor, Toolbar } from '../View';-import { TEXT_ROTATE_CHILDREN } from '../View/Toolbar/Const';+import { ComponentChildren } from 'react';+import { DefaultToolbarConfig, SLIDE_UI_PLUGIN_NAME, SlideToolbarConfig } from '../Basics';+import { Toolbar } from '../View';+import { TEXT_ROTATE_CHILDREN } from '../View/Toolbar/Const';import styles from '../View/Toolbar/index.module.less';export interface BaseToolbarSelectProps extends BaseSelectProps {@@ -35,16 +35,8 @@ export class ToolbarUIController {private _config: SlideToolbarConfig;- private _lineColor: LineColor;-- private _lineBold: LineBold;-- private _colorSelect1: ColorSelect;-private _textColor: string = '#000';- private _colorSelect2: ColorSelect;-private _background: string = '#fff';private _borderInfo: BorderInfo = {@@ -258,10 +250,7 @@ export class ToolbarUIController {}private _initialize() {- this._componentManager.register(SLIDE_UI_PLUGIN_NAME + ColorSelect.name, ColorSelect);this._componentManager.register(SLIDE_UI_PLUGIN_NAME + ColorPicker.name, ColorPicker);- this._componentManager.register(SLIDE_UI_PLUGIN_NAME + LineColor.name, LineColor);- this._componentManager.register(SLIDE_UI_PLUGIN_NAME + LineBold.name, LineBold);}}diff --git a/packages/ui-plugin-slides/src/View/Common/ColorSelect/ColorSelect.tsx b/packages/ui-plugin-slides/src/View/Common/ColorSelect/ColorSelect.tsxdeleted file mode 100644index 148599e9c8..0000000000--- a/packages/ui-plugin-slides/src/View/Common/ColorSelect/ColorSelect.tsx+++ /dev/null@@ -1,43 +0,0 @@-import { BaseComponentProps, ICustomComponent, CustomLabel } from '@univerjs/base-ui';-import { Component, ComponentChildren } from 'react';-import styles from './index.module.less';--interface IProps extends BaseComponentProps {- label?: ComponentChildren | ICustomComponent;- id: string;- color: string;-}--interface IState {- color: string;-}--export class ColorSelect extends Component<IProps, IState> {- override componentDidMount(): void {- this.props.getComponent?.(this);- }-- override UNSAFE_componentWillReceiveProps(props: IProps) {- this.setState({- color: props.color,- });- }-- setColor(color: string) {- this.setState({- color,- });- }-- render() {- const { label } = this.props;- return (- <div className={styles.colorSelect}>- <div>- <CustomLabel label={label} />- </div>- <div className={styles.colorSelectLine} style={{ background: this.state.color }}></div>- </div>- );- }-}diff --git a/packages/ui-plugin-slides/src/View/Common/ColorSelect/index.module.less b/packages/ui-plugin-slides/src/View/Common/ColorSelect/index.module.lessdeleted file mode 100644index 41556b46dd..0000000000--- a/packages/ui-plugin-slides/src/View/Common/ColorSelect/index.module.less+++ /dev/null@@ -1,12 +0,0 @@-.color-select {- position: relative;-- .color-select-line {- position: absolute;- width: 15px;- height: 5px;- bottom: 0px;- left: 50%;- transform: translate(-50%, 0);- }-}\ No newline at end of filediff --git a/packages/ui-plugin-slides/src/View/Common/Line/LineBold.tsx b/packages/ui-plugin-slides/src/View/Common/Line/LineBold.tsxdeleted file mode 100644index 9f921df244..0000000000--- a/packages/ui-plugin-slides/src/View/Common/Line/LineBold.tsx+++ /dev/null@@ -1,65 +0,0 @@-import { BaseComponentProps, Icon, CustomLabel } from '@univerjs/base-ui';-import { Component } from 'react';-import { SlideUIPlugin } from '../../..';-import { SLIDE_UI_PLUGIN_NAME } from '../../../Basics';--interface IState {- img: string;-}--interface IProps extends BaseComponentProps {- label: string;- img: string;-}--export class LineBold extends Component<IProps, IState> {- constructor(props: IProps) {- super(props);- this.initialize();- }-- initialize() {- this.state = {- img: '',- };- }-- override componentDidMount(): void {- this.props.getComponent?.(this);- }-- override UNSAFE_componentWillReceiveProps(props: IProps) {- this.setState({- img: props.img,- });- }-- setImg(img: string = '') {- this.setState({- img,- });- }-- getImg(img: string) {- if (!img) return null;- const span = document.querySelector('.base-sheets-line-bold') as HTMLDivElement;- const props = { width: span.offsetWidth };- const componentManager = this.getContext().getPluginManager().getPluginByName<SlideUIPlugin>(SLIDE_UI_PLUGIN_NAME)?.getComponentManager();- const Img = componentManager?.get(img);- return <Img {...(props as any)} />;- }-- render() {- const { img } = this.state;- const { label } = this.props;- return (- <div style={{ paddingBottom: '3px', width: '100%', display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>- <span className={'base-sheets-line-bold'} style={{ position: 'relative' }}>- <CustomLabel label={label} />- <div style={{ width: '100%', height: 0, position: 'absolute', left: 0, bottom: '14px' }}>{img.length ? this.getImg(img) : ''}</div>- </span>- <Icon.RightIcon />- </div>- );- }-}diff --git a/packages/ui-plugin-slides/src/View/Common/Line/LineColor.tsx b/packages/ui-plugin-slides/src/View/Common/Line/LineColor.tsxdeleted file mode 100644index 73292067ac..0000000000--- a/packages/ui-plugin-slides/src/View/Common/Line/LineColor.tsx+++ /dev/null@@ -1,54 +0,0 @@-import { BaseComponentProps, CustomLabel, Icon } from '@univerjs/base-ui';-import { Component } from 'react';--interface IState {- color: string;-}--interface IProps extends BaseComponentProps {- color: string;- label?: string;-}--export class LineColor extends Component<IProps, IState> {- constructor(props: IProps) {- super(props);- this.initialize();- }-- initialize() {- this.state = {- color: this.props.color,- };- }-- override componentDidMount() {- this.props.getComponent?.(this);- }-- override UNSAFE_componentWillReceiveProps(props: IProps): void {- this.setState({- color: props.color,- });- }-- setColor(color: string) {- this.setState({- color,- });- }-- render() {- const { color } = this.state;- const { label } = this.props;-- return (- <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>- <span style={{ display: 'inline-block', borderBottom: `3px solid ${color}` }}>- <CustomLabel label={label} />- </span>- <Icon.RightIcon />- </div>- );- }-}diff --git a/packages/ui-plugin-slides/src/View/Common/index.tsx b/packages/ui-plugin-slides/src/View/Common/index.tsxdeleted file mode 100644index f657a01caf..0000000000--- a/packages/ui-plugin-slides/src/View/Common/index.tsx+++ /dev/null@@ -1,3 +0,0 @@-export * from './ColorSelect/ColorSelect';-export * from './Line/LineBold';-export * from './Line/LineColor';diff --git a/packages/ui-plugin-slides/src/View/index.tsx b/packages/ui-plugin-slides/src/View/index.tsxindex f580de1062..a0bac79c33 100644--- a/packages/ui-plugin-slides/src/View/index.tsx+++ b/packages/ui-plugin-slides/src/View/index.tsx@@ -1,5 +1,6 @@import { isElement } from '@univerjs/base-ui';import { createRoot } from 'react-dom/client';+import { App, BaseUIProps } from './App';interface BaseSlideUIConfig extends BaseUIProps {@@ -41,4 +42,3 @@ export class UI {export * from './SlideContainer';export * from './Toolbar';-export * from './Common';