mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
style: 修改注释
This commit is contained in:
parent
66f22551c4
commit
06c3765d9d
@ -38,7 +38,7 @@ export const downloadByA = (url: string, filename = new Date().getTime(), fileSu
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 下载数据
|
* * 下载数据
|
||||||
* @param { string } content 数据内容
|
* @param { string } content 数据内容
|
||||||
* @param { ?string } filename 文件名称(默认随机字符)
|
* @param { ?string } filename 文件名称(默认随机字符)
|
||||||
* @param { ?string } fileSuffix 文件名称(默认随机字符)
|
* @param { ?string } fileSuffix 文件名称(默认随机字符)
|
||||||
|
@ -6,7 +6,7 @@ import { EditCanvasConfigType } from '@/store/modules/chartEditStore/chartEditSt
|
|||||||
type AttrType = PickCreateComponentType<'attr'>
|
type AttrType = PickCreateComponentType<'attr'>
|
||||||
type StylesType = PickCreateComponentType<'styles'>
|
type StylesType = PickCreateComponentType<'styles'>
|
||||||
|
|
||||||
// 动画
|
// * 动画
|
||||||
export const animationsClass = (animations: string[]) => {
|
export const animationsClass = (animations: string[]) => {
|
||||||
if (animations.length) {
|
if (animations.length) {
|
||||||
return `animate__animated animate__${animations[0]}`
|
return `animate__animated animate__${animations[0]}`
|
||||||
@ -14,7 +14,7 @@ export const animationsClass = (animations: string[]) => {
|
|||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|
||||||
// 滤镜
|
// * 滤镜
|
||||||
export const getFilterStyle = (styles: StylesType | EditCanvasConfigType) => {
|
export const getFilterStyle = (styles: StylesType | EditCanvasConfigType) => {
|
||||||
const { opacity, saturate, contrast, hueRotate, brightness } = styles
|
const { opacity, saturate, contrast, hueRotate, brightness } = styles
|
||||||
return {
|
return {
|
||||||
@ -23,7 +23,7 @@ export const getFilterStyle = (styles: StylesType | EditCanvasConfigType) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 变换
|
// * 变换
|
||||||
export const getTransformStyle = (styles: StylesType) => {
|
export const getTransformStyle = (styles: StylesType) => {
|
||||||
const { rotateZ, rotateX, rotateY, skewX, skewY } = styles
|
const { rotateZ, rotateX, rotateY, skewX, skewY } = styles
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user