mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
14 lines
336 B
TypeScript
14 lines
336 B
TypeScript
import { Ref } from 'vue'
|
|
import { PPTElementShadow } from '@/types/slides'
|
|
|
|
export default (shadow: Ref<PPTElementShadow | undefined>) => {
|
|
let shadowStyle = ''
|
|
if(shadow.value) {
|
|
const { h, v, blur, color } = shadow.value
|
|
shadowStyle = `${h}px ${v}px ${blur}px ${color}`
|
|
}
|
|
|
|
return {
|
|
shadowStyle,
|
|
}
|
|
} |