Skip to content

Commit

Permalink
Merge pull request #491 from clddup/master
Browse files Browse the repository at this point in the history
fix: 修复在表格中给按钮添加link属性后,字体颜色变成白色 #490
  • Loading branch information
kailong321200875 authored Jun 26, 2024
2 parents ddcf5f4 + 3aef162 commit 0c9f91b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Button/src/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ const props = defineProps({
const emits = defineEmits(['click'])
const color = computed(() => {
const { type } = props
if (type === 'primary') {
const { type, link } = props
if (type === 'primary' && !link) {
return unref(getTheme).elColorPrimary
}
return ''
})
const style = computed(() => {
const { type } = props
if (type === 'primary') {
const { type, link } = props
if (type === 'primary' && !link) {
return '--el-button-text-color: #fff; --el-button-hover-text-color: #fff'
}
return ''
Expand Down

0 comments on commit 0c9f91b

Please sign in to comment.