From 06c3765d9de45aaa420d5b481f4cd21239dcc463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Tue, 19 Jul 2022 17:54:43 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/file.ts | 2 +- src/utils/style.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/file.ts b/src/utils/file.ts index 0ce0978f..858afbad 100644 --- a/src/utils/file.ts +++ b/src/utils/file.ts @@ -38,7 +38,7 @@ export const downloadByA = (url: string, filename = new Date().getTime(), fileSu } /** - * 下载数据 + * * 下载数据 * @param { string } content 数据内容 * @param { ?string } filename 文件名称(默认随机字符) * @param { ?string } fileSuffix 文件名称(默认随机字符) diff --git a/src/utils/style.ts b/src/utils/style.ts index ee1bec51..c692fdc4 100644 --- a/src/utils/style.ts +++ b/src/utils/style.ts @@ -6,7 +6,7 @@ import { EditCanvasConfigType } from '@/store/modules/chartEditStore/chartEditSt type AttrType = PickCreateComponentType<'attr'> type StylesType = PickCreateComponentType<'styles'> -// 动画 +// * 动画 export const animationsClass = (animations: string[]) => { if (animations.length) { return `animate__animated animate__${animations[0]}` @@ -14,7 +14,7 @@ export const animationsClass = (animations: string[]) => { return '' } -// 滤镜 +// * 滤镜 export const getFilterStyle = (styles: StylesType | EditCanvasConfigType) => { const { opacity, saturate, contrast, hueRotate, brightness } = styles return { @@ -23,7 +23,7 @@ export const getFilterStyle = (styles: StylesType | EditCanvasConfigType) => { } } -// 变换 +// * 变换 export const getTransformStyle = (styles: StylesType) => { const { rotateZ, rotateX, rotateY, skewX, skewY } = styles return {