mirror of
https://github.com/dream-num/univer.git
synced 2026-08-30 17:21:11 +08:00
chore(base-ui): rename base-component to base-ui
This commit is contained in:
@@ -644,7 +644,7 @@ const s = `${style.AlternatingColorsSideSetting}`;
|
||||
|
||||
## 注册快捷键
|
||||
|
||||
`base-component`插件中向核心提供了`onKeyDownObservable`,可以用来快捷注册键盘快捷键。
|
||||
`base-ui`插件中向核心提供了`onKeyDownObservable`,可以用来快捷注册键盘快捷键。
|
||||
|
||||
我们允许为同一组快捷键注册多个监听。
|
||||
|
||||
@@ -1027,7 +1027,7 @@ ActionOperation 有一个 removeExtension 可以移除 action 拦截。一般情
|
||||
### 开发组件
|
||||
|
||||
1. 在`Container.tsx`中正常编写组件核心逻辑
|
||||
2. 在`base-component/src/BaseComponent`中增加一个组件专用接口,比如`ContainerComponent`
|
||||
2. 在`base-ui/src/BaseComponent`中增加一个组件专用接口,比如`ContainerComponent`
|
||||
3. 在`Container.tsx`中增加`UniverContainer`类导出组件
|
||||
|
||||
```ts
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
"vite-plugin-external": "1.2.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@univerjs/base-component": "workspace:^0.0.1",
|
||||
"@univerjs/base-ui": "workspace:^0.0.1",
|
||||
"@univerjs/base-docs": "workspace:^0.0.1",
|
||||
"@univerjs/base-render": "workspace:^0.0.1",
|
||||
"@univerjs/base-sheets": "workspace:^0.0.1",
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
DEFAULT_WORKBOOK_DATA_DOWN,
|
||||
} from '@univerjs/common-plugin-data';
|
||||
import { ClipboardPlugin } from '@univerjs/sheets-plugin-clipboard';
|
||||
import { BaseComponentPlugin } from '@univerjs/base-component';
|
||||
import { BaseComponentPlugin } from '@univerjs/base-ui';
|
||||
import { ImportXlsxPlugin } from '@univerjs/sheets-plugin-import-xlsx';
|
||||
|
||||
const uiDefaultConfigDemo = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BaseComponentRender, BaseComponentSheet, Component } from '@univerjs/base-component';
|
||||
import { BaseComponentRender, BaseComponentSheet, Component } from '@univerjs/base-ui';
|
||||
import { Nullable, PLUGIN_NAMES } from '@univerjs/core';
|
||||
import { BaseInfoBarProps } from '../../../Controller/InfoBarController';
|
||||
import styles from './index.module.less';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user