Skip to content

Commit 36edf20

Browse files
committed
refactor: 修改@lce@felce
1 parent 1019cdb commit 36edf20

File tree

546 files changed

+1329
-1207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

546 files changed

+1329
-1207
lines changed

docs/docs/api/common.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ executeTransaction(fn: () => void, type: IPublicEnumTransitionType): void;
9797
**示例**
9898

9999
```typescript
100-
import { common } from '@lce/lowcode-engine';
101-
import { IPublicEnumTransitionType } from '@lce/lowcode-types';
100+
import { common } from '@felce/lowcode-engine';
101+
import { IPublicEnumTransitionType } from '@felce/lowcode-types';
102102

103103
common.utils.startTransaction(() => {
104104
node1.setProps();
@@ -150,7 +150,7 @@ createIntl(instance: string | object): {
150150
**示例**
151151

152152
```typescript
153-
import { common } from '@lce/lowcode-engine';
153+
import { common } from '@felce/lowcode-engine';
154154
import enUS from './en-US.json';
155155
import zhCN from './zh-CN.json';
156156

docs/docs/api/config.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ get(key: string, defaultValue?: any): any;
2929
**示例**
3030

3131
```typescript
32-
import { config } from '@lce/lowcode-engine';
32+
import { config } from '@felce/lowcode-engine';
3333

3434
config.get('keyA', true);
3535
config.get('keyB', { a: 1 });
@@ -52,7 +52,7 @@ set(key: string, value: any): void;
5252
**示例**
5353

5454
```typescript
55-
import { config } from '@lce/lowcode-engine';
55+
import { config } from '@felce/lowcode-engine';
5656

5757
config.set('keyC', 1);
5858
```
@@ -74,7 +74,7 @@ has(key: string): boolean;
7474
**示例**
7575

7676
```typescript
77-
import { config } from '@lce/lowcode-engine';
77+
import { config } from '@felce/lowcode-engine';
7878

7979
config.has('keyD');
8080
```
@@ -95,7 +95,7 @@ setConfig(config: { [key: string]: any }): void;
9595
**示例**
9696

9797
```typescript
98-
import { config } from '@lce/lowcode-engine';
98+
import { config } from '@felce/lowcode-engine';
9999

100100
config.setConfig({ keyA: false, keyB: 2 });
101101
```
@@ -122,7 +122,7 @@ getPreference(): IPublicModelPreference;
122122
示例
123123

124124
```javascript
125-
import { config } from '@lce/lowcode-engine';
125+
import { config } from '@felce/lowcode-engine';
126126

127127
const panelName = 'outline-master-pane';
128128

@@ -152,7 +152,7 @@ onceGot(key: string): Promise<any>;
152152
**示例**
153153

154154
```typescript
155-
import { config } from '@lce/lowcode-engine';
155+
import { config } from '@felce/lowcode-engine';
156156

157157
config.onceGot('keyA').then((value) => {
158158
console.log(`The value of keyA is ${value}`);
@@ -181,7 +181,7 @@ const value = await config.onceGot('keyA');
181181
**示例**
182182

183183
```typescript
184-
import { config } from '@lce/lowcode-engine';
184+
import { config } from '@felce/lowcode-engine';
185185

