Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-wow committed Nov 11, 2024
1 parent c8f899e commit 8c9737f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 5 additions & 0 deletions packages/canvas/common/src/constant.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
export const NODE_UID = 'data-uid'
export const NODE_TAG = 'data-tag'
export const NODE_LOOP = 'loop-id'

export const DESIGN_MODE = {
DESIGN: 'design', // 设计态
RUNTIME: 'runtime' // 运行态
}
3 changes: 1 addition & 2 deletions packages/canvas/container/src/CanvasContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
<script>
import { onMounted, ref, computed, onUnmounted } from 'vue'
import { iframeMonitoring } from '@opentiny/tiny-engine-common/js/monitor'
import { DESIGN_MODE } from '@opentiny/tiny-engine-common/js/constants'
import { useTranslate, useCanvas, useMaterial } from '@opentiny/tiny-engine-meta-register'
import { NODE_UID, NODE_LOOP } from '../../common'
import { NODE_UID, NODE_LOOP, DESIGN_MODE } from '../../common'
import { registerHostkeyEvent, removeHostkeyEvent } from './keyboard'
import CanvasMenu, { closeMenu, openMenu } from './components/CanvasMenu.vue'
import CanvasAction from './components/CanvasAction.vue'
Expand Down
5 changes: 0 additions & 5 deletions packages/common/js/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,3 @@ export const PROP_DATA_TYPE = {
JSRESOURCE: 'JSResource',
JSSLOT: 'JSSlot'
}

export const DESIGN_MODE = {
DESIGN: 'design', // 设计态
RUNTIME: 'runtime' // 运行态
}

0 comments on commit 8c9737f

Please sign in to comment.