Skip to content

Commit

Permalink
chore:remove eslint-disable comment for vue/no-mutating-props
Browse files Browse the repository at this point in the history
  • Loading branch information
luoliwoshang committed Feb 23, 2024
1 parent e2eaebf commit 9a6be4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions spx-gui/src/components/stage-viewer/Costume.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: Zhang Zhi Yang
* @Date: 2024-01-25 14:19:57
* @LastEditors: Zhang Zhi Yang
* @LastEditTime: 2024-02-23 14:33:03
* @LastEditTime: 2024-02-23 20:01:39
* @FilePath: \spx-gui\src\components\stage-viewer\Costume.vue
* @Description:
-->
Expand Down Expand Up @@ -146,9 +146,7 @@ const onDragMove = (event: KonvaEventObject<MouseEvent>) => {
*/
const handleDragEnd = (event: { target: { attrs: { x: number; y: number } } }) => {
const position = getSpxPostion(event.target.attrs.x, event.target.attrs.y)
// eslint-disable-next-line
props.spriteConfig.config.x = position.x

Check failure on line 149 in spx-gui/src/components/stage-viewer/Costume.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected mutation of "spriteConfig" prop
// eslint-disable-next-line
props.spriteConfig.config.y = position.y

Check failure on line 150 in spx-gui/src/components/stage-viewer/Costume.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected mutation of "spriteConfig" prop
controller.value = null
}
Expand Down
5 changes: 2 additions & 3 deletions spx-gui/src/components/stage-viewer/StageViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* @Author: Zhang Zhi Yang
* @Date: 2024-02-05 14:09:40
* @LastEditors: Zhang Zhi Yang
* @LastEditTime: 2024-02-23 16:58:41
* @LastEditTime: 2024-02-23 19:52:56
* @FilePath: \spx-gui\src\components\stage-viewer\StageViewer.vue
* @Description:
-->
-->
<template>
<div id="stage-viewer" ref="stageViewer">
<div id="menu" ref="menu" @mouseleave="onStageMenuMouseLeave">
Expand Down Expand Up @@ -309,7 +309,6 @@ const moveSprite = (direction: 'up' | 'down' | 'top' | 'bottom') => {
const [movedSprite] = newZorderList.splice(currentIndex, 1)
newZorderList.splice(newIndex, 0, movedSprite)
// eslint-disable-next-line
props.project.backdrop.config.zorder = newZorderList

Check failure on line 312 in spx-gui/src/components/stage-viewer/StageViewer.vue

View workflow job for this annotation

GitHub Actions / lint

Unexpected mutation of "project" prop
}
Expand Down

0 comments on commit 9a6be4e

Please sign in to comment.