mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
chore: 更新pnpm版本,修复ts错误
This commit is contained in:
parent
0979282504
commit
798ace76f3
@ -3,7 +3,7 @@
|
||||
"name": "tmagic",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@9.6.0",
|
||||
"packageManager": "pnpm@9.7.1",
|
||||
"scripts": {
|
||||
"bootstrap": "pnpm i && pnpm build",
|
||||
"clean:top": "rimraf */**/dist */**/types */dist coverage dwt* temp",
|
||||
|
@ -141,7 +141,15 @@ import uiService from './services/ui';
|
||||
import keybindingConfig from './utils/keybinding-config';
|
||||
import { defaultEditorProps, EditorProps } from './editorProps';
|
||||
import { initServiceEvents, initServiceState } from './initService';
|
||||
import type { EventBus, FrameworkSlots, PropsPanelSlots, Services, SidebarSlots, WorkspaceSlots } from './type';
|
||||
import type {
|
||||
EventBus,
|
||||
FrameworkSlots,
|
||||
PropsPanelSlots,
|
||||
Services,
|
||||
SidebarSlots,
|
||||
StageOptions,
|
||||
WorkspaceSlots,
|
||||
} from './type';
|
||||
|
||||
defineSlots<
|
||||
FrameworkSlots &
|
||||
@ -186,7 +194,7 @@ initServiceState(props, services);
|
||||
keybindingService.register(keybindingConfig);
|
||||
keybindingService.registerEl('global');
|
||||
|
||||
const stageOptions = {
|
||||
const stageOptions: StageOptions = {
|
||||
runtimeUrl: props.runtimeUrl,
|
||||
autoScrollIntoView: props.autoScrollIntoView,
|
||||
render: props.render,
|
||||
|
@ -145,7 +145,7 @@ export interface StageOptions {
|
||||
containerHighlightDuration?: number;
|
||||
containerHighlightType?: ContainerHighlightType;
|
||||
disabledDragStart?: boolean;
|
||||
render?: (stage: StageCore) => HTMLDivElement | Promise<HTMLDivElement>;
|
||||
render?: (stage: StageCore) => HTMLDivElement | void | Promise<HTMLDivElement | void>;
|
||||
moveableOptions?: MoveableOptions | ((config?: CustomizeMoveableOptionsCallbackConfig) => MoveableOptions);
|
||||
canSelect?: (el: HTMLElement) => boolean | Promise<boolean>;
|
||||
isContainer?: (el: HTMLElement) => boolean | Promise<boolean>;
|
||||
|
32
pnpm-lock.yaml
generated
32
pnpm-lock.yaml
generated
@ -1167,19 +1167,19 @@ importers:
|
||||
runtime/react-runtime-help:
|
||||
dependencies:
|
||||
'@tmagic/core':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/core
|
||||
'@tmagic/data-source':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/data-source
|
||||
'@tmagic/schema':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/schema
|
||||
'@tmagic/stage':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/stage
|
||||
'@tmagic/utils':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/utils
|
||||
lodash-es:
|
||||
specifier: ^4.17.21
|
||||
@ -1207,22 +1207,22 @@ importers:
|
||||
runtime/tmagic-form:
|
||||
dependencies:
|
||||
'@tmagic/core':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/core
|
||||
'@tmagic/editor':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/editor
|
||||
'@tmagic/form':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/form
|
||||
'@tmagic/schema':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/schema
|
||||
'@tmagic/stage':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/stage
|
||||
'@tmagic/utils':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/utils
|
||||
element-plus:
|
||||
specifier: '>=2.8.0'
|
||||
@ -1256,19 +1256,19 @@ importers:
|
||||
runtime/vue-runtime-help:
|
||||
dependencies:
|
||||
'@tmagic/core':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/core
|
||||
'@tmagic/data-source':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/data-source
|
||||
'@tmagic/schema':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/schema
|
||||
'@tmagic/stage':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/stage
|
||||
'@tmagic/utils':
|
||||
specifier: workspace:*
|
||||
specifier: workspace:^
|
||||
version: link:../../packages/utils
|
||||
'@vue/composition-api':
|
||||
specifier: '>=1.7.2'
|
||||
|
Loading…
x
Reference in New Issue
Block a user