186186
config.onGot('keyA', (value) => {
187187
console.log(`The value of keyA is ${value}`);

docs/docs/api/configOptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sidebar_position: 5
1010
#### init API
1111

1212
```javascript
13-
import { init } from '@lce/lowcode-engine';
13+
import { init } from '@felce/lowcode-engine';
1414

1515
init(document.getElementById('engine'), {
1616
enableCondition: false,
@@ -22,7 +22,7 @@ init(document.getElementById('engine'), {
2222
#### config API
2323

2424
```javascript
25-
import { config } from '@lce/lowcode-engine';
25+
import { config } from '@felce/lowcode-engine';
2626

2727
config.set('enableCondition', false);
2828
```

docs/docs/api/event.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ event.emit(eventName);
9191
在 A setter 中进行事件注册:
9292

9393
```typescript
94-
import { event } from '@lce/lowcode-engine';
94+
import { event } from '@felce/lowcode-engine';
9595

9696
const SETTER_NAME = 'SetterA';
9797

@@ -116,7 +116,7 @@ class SetterA extends React.Component {
116116
在 B setter 中触发事件,来完成通信:
117117

118118
```typescript
119-
import { event } from '@lce/lowcode-engine';
119+
import { event } from '@felce/lowcode-engine';
120120

121121
class SetterB extends React.Component {
122122
bindFunction = () => {

docs/docs/api/hotkey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ hotkey.bind(['command+s', 'command+c'], (e) => {
5959
### 保存快捷键配置
6060

6161
```typescript
62-
import { hotkey } from '@lce/lowcode-engine';
62+
import { hotkey } from '@felce/lowcode-engine';
6363

6464
function saveSchema(schema) {
6565
// 保存 schema 相关操作

docs/docs/api/init.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function init(container?: Element, options?: IPublicTypeEngineOptions): void;
2626
## 使用示例
2727

2828
```typescript
29-
import { init } from '@lce/lowcode-engine';
29+
import { init } from '@felce/lowcode-engine';
3030

3131
init(document.getElementById('engine'), {
3232
enableCondition: false,
@@ -36,7 +36,7 @@ init(document.getElementById('engine'), {
3636
### 默认打开移动端画布
3737

3838
```typescript
39-
import { init } from '@lce/lowcode-engine';
39+
import { init } from '@felce/lowcode-engine';
4040

4141
init({
4242
device: 'mobile',
@@ -46,7 +46,7 @@ init({
4646
### 使用 utils 第三方工具扩展
4747

4848
```json
49-
import { init } from '@lce/lowcode-engine';
49+
import { init } from '@felce/lowcode-engine';
5050

5151
init({
5252
device: 'mobile',

docs/docs/api/logger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ log(...args: any | any[]): void;
4646
## 输出示例
4747

4848
```typescript
49-
import { Logger } from '@lce/lowcode-utils';
49+
import { Logger } from '@felce/lowcode-utils';
5050
const logger = new Logger({ level: 'warn', bizName: 'myPlugin:moduleA' });
5151
logger.log('Awesome Low-Code Engine');
5252
```

docs/docs/api/material.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ setAssets(assets: IPublicTypeAssetsJson): void;
4848
直接在项目中引用 npm 包
4949

5050
```javascript
51-
import { material } from '@lce/lowcode-engine';
51+
import { material } from '@felce/lowcode-engine';
5252
import assets from '@alilc/mc-assets-<siteId>/assets.json';
5353

5454
material.setAssets(assets);
@@ -57,8 +57,8 @@ material.setAssets(assets);
5757
通过接口动态引入资产包
5858

5959
```typescript
60-
import { material, plugins } from '@lce/lowcode-engine';
61-
import { IPublicModelPluginContext } from '@lce/lowcode-types';
60+
import { material, plugins } from '@felce/lowcode-engine';
61+
import { IPublicModelPluginContext } from '@felce/lowcode-types';
6262

6363
// 动态加载 assets
6464
plugins
@@ -100,7 +100,7 @@ getAssets(): IPublicTypeAssetsJson;
100100
**示例**
101101

102102
```typescript
103-
import { material } from '@lce/lowcode-engine';
103+
import { material } from '@felce/lowcode-engine';
104104

105105
material.getAssets();
106106
```
@@ -124,7 +124,7 @@ loadIncrementalAssets(incrementalAssets: IPublicTypeAssetsJson): Promise<void>;
124124
**示例**
125125

126126
```typescript
127-
import { material } from '@lce/lowcode-engine';
127+
import { material } from '@felce/lowcode-engine';
128128
import assets1 from '@alilc/mc-assets-<siteId>/assets.json';
129129
import assets2 from '@alilc/mc-assets-<siteId>/assets.json';
130130

@@ -135,7 +135,7 @@ material.loadIncrementalAssets(assets2);
135135
更新特定物料的描述文件
136136

137137
```typescript
138-
import { material } from '@lce/lowcode-engine';
138+
import { material } from '@felce/lowcode-engine';
139139
material.loadIncrementalAssets({
140140
version: '',
141141
components: [
@@ -168,7 +168,7 @@ addBuiltinComponentAction(action: IPublicTypeComponentAction): void;
168168
新增设计扩展位,并绑定事件
169169

170170
```typescript
171-
import { material } from '@lce/lowcode-engine';
171+
import { material } from '@felce/lowcode-engine';
172172

173173
material.addBuiltinComponentAction({
174174
name: 'myIconName',
@@ -210,7 +210,7 @@ removeBuiltinComponentAction(name: string): void;
210210
**示例**
211211

212212
```typescript
213-
import { material } from '@lce/lowcode-engine';
213+
import { material } from '@felce/lowcode-engine';
214214

215215
material.removeBuiltinComponentAction('myIconName');
216216
```
@@ -246,7 +246,7 @@ modifyBuiltinComponentAction(
246246
给原始的 remove 扩展时间添加执行前后的日志
247247

248248
```typescript
249-
import { material } from '@lce/lowcode-engine';
249+
import { material } from '@felce/lowcode-engine';
250250

251251
material.modifyBuiltinComponentAction('remove', (action) => {
252252
const originAction = action.content.action;
@@ -275,7 +275,7 @@ addContextMenuOption(action: IPublicTypeContextMenuAction): void;
275275
示例
276276

277277
```typescript
278-
import { IPublicEnumContextMenuType } from '@lce/lowcode-types';
278+
import { IPublicEnumContextMenuType } from '@felce/lowcode-types';
279279

280280
material.addContextMenuOption({
281281
name: 'parentItem',
@@ -362,7 +362,7 @@ getComponentMeta(componentName: string): IPublicModelComponentMeta | null;
362362
**示例**
363363

364364
```typescript
365-
import { material } from '@lce/lowcode-engine';
365+
import { material } from '@felce/lowcode-engine';
366366

367367
material.getComponentMeta('Input');
368368
```
@@ -385,7 +385,7 @@ material.getComponentMeta('Input');
385385
**示例**
386386

387387
```typescript
388-
import { material } from '@lce/lowcode-engine';
388+
import { material } from '@felce/lowcode-engine';
389389

390390
material.getComponentMetasMap();
391391
```
@@ -426,7 +426,7 @@ registerMetadataTransducer(
426426
给每一个组件的配置添加高级配置面板,其中有一个是否渲染配置项
427427

428428
```typescript
429-
import { material } from '@lce/lowcode-engine';
429+
import { material } from '@felce/lowcode-engine';
430430

431431
function addonCombine(metadata: TransformedComponentMetadata) {
432432
const { componentName, configure = {} } = metadata;
@@ -471,8 +471,8 @@ material.registerMetadataTransducer(addonCombine, 1, 'parse-func');
471471
删除高级 Tab
472472

473473
```typescript
474-
import { material } from '@lce/lowcode-engine';
475-
import { IPublicTypeFieldConfig } from '@lce/lowcode-types';
474+
import { material } from '@felce/lowcode-engine';
475+
import { IPublicTypeFieldConfig } from '@felce/lowcode-types';
476476

477477
material.registerMetadataTransducer(
478478
(transducer) => {
@@ -513,7 +513,7 @@ getRegisteredMetadataTransducers(): IPublicTypeMetadataTransducer[];
513513
**示例**
514514

515515
```typescript
516-
import { material } from '@lce/lowcode-engine';
516+
import { material } from '@felce/lowcode-engine';
517517

518518
material.getRegisteredMetadataTransducers();
519519
```
@@ -538,7 +538,7 @@ onChangeAssets(fn: () => void): IPublicTypeDisposable;
538538
**示例**
539539

540540
```typescript
541-
import { material } from '@lce/lowcode-engine';
541+
import { material } from '@felce/lowcode-engine';
542542

543543
material.onChangeAssets(() => {
544544
console.log('asset changed');

docs/docs/api/model/dragon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sidebar_position: 99
1212
### 对应接口
1313

1414
```typescript
15-
import { IPublicModelDragon } from '@lce/lowcode-types';
15+
import { IPublicModelDragon } from '@felce/lowcode-types';
1616
```
1717

1818
### 支持版本

docs/docs/api/plugins.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ async function register(
3232
#### 简单示例
3333

3434
```typescript
35-
import { plugins } from '@lce/lowcode-engine';
36-
import { IPublicModelPluginContext } from '@lce/lowcode-types';
35+
import { plugins } from '@felce/lowcode-engine';
36+
import { IPublicModelPluginContext } from '@felce/lowcode-types';
3737

3838
const builtinPluginRegistry = (ctx: IPublicModelPluginContext) => {
3939
return {
@@ -67,8 +67,8 @@ await plugins.register(builtinPluginRegistry);
6767
#### 使用 exports 示例
6868

6969
```typescript
70-
import { plugins } from '@lce/lowcode-engine';
71-
import { IPublicModelPluginContext } from '@lce/lowcode-types';
70+
import { plugins } from '@felce/lowcode-engine';
71+
import { IPublicModelPluginContext } from '@felce/lowcode-types';
7272

7373
const PluginA = (ctx: IPublicModelPluginContext) => {
7474
return {
@@ -102,8 +102,8 @@ await plugins.register(PluginB);
102102
#### 设置兼容引擎版本示例
103103

104104
```typescript
105-
import { plugins } from '@lce/lowcode-engine';
106-
import { IPublicModelPluginContext } from '@lce/lowcode-types';
105+
import { plugins } from '@felce/lowcode-engine';
106+
import { IPublicModelPluginContext } from '@felce/lowcode-types';
107107

108108
const BuiltinPluginRegistry = (ctx: IPublicModelPluginContext) => {
109109
return {
@@ -124,8 +124,8 @@ await plugins.register(BuiltinPluginRegistry);
124124
#### 设置插件参数版本示例
125125

126126
```typescript
127-
import { plugins } from '@lce/lowcode-engine';
128-
import { IPublicModelPluginContext } from '@lce/lowcode-types';
127+
import { plugins } from '@felce/lowcode-engine';
128+
import { IPublicModelPluginContext } from '@felce/lowcode-types';
129129

130130
const BuiltinPluginRegistry = (ctx: IPublicModelPluginContext, options: any) => {
131131
return {
@@ -249,7 +249,7 @@ your-plugin/package.json
249249
250250
```json
251251
{
252-
"name": "@lce/lowcode-plugin-debug",
252+
"name": "@felce/lowcode-plugin-debug",
253253
"lcMeta": {
254254
"pluginName": "debug",
255255
"meta": {

0 commit comments

Comments
 (0)