Merge pull request #1 from clddup/fix/button_ink

fix: 修复在表格中给按钮添加link属性后,字体颜色变成白色 #490
This commit is contained in:
ddup
2024-06-26 15:38:20 +08:00
committed by GitHub

View File

@@ -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 ''