fix. [SWV-865] 영상재생 버튼 개선
Made-with: Cursor
This commit is contained in:
@@ -3,7 +3,7 @@ interface props {
|
||||
type?: 'button' | 'link'
|
||||
to?: string
|
||||
target?: '_self' | '_blank'
|
||||
bgColor?: string
|
||||
backgroundColor?: string
|
||||
srOnly?: string
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ const props = withDefaults(defineProps<props>(), {
|
||||
type: 'button',
|
||||
to: '',
|
||||
target: '_self',
|
||||
bgColor: '',
|
||||
backgroundColor: '',
|
||||
srOnly: '',
|
||||
})
|
||||
|
||||
@@ -34,8 +34,8 @@ const componentProps = computed(() => {
|
||||
|
||||
const buttonStyle = computed(() => {
|
||||
const style: Record<string, string> = {}
|
||||
if (props.bgColor) {
|
||||
style.backgroundColor = props.bgColor
|
||||
if (props.backgroundColor) {
|
||||
style.backgroundColor = props.backgroundColor
|
||||
}
|
||||
return style
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user