Эх сурвалжийг харах

style: 修改单词拼写错误

奔跑的面条 3 жил өмнө
parent
commit
503c9d6fca

+ 1 - 1
src/utils/style.ts

@@ -24,7 +24,7 @@ export const getFilterStyle = (styles: StylesType | EditCanvasConfigType) => {
 }
 }
 
 
 // 变换
 // 变换
-export const getTranstormStyle = (styles: StylesType) => {
+export const getTransformStyle = (styles: StylesType) => {
   const { rotateZ, rotateX, rotateY, skewX, skewY } = styles
   const { rotateZ, rotateX, rotateY, skewX, skewY } = styles
   return {
   return {
     transform: `rotateZ(${rotateZ || 0}deg) rotateX(${rotateX || 0}deg) rotateY(${rotateY || 0}deg) skewX(${skewX || 0}deg) skewY(${skewY || 0}deg)`,
     transform: `rotateZ(${rotateZ || 0}deg) rotateX(${rotateX || 0}deg) rotateY(${rotateY || 0}deg) skewX(${skewX || 0}deg) skewY(${skewY || 0}deg)`,

+ 2 - 2
src/views/chart/ContentEdit/index.vue

@@ -42,7 +42,7 @@
               :style="{
               :style="{
                 ...useSizeStyle(item.attr),
                 ...useSizeStyle(item.attr),
                 ...getFilterStyle(item.styles),
                 ...getFilterStyle(item.styles),
-                ...getTranstormStyle(item.styles),
+                ...getTransformStyle(item.styles),
               }"
               }"
             ></component>
             ></component>
           </edit-shape-box>
           </edit-shape-box>
@@ -65,7 +65,7 @@
 <script lang="ts" setup>
 <script lang="ts" setup>
 import { onMounted, computed } from 'vue'
 import { onMounted, computed } from 'vue'
 import { chartColors } from '@/settings/chartThemes/index'
 import { chartColors } from '@/settings/chartThemes/index'
-import { animationsClass, getFilterStyle, getTranstormStyle } from '@/utils'
+import { animationsClass, getFilterStyle, getTransformStyle } from '@/utils'
 import { useContextMenu } from '@/views/chart/hooks/useContextMenu.hook'
 import { useContextMenu } from '@/views/chart/hooks/useContextMenu.hook'
 import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
 import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
 
 

+ 2 - 2
src/views/preview/components/PreviewRenderList/index.vue

@@ -7,7 +7,7 @@
     :style="{ 
     :style="{ 
       ...getComponentAttrStyle(item.attr, index),
       ...getComponentAttrStyle(item.attr, index),
       ...getFilterStyle(item.styles),
       ...getFilterStyle(item.styles),
-      ...getTranstormStyle(item.styles)
+      ...getTransformStyle(item.styles)
     }"
     }"
   >
   >
     <component
     <component
@@ -24,7 +24,7 @@
 import { PropType, computed } from 'vue'
 import { PropType, computed } from 'vue'
 import { ChartEditStorageType } from '../../index.d'
 import { ChartEditStorageType } from '../../index.d'
 import { chartColors } from '@/settings/chartThemes/index'
 import { chartColors } from '@/settings/chartThemes/index'
-import { animationsClass, getFilterStyle, getTranstormStyle } from '@/utils'
+import { animationsClass, getFilterStyle, getTransformStyle } from '@/utils'
 import { getSizeStyle, getComponentAttrStyle } from '../../utils'
 import { getSizeStyle, getComponentAttrStyle } from '../../utils'
 
 
 const props = defineProps({
 const props = defineProps({