Skip to content

Commit

Permalink
style:fix eslint warning in stageviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
luoliwoshang committed Feb 23, 2024
1 parent 69f0d1a commit 068c9fe
Show file tree
Hide file tree
Showing 7 changed files with 247 additions and 166 deletions.
13 changes: 6 additions & 7 deletions spx-gui/src/components/spx-stage/SpxStage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@
* @Author: Zhang zhiyang
* @Date: 2024-01-15 14:56:59
* @LastEditors: Zhang Zhi Yang
* @LastEditTime: 2024-02-23 14:10:06
* @LastEditTime: 2024-02-23 14:34:08
* @FilePath: \spx-gui\src\components\spx-stage\SpxStage.vue
* @Description:
-->
<template>
<div class="spx-stage">
<div class="stage-button">{{ $t('component.stage') }}</div>
<n-button type="success" class="stage-run-button" @click="run">{{ $t('stage.run') }}</n-button>
<iframe src="/main.html" frameborder="0" v-if="show" class="show"></iframe>
<div class="stage-viewer-container" v-else>
<iframe v-if="show" src="/main.html" frameborder="0" class="show"></iframe>
<div v-else class="stage-viewer-container">
<StageViewer
:selectedSpriteNames="selectedSpriteNames"
:selected-sprite-names="selectedSpriteNames"
:project="projectStore.project as Project"
@onSelectedSpriteChange="onSelectedSpriteChange"
@on-selected-sprite-change="onSelectedSpriteChange"
></StageViewer>
</div>
</div>
</template>

<script lang="ts" setup>
import { defineProps, ref, computed, watch } from 'vue'
import type { ComputedRef } from 'vue'
import { ref, watch } from 'vue'
import { NButton } from 'naive-ui'
import { useProjectStore } from '@/store/modules/project'
import { useSpriteStore } from '@/store'
Expand Down
Loading

0 comments on commit 068c9fe

Please sign in to comment.